Esempio n. 1
0
 public function initializeFormAnnotations()
 {
     $reader = new \Phalcon\Annotations\Adapter\Memory();
     $formProperties = $reader->getProperties($this);
     foreach ($formProperties as $key => $property) {
         $formProperty = isset($formProperties[$key]) ? $formProperties[$key] : null;
         $element = $this->createElementByProperty($key, $property);
         if ($element && $element instanceof \Phalcon\Forms\ElementInterface) {
             $this->add($element);
         }
     }
     return $this;
 }