public function __construct($label = NULL, $text = NULL, $iconClass = NULL) { parent::__construct($label); $this->text = $text; $this->iconClass = $iconClass; }
public function __construct($label = NULL) { parent::__construct($label); $this->addRule(__CLASS__ . '::validateDate', 'Date is invalid.'); }
public function __construct($label = NULL) { parent::__construct($label); $this->setRequired(FALSE)->addRule([__CLASS__, 'validateDate'], 'Date is invalid.'); }