Ejemplo n.º 1
0
 /**
  * Carrega os elementos no formulário para serem renderizado
  * @return void
  */
 public function loadElements($action = 'insert')
 {
     $element = new ZendT_Form_Element_Hidden('id');
     $element->addDecorator(new ZendT_Form_Decorator_Hidden());
     $element->setRequired(false);
     $this->addElement($element);
     $model = new Log_Form_LogEvento_Elements();
     $element = $model->getElement('id_log_objeto');
     $element->setRequired(true);
     $this->addElement($element);
     $element = $model->getElement('id_log_operac');
     $element->setRequired(true);
     $this->addElement($element);
     $element = $model->getElement('id_objeto');
     $element->setRequired(true);
     $this->addElement($element);
     $element = $model->getElement('id_usuario');
     $this->addElement($element);
     $element = $model->getElement('dh_evento');
     $element->setRequired(true);
     $this->addElement($element);
     $element = $model->getElement('chave');
     $element->setRequired(true);
     $this->addElement($element);
     $element = $model->getElement('observacao');
     $this->addElement($element);
     $element = $model->getElement('id_log_tabela');
     $this->addElement($element);
 }
Ejemplo n.º 2
0
 /**
  * Carrega os elementos no formulário para serem renderizado
  * @return void
  */
 public function loadElements($action = 'insert')
 {
     $element = new ZendT_Form_Element_Hidden('id');
     $element->addDecorator(new ZendT_Form_Decorator_Hidden());
     $element->setRequired(false);
     $this->addElement($element);
     $model = new Cms_Form_Notificacao_Elements();
     $element = $model->getElement('id_conteudo');
     $element->setRequired(true);
     $this->addElement($element);
     $element = $model->getElement('id_usuario');
     $element->setRequired(true);
     $this->addElement($element);
     $element = $model->getElement('id_maillist');
     $this->addElement($element);
 }