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