public function __construct() { parent::__construct(); $this->load->model('catalog/product'); $this->load->model('tool/image'); $this->language->load('product/product'); }
public function __construct() { parent::__construct(); // Ezmlm lib $this->lib = new Ezmlm(); // additional settings $this->defaultMessagesLimit = $this->config['settings']['defaultMessagesLimit']; $this->defaultThreadsLimit = $this->config['settings']['defaultThreadsLimit']; }
/** * Check and apply options. * * @since 1.0.0 * * @param array */ public function __construct($options) { // Let the base service do its work parent::__construct($options); // Validate title argument if (array_key_exists('title', $options) and !is_string($options['title'])) { throw new InvalidArgumentException('The "title" argument must be of type string.'); } // Validate via argument if (array_key_exists('via', $options) and !is_string($options['via'])) { throw new InvalidArgumentException('The "via" argument must be of type string.'); } // Apply arguments $this->title = isset($options['title']) ? $options['title'] : null; $this->via = isset($options['via']) ? $this->sanitizeViaArgument($options['via']) : null; }
public function __construct($po_request) { parent::__construct($po_request); $this->opo_dm = Datamodel::load(); }
public function __construct($po_request) { parent::__construct($po_request); }
public function __construct() { parent::__construct(); $this->language->load('checkout/cart'); }
/** * * @param string $username * @param string $password */ public function __construct($username, $password) { parent::__construct($username, $password); $this->_service = "sms"; }
function __construct() { parent::__construct(); }
/** * * @param string $username * @param string $password */ public function __construct($username, $password, $curlParams = [CURLOPT_TIMEOUT => 5]) { parent::__construct($username, $password, $curlParams); $this->_service = "sms"; }
/** * Set up OAI service * * @param RequestHTTP $po_request The current request * @param string $ps_provider The identifier for the provider configuration to use when servicing this request */ public function __construct($po_request, $ps_provider) { parent::__construct($this->opo_request); $this->oaiData = new DomDocument('1.0', 'UTF-8'); $this->oaiData->preserveWhiteSpace = false; $this->oaiData->formatOutput = true; $this->oaiData->xmlStandalone = true; $o_root_node = $this->oaiData->createElementNS(self::OAI_PMH_NAMESPACE_URI, 'OAI-PMH'); $this->oaiData->appendChild($o_root_node); $o_root_node->setAttributeNS(self::XML_SCHEMA_NAMESPACE_URI, 'xsi:schemaLocation', self::OAI_PMH_NAMESPACE_URI . ' ' . self::OAI_PMH_SCHEMA_URI); $responseDate = $this->oaiData->createElement('responseDate', self::unixToUtc(time())); $o_root_node->appendChild($responseDate); $this->opo_request = $po_request; // Get provider configuration info $this->config = Configuration::load($this->opo_request->config->get('oai_provider_config')); $this->ops_provider = $ps_provider; $this->opa_provider_list = $this->config->getAssoc('providers'); if (!is_array($this->opa_provider_info = $this->opa_provider_list[$ps_provider])) { $this->throwError(self::OAI_ERR_BAD_ARGUMENT, _t("Invalid provider '%1'.", $ps_provider)); } if (!($vn_limit = (int) $this->opa_provider_info['maxRecordsPerRequest'])) { if (!($vn_limit = (int) $this->config->get('maxRecordsPerRequest'))) { $vn_limit = 50; } } $this->_listLimit = $vn_limit; $this->_baseUrl = $this->config->get('site_host') . $this->config->get('ca_url_root') . '/service.php/OAI/' . $this->ops_provider; OaiIdentifier::initializeNamespace($this->opa_provider_info['identiferNamespace']); }
/** * Check and apply options. * * @since 1.0.0 * * @param array $options */ public function __construct($options) { parent::__construct($options); }
/** * @param $client * @param string $key */ public function __construct($client, $key = '') { $this->setHost('steamcommunity.com'); parent::__construct($client, $key); }
public function __construct() { parent::__construct(); $this->load->model('catalog/review'); }