/** * @return Project_CustomDescription_CustomDescriptionPresenter[] */ private function getCustomDescriptionPresenters(array $required_custom_descriptions) { $presenters = array(); foreach ($required_custom_descriptions as $custom_description) { $presenters[] = new Project_CustomDescription_CustomDescriptionPresenter($custom_description, $this->creation_request->getCustomProjectDescription($custom_description->getId()), self::PROJECT_DESCRIPTION_PREFIX); } return $presenters; }
/** * * @return \Project_OneStepCreation_OneStepCreationValidator */ private function validateCustomDescriptions() { foreach ($this->required_custom_descriptions as $id => $description) { if (!$this->creation_request->getCustomProjectDescription($id)) { $GLOBALS['Response']->addFeedback('error', $GLOBALS['Language']->getText('register_project_one_step', 'custom_description_missing', $description->getName())); $this->setIsNotValid(); } } return $this; }