Exemplo n.º 1
0
 protected function fill()
 {
     $this->setData(array());
     $data = $this->_controller->getRequestAll();
     foreach ($this->getElements() as $element) {
         $elementName = $element->getName();
         if (isset($data[$elementName])) {
             $element->setValue($data[$elementName]);
             $this->addData($elementName, $data[$elementName]);
         }
     }
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->checkAuthorizate();
 }
Exemplo n.º 3
0
 public function fillAndIsValid()
 {
     $data = $this->_controller->getRequestAll();
     $this->fill($data);
     return $this->isValid();
 }