Ejemplo n.º 1
0
 protected function _init()
 {
     $this->setModel(new Kwf_Model_FnF(array('data' => array(array('id' => 1, 'opt' => $this->_isOptIn)))));
     $this->setId(1);
     if ($this->_isOptIn) {
         $label = trlKwfStatic('Cookies are set when visiting this webpage. Click to deactivate cookies.');
     } else {
         $label = trlKwfStatic('No cookies are set when visiting this webpage. Click to activate cookies.');
     }
     $this->add(new Kwf_Form_Field_Checkbox('opt', ''))->setBoxLabel($label);
     parent::_init();
 }
Ejemplo n.º 2
0
 protected function _init()
 {
     $this->setModel(new Kwf_Model_Mail(array('componentClass' => $this->getClass())));
     $this->add(new Kwf_Form_Field_TextArea('reason', trlKwfStatic('Please enter a reason for reporting this Post')))->setWidth('100%')->setHeight(150)->setLabelAlign('top');
     parent::_init();
 }