/** * 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->addElement($this->createToElement()); $bridge->addElement($this->mailElements->createMethodElement()); parent::addFormElements($bridge, $model); $bridge->addHidden('to'); }
/** * 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); }