當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Configuration::__construct方法代碼示例

本文整理匯總了PHP中Configuration::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Configuration::__construct方法的具體用法?PHP Configuration::__construct怎麽用?PHP Configuration::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Configuration的用法示例。


在下文中一共展示了Configuration::__construct方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct($id = null, $id_lang = null)
 {
     // Check if the id configuration is set in the configuration_lang table.
     // Otherwise configuration is not set as translated configuration.
     if ($id !== null) {
         $id_translated = Db::getInstance()->ExecuteS('SELECT `' . $this->identifier . '` FROM `' . pSQL(_DB_PREFIX_ . $this->table) . '_lang` WHERE `' . $this->identifier . '`=' . pSQL($id) . ' LIMIT 0,1');
         if (empty($id_translated)) {
             $id = null;
         }
     }
     parent::__construct($id, $id_lang);
 }
開發者ID:Evil1991,項目名稱:PrestaShop-1.4,代碼行數:12,代碼來源:TranslatedConfiguration.php

示例2: __construct

    public function __construct($id = NULL, $id_lang = NULL)
    {
        $this->def = ObjectModel::getDefinition($this);
        // Check if the id configuration is set in the configuration_lang table.
        // Otherwise configuration is not set as translated configuration.
        if ($id !== null) {
            $id_translated = Db::getInstance()->executeS('				SELECT `' . bqSQL($this->def['primary']) . '`
				FROM `' . bqSQL(_DB_PREFIX_ . $this->def['table']) . '_lang`
				WHERE `' . bqSQL($this->def['primary']) . '`=' . (int) $id . ' LIMIT 0,1
			');
            if (empty($id_translated)) {
                $id = null;
            }
        }
        parent::__construct($id, $id_lang);
    }
開發者ID:ramzzes52,項目名稱:Uni3,代碼行數:16,代碼來源:TranslatedConfiguration.php

示例3: __construct

 public function __construct($ibssoToken, $baseUrl = null)
 {
     parent::__construct($baseUrl);
     $this->ibssoToken = $ibssoToken;
 }
開發者ID:kjmtrue,項目名稱:infobip-api-php-client,代碼行數:5,代碼來源:IbssoAuthConfiguration.php

示例4: __construct

 /**
  * Build a configuration instance
  * @param array $data
  */
 public function __construct(array $data = [])
 {
     parent::__construct(array_merge(self::DEFAULTS, $data));
 }
開發者ID:bee4,項目名稱:transport,代碼行數:8,代碼來源:SshConfiguration.php

示例5: Sedici_config

 public function Sedici_config($conf)
 {
     parent::__construct($conf);
 }
開發者ID:sedici,項目名稱:wp-dspace,代碼行數:4,代碼來源:Sedici_config.php

示例6: __construct

 public function __construct($apiKey, $baseUrl = null)
 {
     parent::__construct($baseUrl);
     $this->apiKey = $apiKey;
 }
開發者ID:kjmtrue,項目名稱:infobip-api-php-client,代碼行數:5,代碼來源:ApiKeyAuthConfiguration.php

示例7: __construct

 public function __construct($username, $password, $baseUrl = null)
 {
     parent::__construct($baseUrl);
     $this->username = $username;
     $this->password = $password;
 }
開發者ID:kjmtrue,項目名稱:infobip-api-php-client,代碼行數:6,代碼來源:BasicAuthConfiguration.php

示例8: Cic_config

 public function Cic_config($conf)
 {
     parent::__construct($conf);
 }
開發者ID:sedici,項目名稱:wp-dspace,代碼行數:4,代碼來源:Cic_config.php


注:本文中的Configuration::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。