コード例 #1
0
ファイル: field_float.php プロジェクト: robchett/framework
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
 }
コード例 #2
0
ファイル: field_datetime.php プロジェクト: robchett/framework
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     $this->attributes['pattern'] = '[0-9]{2}/[0-9]{2}/[0-9]{4} [0-9]{2}:[0-9]{2}:[0-9]{2}';
 }
コード例 #3
0
ファイル: field_password.php プロジェクト: robchett/framework
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     $this->attributes['type'] = 'password';
 }
コード例 #4
0
ファイル: field_int.php プロジェクト: robchett/framework
 public function __construct($title = '', $options = [])
 {
     parent::__construct($title, $options);
     $this->attributes['type'] = 'number';
 }
コード例 #5
0
ファイル: field_date.php プロジェクト: robchett/framework
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     //$this->attributes['pattern'] = '[0-9]{2}/[0-9]{2}/[0-9]{4}';
     $this->attributes['type'] = 'date';
 }
コード例 #6
0
ファイル: field_hidden.php プロジェクト: robchett/framework
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     $this->hidden = true;
     $this->attributes['type'] = 'hidden';
 }
コード例 #7
0
ファイル: field_email.php プロジェクト: robchett/framework
 public function __construct($name, $options = [])
 {
     parent::__construct($name, $options);
     $this->attributes['type'] = 'email';
 }
コード例 #8
0
ファイル: field_select.php プロジェクト: robchett/framework
 public function __construct($title, $options = [])
 {
     parent::__construct($title, $options);
     $this->class[] = 'picker';
 }
コード例 #9
0
ファイル: field_boolean.php プロジェクト: robchett/framework
 public function __construct($title = '', $options = [])
 {
     parent::__construct($title, $options);
     $this->value = false;
     $this->attributes['type'] = 'checkbox';
 }
コード例 #10
0
 public function __construct($name, $options)
 {
     $this->options = $options;
     parent::__construct($name);
 }