__construct() public method

Initialize Form_Validation class
public __construct ( array $rules = [] ) : void
$rules array
return void
 function __construct($config = array())
 {
     parent::__construct($config);
     parent::set_message('numeric_positive', 'The {field} field must contain a decimal greater or equal than 0.');
     parent::set_message('image_base64', 'The {field} field must be a image in base64 format.');
     parent::set_message('valid_base64', 'The {field} field must be base64 data.');
 }
   public function __construct()
   {
       parent::__construct();
       $this->_error_prefix = '<div class="alert alert-danger alert-dismissable">
 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>';
       $this->_error_suffix = '</div>';
   }
 public function __construct($rules = array())
 {
     log_message('debug', '*** Hello from MY_Session ***');
     $this->CI =& get_instance();
     $this->CI->load->library("cimongo/cimongo");
     parent::__construct($rules);
 }
 public function  __construct($rules = array())
 {
     parent::__construct($rules);
     $this->CI = &get_instance();
     log_message('debug','BackendPro : MY_Form_validation class loaded');
     
 }
 function __construct($rules = array())
 {
     $this->CI =& get_instance();
     //	$this->CI->load->library("cimongo/cimongo");
     parent::__construct($rules);
     $this->CI->load->language('form_validation');
 }
 /**
  * Crea y retorna el marco html para mostrar las validaciones
  * Esta funcion permite hacer referencia a cualquier recurso CodeIgniter
  * cargado o cargar otras nuevas sin inicializar las clases cada vez.
  * @return void
  */
 public function __construct($rules = array())
 {
     parent::__construct($rules);
     $this->CI =& get_instance();
     // Permite acceder a los recursos nativos de codeigniter.
     $this->_error_prefix = '<div class="alert alert-danger">' . '<button type="button" class="close" data-dismiss="alert">&times;</button>';
     $this->_error_suffix = '</div>';
 }
Beispiel #7
0
 function CI_TNotification($pstr_prefix = "<li>", $pstr_suffix = "</li>")
 {
     // smarty constructor
     parent::__construct();
     // set default delimiter
     $this->prefix = $pstr_prefix;
     $this->suffix = $pstr_suffix;
 }
Beispiel #8
0
 /**
  * Constructor
  *
  * @access	public
  */
 function __construct($rules = array())
 {
     parent::__construct($rules);
     if ($this->CI->input->get('C') == 'addons_modules' && $this->CI->input->get('M') == 'show_module_cp' && isset($this->CI->_mcp_reference)) {
         $this->CI->_mcp_reference->lang =& $this->CI->lang;
         $this->CI =& $this->CI->_mcp_reference;
     }
 }
 function __construct()
 {
     parent::__construct();
     $this->CI =& get_instance();
     // changing default error delimiters
     $this->_error_prefix = '<span class="form-error">';
     $this->_error_suffix = '</span>';
 }
 /**
 * Constructor
 *
 * @return void
 */
 function __construct($config = array())
 {
     // Merged super-global $_FILES to $_POST to allow for better file
     // validation inside of Form_validation library
     if (!empty($_FILES) && is_array($_FILES)) {
         $_POST = array_merge($_POST, $_FILES);
     }
     parent::__construct($config);
 }
 /**
  * __construct function.
  *
  * Just defines the parent and sets error prefixes globally
  * 
  * @access public
  * @return void
  */
 function __construct()
 {
     parent::__construct();
     $this->_ci =& get_instance();
     if (file_exists(APPPATH . 'config/form_validation.php')) {
         $this->_ci->config->load('form_validation');
     }
     $this->_error_prefix = config_item('form_error_prefix') ? config_item('form_error_prefix') : '';
     $this->_error_suffix = config_item('form_error_suffix') ? config_item('form_error_suffix') : '';
 }
 function __construct()
 {
     parent::__construct();
     /**
      * Prefixos do form validate erro
      */
     $this->_error_prefix = '<div class="alert bg-danger" role="alert">
                     <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                         <span aria-hidden="true">&times;</span>
                     </button><i class="fa fa-exclamation-triangle"></i>&nbsp;&nbsp;';
     $this->_error_suffix = '</div>';
 }
 function __construct($rules = array())
 {
     parent::__construct();
     $controller = CONTROLLER;
     if ($this->CI->input->post()) {
         $_POST += $this->CI->input->post();
     }
     /*
     		if(isset($_SESSION[CONTROLLER]['post'][$this->CI->$controller->id])){
     			$_POST=array_merge_recursive($_POST,$_SESSION[CONTROLLER]['post'][$this->CI->$controller->id]);
     		}
     */
 }
Beispiel #14
0
 public function __construct()
 {
     parent::__construct();
     $_GET["fixbug_for_ci_form_validation_time_by_GET"] = time();
     $_REQUEST["fixbug_for_ci_form_validation_time_by_REQUEST"] = time();
     $_POST["fixbug_for_ci_form_validation_time_by_POST"] = time();
     $this->set_message('required', 'required');
     $this->set_message('numeric', 'numeric');
     $this->set_message('valid_email', 'valid_email');
     $this->set_message('is_unique', 'is_unique');
     $this->set_message('min_length', 'min_length');
     $this->set_message('max_length', 'max_length');
     $this->set_message('matches', 'matches');
     $this->set_message('alpha', 'alpha');
     $this->set_message('alpha_numeric', 'alpha_numeric');
     $this->set_message('alpha_dash', 'alpha_dash');
     $this->set_message('isexists_username', 'username_already_exits');
     $this->set_message('isexists_email', 'email_already_exits');
     $this->set_message('isnot_exists_email', 'email_not_found');
     $this->set_message('devicetype_check', 'incorrect');
 }
 public function __construct($rules = array())
 {
     parent::__construct($rules);
     $this->lang->load('form_validation', 'greek');
 }
 public function __construct()
 {
     parent::__construct();
     $this->CI =& get_instance();
 }
 public function __construct($rules = array())
 {
     parent::__construct();
     $this->CI->load->database();
     log_message('debug', "My Form Validation Class Initialized");
 }
 /**
  * Constructor
  *
  * @return void
  */
 function __construct($config = array())
 {
     // Merged super-global $_FILES to $_POST to allow for better file validation inside of Form_validation library
     $_POST = isset($_FILES) && is_array($_FILES) && count($_FILES) > 0 ? array_merge($_POST, $_FILES) : $_POST;
     parent::__construct($config);
 }
 function MY_Form_validation($rules = array())
 {
     parent::__construct($rules);
 }
 function __construct($rules = array())
 {
     parent::__construct($rules);
     $this->CI->load->language('extra_validation');
 }
 function __construct($rules = array())
 {
     parent::__construct($rules);
 }
 function __construct($rules = array())
 {
     parent::__construct($rules);
     $this->ci =& get_instance();
 }
 public function __construct($rules = array())
 {
     parent::__construct($rules);
     $this->CI->load->helper('checkbox');
     $this->CI->load->helper('email');
 }
 public function __construct()
 {
     parent::__construct();
     $this->set_message('valid_date', 'Поле %s должно содержать правильную дату.');
     $this->set_message('valid_time', 'Поле %s должно содержать правильное время.');
 }
 /**
  * constructor method
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->_error_prefix = '<div class="alert alert-danger"><button type="button" class="close" data-dismiss="alert">&times;</button>';
     $this->_error_suffix = '</div>';
 }
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->CI =& get_instance();
 }
 function __construct($config = array())
 {
     parent::__construct($config);
 }
 function __construct()
 {
     parent::__construct();
 }
 function __construct()
 {
     parent::__construct();
     $CI =& get_instance();
 }
 public function __construct($rules = array())
 {
     parent::__construct($rules);
     $this->set_custom_errors();
 }