public function __construct($config) { $return = parent::__construct($config); require_once 'cloudfiles.php'; $auth = new CF_Authentication($this->config['rsc-username'], $this->config['rsc-apikey']); $auth->authenticate(); $this->conn = new CF_Connection($auth); if ($this->config['rsc-ssl_use_cabundle']) { $this->conn->ssl_use_cabundle(); } return $return; }
public function __construct() { if (method_exists('Filemanager', 'Filemanager')) { parent::Filemanager(); } else { parent::__construct(); } $this->EE = get_instance(); }
/** * Prepare to handle FileManager API requests * * Construct an AmazonS3 Service instance then configure configure paths, etc. * * @param type $config plugin specific configuration * * @todo throw error if keys are not set */ public function __construct($config) { parent::__construct($config); // Configure instance $this->configure($this->config); }