本文整理汇总了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];
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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);
}
}
示例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);
}
}
示例8: __construct
public function __construct()
{
parent::__construct();
}
示例9:
function __construct($folder, $name)
{
parent::__construct($folder, $name, Storage::DATA_STORAGE);
}
示例10: __construct
public function __construct($data = array())
{
$this->data = $data;
parent::__construct();
}
示例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'];
}
示例12:
function __construct($folder, $name)
{
parent::__construct($folder, $name, Storage::PROPERTIES_STORAGE);
}