当前位置: 首页>>代码示例>>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;未经允许,请勿转载。