Beispiel #1
0
 /**
  * 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');
     }
 }
Beispiel #2
0
 /**
  * @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);
 }
Beispiel #3
0
 /**
  * @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);
 }
Beispiel #4
0
 public function __construct(array $attrs = array())
 {
     if (array_key_exists('format', $attrs)) {
         $this->format = $attrs['format'];
         unset($attrs['format']);
     }
     parent::__construct($attrs);
 }
Beispiel #5
0
	public function __construct()
	{
		parent::__construct('date');
	}
Beispiel #6
0
 /**
  * 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}\$/";
 }