/** * Initialize form handler. * * This method takes care of all necessary initialisation of our data and form states. * * @return boolean False in case of initialization errors, otherwise true. */ public function initialize(Zikula_Form_View $view) { parent::initialize($view); $entity = $this->entityRef; if ($this->mode == 'edit') { } else { if ($this->hasTemplateId !== true) { } } // save entity reference for later reuse $this->entityRef = $entity; // everything okay, no initialization errors occured return true; }
/** * Initialize form handler. * * This method takes care of all necessary initialisation of our data and form states. * * @return boolean False in case of initialization errors, otherwise true. */ public function initialize(Zikula_Form_View $view) { parent::initialize($view); $entity = $this->entityRef; if ($this->mode == 'edit') { } else { if ($this->hasTemplateId !== true) { $entity['category'] = $this->retrieveRelatedObjects('category', 'category', false); $entity['posting'] = $this->retrieveRelatedObjects('posting', 'posting', true); } } // save entity reference for later reuse $this->entityRef = $entity; // everything okay, no initialization errors occured return true; }