当前位置: 首页>>代码示例>>PHP>>正文


PHP CI_Form_validation::__construct方法代码示例

本文整理汇总了PHP中CI_Form_validation::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP CI_Form_validation::__construct方法的具体用法?PHP CI_Form_validation::__construct怎么用?PHP CI_Form_validation::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CI_Form_validation的用法示例。


在下文中一共展示了CI_Form_validation::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

 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.');
 }
开发者ID:lagaisse,项目名称:BrokenStuff,代码行数:7,代码来源:MY_Form_validation.php

示例2: __construct

   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>';
   }
开发者ID:kumarsivarajan,项目名称:ume-system,代码行数:7,代码来源:MY_Form_validation.php

示例3: __construct

 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);
 }
开发者ID:karojeff,项目名称:cimongo-codeigniter-mongodb-library,代码行数:7,代码来源:MY_Form_validation.php

示例4: __construct

 public function  __construct($rules = array())
 {
     parent::__construct($rules);
     $this->CI = &get_instance();
     log_message('debug','BackendPro : MY_Form_validation class loaded');
     
 }
开发者ID:hungnv0789,项目名称:vhtm,代码行数:7,代码来源:NIW_Form_validation.php

示例5: array

 function __construct($rules = array())
 {
     $this->CI =& get_instance();
     //	$this->CI->load->library("cimongo/cimongo");
     parent::__construct($rules);
     $this->CI->load->language('form_validation');
 }
开发者ID:kulgee001,项目名称:yggdrasil,代码行数:7,代码来源:My_Form_validation.php

示例6: __construct

 /**
  * 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>';
 }
开发者ID:bogabrig,项目名称:copaer_np,代码行数:14,代码来源:MY_Form_validation.php

示例7:

 function CI_TNotification($pstr_prefix = "<li>", $pstr_suffix = "</li>")
 {
     // smarty constructor
     parent::__construct();
     // set default delimiter
     $this->prefix = $pstr_prefix;
     $this->suffix = $pstr_suffix;
 }
开发者ID:zinzia,项目名称:kapalonline,代码行数:8,代码来源:Tnotification.php

示例8: array

 /**
  * 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;
     }
 }
开发者ID:rmdort,项目名称:adiee,代码行数:13,代码来源:EE_Form_validation.php

示例9:

 function __construct()
 {
     parent::__construct();
     $this->CI =& get_instance();
     // changing default error delimiters
     $this->_error_prefix = '<span class="form-error">';
     $this->_error_suffix = '</span>';
 }
开发者ID:santhapa,项目名称:ci-mag-cms,代码行数:8,代码来源:MY_Form_validation.php

示例10: array

 /**
 * 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);
 }
开发者ID:arindamDemoz,项目名称:mobileappz,代码行数:14,代码来源:BF_Form_validation.php

示例11:

 /**
  * __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') : '';
 }
开发者ID:NaszvadiG,项目名称:Base-CodeIgniter-App,代码行数:18,代码来源:MY_Form_validation.php

示例12:

 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>';
 }
开发者ID:andersonbezerrasantos,项目名称:controle_lab,代码行数:12,代码来源:MY_Form_validation.php

示例13: array

 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]);
     		}
     */
 }
开发者ID:flyingfish2013,项目名称:Syssh,代码行数:13,代码来源:SS_Form_validation.php

示例14: __construct

 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');
 }
开发者ID:piranon,项目名称:gae,代码行数:21,代码来源:MY_Form_validation.php

示例15: __construct

 public function __construct($rules = array())
 {
     parent::__construct($rules);
     $this->lang->load('form_validation', 'greek');
 }
开发者ID:emnik,项目名称:tuitioninfo,代码行数:5,代码来源:MY_form_validation.php


注:本文中的CI_Form_validation::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。