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


PHP Storage::__construct方法代碼示例

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


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

示例1: __construct

 public function __construct($param = array())
 {
     parent::__construct($param);
     $this->_xml = new DOMDocument();
     $this->_filename = dirname(__FILE__) . '/../../configs/xml/' . $this->_connec_data[0];
     $this->_current_page = $this->_connec_data[1];
 }
開發者ID:BackupTheBerlios,項目名稱:freeblocks-svn,代碼行數:7,代碼來源:XMLStorage.php

示例2: EnvUser

 function EnvUser($id, $scheme, $table, $fields = "*", $from = "", $where = "", $limit_size = 30)
 {
     $sql = "SELECT * FROM `{$table}` WHERE `id` = {$id}";
     //		dbg($sql);
     $this->v = $this->queryRow($sql);
     //		dbg($this->v);
     $this->scheme = $scheme;
     parent::__construct($table, $fields = "*", $from = "", $where = "", $limit_size);
 }
開發者ID:rigidus,項目名稱:cobutilniki,代碼行數:9,代碼來源:EnvUser.php

示例3:

 function __construct()
 {
     parent::__construct();
     // Make sure we have amazon keys.
     if (empty($this->_config['s3_access_key']) || empty($this->_config['s3_secret_key'])) {
         show_error('Storage: In order to load the Amazon S3 Driver you must have an access and secret key set.');
     }
     // Load libraries
     $this->_CI->load->library('s3');
     $this->_CI->s3->start($this->_config['s3_access_key'], $this->_config['s3_secret_key'], true);
 }
開發者ID:gamchantoi,項目名稱:sisfo-ft,代碼行數:11,代碼來源:amazon_s3_driver.php

示例4:

 function __construct()
 {
     parent::__construct();
     // Make sure we have amazon keys.
     if (empty($this->_config['cf_username']) || empty($this->_config['cf_api_key'])) {
         show_error('Storage: In order to load the Rackspace CF Driver you must have an username and api key set.');
     }
     // Load libraries & Connection (library comes in from composer)
     $this->_auth = new CF_Authentication($this->_config['cf_username'], $this->_config['cf_api_key']);
     $this->_auth->authenticate();
     $this->_conn = new CF_Connection($this->_auth);
 }
開發者ID:cloudmanic,項目名稱:cloudmanic-cms,代碼行數:12,代碼來源:rackspace_cf_driver.php

示例5: rtrim

 function __construct()
 {
     parent::__construct();
     // Make sure we have amazon keys.
     if (empty($this->_config['s3_access_key']) || empty($this->_config['s3_secret_key'])) {
         show_error('Storage: In order to load the Amazon S3 Driver you must have an access and secret key set.');
     }
     // Load libraries
     $this->_CI->load->library('s3');
     $this->_CI->s3->start($this->_config['s3_access_key'], $this->_config['s3_secret_key'], true);
     // S3 made no good way to change this properly so here ya go...
     S3::$host = preg_replace('@http(.*?)\\/\\/@', '', rtrim(Settings::get('files_s3_url'), '/'));
     S3::$geographic_location = Settings::get('files_s3_geographic_location') === 'EU' ? 'EU' : false;
 }
開發者ID:blekedeg,項目名稱:lbhpers,代碼行數:14,代碼來源:amazon_s3_driver.php

示例6: __construct

 public function __construct($hostname, $port = 0, $username = "", $password = "", $database = null)
 {
     if (is_array($hostname)) {
         $port = (int) $hostname["port"];
         $username = (string) $hostname["username"];
         $password = (string) $hostname["password"];
         $database = (string) $hostname["database"];
         $hostname = (string) $hostname["hostname"];
     }
     $this->_hostname = $hostname;
     $this->_port = (int) $port;
     $this->_username = $username;
     $this->_password = $password;
     parent::__construct();
     if ($database) {
         $this->setDatabase($database);
     }
 }
開發者ID:kstep,項目名稱:pnut,代碼行數:18,代碼來源:Db.php

示例7: __construct

 public function __construct($hostname, $port = 0, $username = "", $password = "", $base_dn = null)
 {
     if (is_array($hostname)) {
         $port = (int) $hostname["port"];
         $username = (string) $hostname["username"];
         $password = (string) $hostname["password"];
         $base_dn = (string) $hostname["base_dn"];
         $hostname = (string) $hostname["hostname"];
     }
     $this->_hostname = $hostname;
     $this->_port = (int) $port;
     $this->_username = $username;
     $this->_password = $password;
     parent::__construct();
     if ($base_dn) {
         $this->setBaseDN($base_dn);
     }
     if (!empty($password) && !empty($username)) {
         $this->login($username, $password);
     }
 }
開發者ID:kstep,項目名稱:pnut,代碼行數:21,代碼來源:Ldap.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
 }
開發者ID:Eugen1985,項目名稱:stalker_portal,代碼行數:4,代碼來源:vclub.class.php

示例9:

 function __construct($folder, $name)
 {
     parent::__construct($folder, $name, Storage::DATA_STORAGE);
 }
開發者ID:mbcraft,項目名稱:frozen,代碼行數:4,代碼來源:DataStorage.class.php

示例10: __construct

 public function __construct($data = array())
 {
     $this->data = $data;
     parent::__construct();
 }
開發者ID:packfire,項目名稱:session,代碼行數:5,代碼來源:MockStorage.php

示例11: array

 function __construct($config = array())
 {
     parent::__construct($config);
     $this->expires = isset($config['expires']) ? $config['expires'] : 7;
     $this->domain = strpos($_SERVER['HTTP_HOST'], 'www.') > -1 ? substr($_SERVER['HTTP_HOST'], 4) : $_SERVER['HTTP_HOST'];
 }
開發者ID:antixrist,項目名稱:qustha,代碼行數:6,代碼來源:qustha.class.php

示例12:

 function __construct($folder, $name)
 {
     parent::__construct($folder, $name, Storage::PROPERTIES_STORAGE);
 }
開發者ID:mbcraft,項目名稱:frozen,代碼行數:4,代碼來源:PropertiesStorage.class.php


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