本文整理汇总了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.');
}
示例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">×</button>';
$this->_error_suffix = '</div>';
}
示例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);
}
示例4: __construct
public function __construct($rules = array())
{
parent::__construct($rules);
$this->CI = &get_instance();
log_message('debug','BackendPro : MY_Form_validation class loaded');
}
示例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');
}
示例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">×</button>';
$this->_error_suffix = '</div>';
}
示例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;
}
示例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;
}
}
示例9:
function __construct()
{
parent::__construct();
$this->CI =& get_instance();
// changing default error delimiters
$this->_error_prefix = '<span class="form-error">';
$this->_error_suffix = '</span>';
}
示例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);
}
示例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') : '';
}
示例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">×</span>
</button><i class="fa fa-exclamation-triangle"></i> ';
$this->_error_suffix = '</div>';
}
示例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]);
}
*/
}
示例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');
}
示例15: __construct
public function __construct($rules = array())
{
parent::__construct($rules);
$this->lang->load('form_validation', 'greek');
}