本文整理汇总了PHP中BaseService::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseService::__construct方法的具体用法?PHP BaseService::__construct怎么用?PHP BaseService::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseService
的用法示例。
在下文中一共展示了BaseService::__construct方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$this->load->model('catalog/product');
$this->load->model('tool/image');
$this->language->load('product/product');
}
开发者ID:jemmy655,项目名称:OpenCart-API-service-by-Kancart.com-Mobile,代码行数:7,代码来源:ProductTranslatorService.php
示例2: __construct
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'];
}
示例3: __construct
/**
* 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;
}
示例4: __construct
public function __construct($po_request)
{
parent::__construct($po_request);
$this->opo_dm = Datamodel::load();
}
示例5: __construct
public function __construct($po_request)
{
parent::__construct($po_request);
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->language->load('checkout/cart');
}
示例7: __construct
/**
*
* @param string $username
* @param string $password
*/
public function __construct($username, $password)
{
parent::__construct($username, $password);
$this->_service = "sms";
}
示例8:
function __construct()
{
parent::__construct();
}
示例9: __construct
/**
*
* @param string $username
* @param string $password
*/
public function __construct($username, $password, $curlParams = [CURLOPT_TIMEOUT => 5])
{
parent::__construct($username, $password, $curlParams);
$this->_service = "sms";
}
示例10: __construct
/**
* 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']);
}
示例11: __construct
/**
* Check and apply options.
*
* @since 1.0.0
*
* @param array $options
*/
public function __construct($options)
{
parent::__construct($options);
}
示例12: __construct
/**
* @param $client
* @param string $key
*/
public function __construct($client, $key = '')
{
$this->setHost('steamcommunity.com');
parent::__construct($client, $key);
}
示例13: __construct
public function __construct()
{
parent::__construct();
$this->load->model('catalog/review');
}