예제 #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
 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();
 }