Example #1
0
 public function proccessField(Form $form)
 {
     if ($this->isClicked()) {
         $this->onClick();
     }
     parent::proccessField($form);
 }
Example #2
0
 public function hasPostValue()
 {
     if ($this->uploadedFile()) {
         return true;
     }
     return parent::hasPostValue();
 }
Example #3
0
 public function render()
 {
     // render only if has the ID value on the URL
     if ($this->hasPostValue()) {
         return parent::render();
     }
     return null;
 }
Example #4
0
 public function __construct($properties = array())
 {
     parent::__construct($properties);
     $this->validations[] = new \Meta\Validation\MinLength(array('length' => 3));
 }
Example #5
0
 public function getTemplateVars()
 {
     $vars = parent::getTemplateVars();
     $vars['options'] = $this->buildOptions();
     return $vars;
 }