當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Base_model::_inited方法代碼示例

本文整理匯總了PHP中Base_model::_inited方法的典型用法代碼示例。如果您正苦於以下問題:PHP Base_model::_inited方法的具體用法?PHP Base_model::_inited怎麽用?PHP Base_model::_inited使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Base_model的用法示例。


在下文中一共展示了Base_model::_inited方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     if (is_null($this->db_group)) {
         include APPPATH . 'config/database.php';
         $this->db_group = $active_group;
     }
     $this->{$this->db_group} = $this->load->database($this->db_group, TRUE);
     if (self::$_inited) {
         return;
     }
     self::$_inited = true;
     // Doesn't work with multiple DB
     //		$CI =& get_instance();
     //		$CI->{$this->db_group} = $CI->load->database($this->db_group, TRUE);
     //		$this->{$this->db_group} = $this->load->database($this->db_group, TRUE);
     // Unlock the publish filter (filter on publish status of each item)
     if (Connect()->is('editors')) {
         self::unlock_publish_filter();
     }
 }
開發者ID:nbourguig,項目名稱:ionize,代碼行數:26,代碼來源:base_model.php

示例2: __construct

 /**
  * Constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     if (is_null($this->db_group)) {
         $active_group = 'default';
         include APPPATH . 'config/database.php';
         $this->db_group = $active_group;
     }
     $this->{$this->db_group} = $this->load->database($this->db_group, TRUE);
     if (self::$_inited) {
         return;
     }
     self::$_inited = TRUE;
     self::$ci =& get_instance();
     // Unlock the publish filter (filter on publish status of each item)
     if (Authority::can('access', 'admin')) {
         self::unlock_publish_filter();
     }
 }
開發者ID:rockylo,項目名稱:ionize,代碼行數:24,代碼來源:base_model.php

示例3: __construct

 /**
  * Constructor
  *
  * @access	public
  */
 public function __construct()
 {
     parent::__construct();
     if (self::$_inited) {
         return;
     }
     self::$_inited = true;
     $CI =& get_instance();
     // Unlock the publish filter (filter on publish status of each item)
     if (Connect()->is('editors')) {
         self::unlock_publish_filter();
     }
 }
開發者ID:BGCX261,項目名稱:zillatek-project-svn-to-git,代碼行數:18,代碼來源:base_model.php


注:本文中的Base_model::_inited方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。