コード例 #1
0
ファイル: radio.php プロジェクト: ksan5835/webhooo
 function __construct()
 {
     $this->name = 'radio';
     $this->label = "Radio Button";
     $this->required = false;
     $this->message = "This field can't be Empty";
     $this->params = array('layout' => 'vertical', 'choices' => array(), 'default_value' => '');
     parent::__construct();
 }
コード例 #2
0
ファイル: datepicker.php プロジェクト: ksan5835/webhooo
 function __construct()
 {
     $this->name = 'datepicker';
     $this->label = "Date Picker";
     $this->required = false;
     $this->message = "This field can't be Empty";
     $this->params = array('placeholder' => '', 'date_format' => '');
     parent::__construct();
 }
コード例 #3
0
ファイル: text.php プロジェクト: ksan5835/webhooo
 function __construct()
 {
     $this->name = "text";
     $this->label = "Text";
     $this->required = false;
     $this->message = "This field can't be Empty";
     $this->params = array('placeholder' => '', 'default_value' => '', 'maxlength' => '');
     parent::__construct();
 }
コード例 #4
0
ファイル: select.php プロジェクト: ksan5835/webhooo
 function __construct()
 {
     $this->name = 'select';
     $this->label = "Combo Box";
     $this->required = false;
     $this->message = "This field can't be Empty";
     $this->params = array('choices' => array(), 'default_value' => '');
     parent::__construct();
 }
コード例 #5
0
ファイル: number.php プロジェクト: ksan5835/webhooo
 function __construct()
 {
     $this->name = "number";
     $this->label = "Number";
     $this->required = false;
     $this->message = "This field can't be Empty";
     $this->params = array('placeholder' => '', 'default_value' => '', 'min' => '', 'max' => '', 'step' => '');
     parent::__construct();
 }
コード例 #6
0
ファイル: file.php プロジェクト: ksan5835/webhooo
 function __construct()
 {
     $this->name = "file";
     $this->label = "File";
     $this->required = false;
     $this->message = "This field can't be Empty";
     $this->params = array('filetypes' => '');
     /* File upload validator */
     add_filter('wccpf/upload/validate', array($this, 'validate_file_upload'), 5, 3);
     /* File upload filter */
     add_filter('wccpf/upload/type=file', array($this, 'process_file_upload'));
     parent::__construct();
 }