当前位置: 首页>>代码示例>>PHP>>正文


PHP BaseService::__construct方法代码示例

本文整理汇总了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'];
 }
开发者ID:kstefanini,项目名称:ezmlm-php,代码行数:9,代码来源:EzmlmService.php

示例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;
 }
开发者ID:JonasDoebertin,项目名称:php-share-link-generator,代码行数:23,代码来源:TwitterService.php

示例4: __construct

 public function __construct($po_request)
 {
     parent::__construct($po_request);
     $this->opo_dm = Datamodel::load();
 }
开发者ID:kai-iak,项目名称:pawtucket2,代码行数:5,代码来源:ItemInfoService.php

示例5: __construct

 public function __construct($po_request)
 {
     parent::__construct($po_request);
 }
开发者ID:samrahman,项目名称:providence,代码行数:4,代码来源:AccessControlService.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->language->load('checkout/cart');
 }
开发者ID:jemmy655,项目名称:OpenCart-API-service-by-Kancart.com-Mobile,代码行数:5,代码来源:CheckoutService.php

示例7: __construct

 /**
  *
  * @param string $username
  * @param string $password
  */
 public function __construct($username, $password)
 {
     parent::__construct($username, $password);
     $this->_service = "sms";
 }
开发者ID:igorbrites,项目名称:sms-cep-service-php5,代码行数:10,代码来源:Sms.php

示例8:

 function __construct()
 {
     parent::__construct();
 }
开发者ID:lrmymycn,项目名称:findsite,代码行数:4,代码来源:UserService.php

示例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";
 }
开发者ID:byjg,项目名称:sms-cep-service-php5,代码行数:10,代码来源:Sms.php

示例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']);
 }
开发者ID:samrahman,项目名称:providence,代码行数:35,代码来源:OAIPMHService.php

示例11: __construct

 /**
  * Check and apply options.
  *
  * @since 1.0.0
  *
  * @param array $options
  */
 public function __construct($options)
 {
     parent::__construct($options);
 }
开发者ID:JonasDoebertin,项目名称:php-share-link-generator,代码行数:11,代码来源:FacebookService.php

示例12: __construct

 /**
  * @param $client
  * @param string $key
  */
 public function __construct($client, $key = '')
 {
     $this->setHost('steamcommunity.com');
     parent::__construct($client, $key);
 }
开发者ID:xilnick,项目名称:steamapi,代码行数:9,代码来源:SteamCommunity.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('catalog/review');
 }
开发者ID:jemmy655,项目名称:OpenCart-API-service-by-Kancart.com-Mobile,代码行数:5,代码来源:ReviewService.php


注:本文中的BaseService::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。