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