/** * Constructor * * @param array $param The parameters of the input */ public function __construct($param) { parent::__construct($param); $this->type = 'text'; if (empty($this->format)) { $this->format = Lang::get('main.date-format'); } }
/** * @param string label * @param int width of the control * @param int maximum number of characters the user may enter */ public function __construct($label, $cols = NULL, $maxLenght = NULL) { parent::__construct($label, $cols, $maxLenght); }
/** * @param string label * @param int width of the control * @param int maximum number of characters the user may enter */ public function __construct($label, $cols = NULL) { parent::__construct($label, $cols, 5); }
public function __construct(array $attrs = array()) { if (array_key_exists('format', $attrs)) { $this->format = $attrs['format']; unset($attrs['format']); } parent::__construct($attrs); }
public function __construct() { parent::__construct('date'); }
/** * Constructor * * @param array $param The input parameters */ public function __construct($param) { parent::__construct($param); $this->pattern = "/^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]{2,}\\.[a-z]{2,4}\$/"; }