/** * * @return \Project_OneStepCreation_OneStepCreationValidator */ private function validateFullName() { if ($this->creation_request->getFullName() == null) { $GLOBALS['Response']->addFeedback('error', $GLOBALS['Language']->getText('register_projectname', 'info_missed')); $this->setIsNotValid(); return $this; } $rule = new Rule_ProjectFullName(); if (!$rule->isValid($this->creation_request->getFullName())) { $GLOBALS['Response']->addFeedback('error', $GLOBALS['Language']->getText('register_license', 'invalid_full_name')); $GLOBALS['Response']->addFeedback('error', $rule->getErrorMessage()); $this->setIsNotValid(); } return $this; }
/** * * @return string */ public function getFullName() { return $this->creation_request->getFullName(); }