__construct() public method

public __construct ( $config )
 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];
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
 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);
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
Arquivo: Db.php Projeto: kstep/pnut
 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);
     }
 }
Exemplo n.º 7
0
Arquivo: Ldap.php Projeto: kstep/pnut
 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);
     }
 }
Exemplo n.º 8
0
 public function __construct()
 {
     parent::__construct();
 }
Exemplo n.º 9
0
 function __construct($folder, $name)
 {
     parent::__construct($folder, $name, Storage::DATA_STORAGE);
 }
Exemplo n.º 10
0
 public function __construct($data = array())
 {
     $this->data = $data;
     parent::__construct();
 }
Exemplo n.º 11
0
 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'];
 }
Exemplo n.º 12
0
 function __construct($folder, $name)
 {
     parent::__construct($folder, $name, Storage::PROPERTIES_STORAGE);
 }