/** * * @return \Project_OneStepCreation_OneStepCreationValidator */ private function validateUnixName() { if ($this->creation_request->getUnixName() == null) { $GLOBALS['Response']->addFeedback('error', $GLOBALS['Language']->getText('register_projectname', 'info_missed')); $this->setIsNotValid(); return $this; } //check for valid group name $rule = new Rule_ProjectName(); if (!$rule->isValid($this->creation_request->getUnixName())) { $GLOBALS['Response']->addFeedback('error', $GLOBALS['Language']->getText('register_license', 'invalid_short_name')); $GLOBALS['Response']->addFeedback('error', $rule->getErrorMessage()); $this->setIsNotValid(); } return $this; }
/** * * @return string */ public function getUnixName() { return $this->creation_request->getUnixName(); }