/** * Adds elements from the model to the bridge that creates the form. * * Overrule this function to add different elements to the browse table, without * having to recode the core table building code. * * @param \MUtil_Model_Bridge_FormBridgeInterface $bridge * @param \MUtil_Model_ModelAbstract $model */ protected function addFormElements(\MUtil_Model_Bridge_FormBridgeInterface $bridge, \MUtil_Model_ModelAbstract $model) { $bridge->addHtml('to', 'label', $this->_('To')); $bridge->addExhibitor('track', array('label' => $this->_('Track'))); $bridge->addExhibitor('round', array('label' => $this->_('Round'))); $bridge->addExhibitor('survey', array('label' => $this->_('Survey'))); $bridge->addExhibitor('last_contact', array('label' => $this->_('Last contact'), 'formatFunction' => $this->util->getTranslated()->formatDateNever)); parent::addFormElements($bridge, $model); }
protected function loadFormData() { parent::loadFormData(); //if (!isset($this->formData['to']) || !is_array($this->formData['to'])) { if (!$this->request->isPost()) { $this->formData['token_select'] = array(); foreach ($this->multipleTokenData as $tokenData) { if ($tokenData['can_email']) { $this->formData['token_select'][] = $tokenData['gto_id_token']; } } $this->formData['multi_method'] = 'O'; } }