本文整理匯總了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);
}
示例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);
}
示例3: __construct
public function __construct($ibssoToken, $baseUrl = null)
{
parent::__construct($baseUrl);
$this->ibssoToken = $ibssoToken;
}
示例4: __construct
/**
* Build a configuration instance
* @param array $data
*/
public function __construct(array $data = [])
{
parent::__construct(array_merge(self::DEFAULTS, $data));
}
示例5: Sedici_config
public function Sedici_config($conf)
{
parent::__construct($conf);
}
示例6: __construct
public function __construct($apiKey, $baseUrl = null)
{
parent::__construct($baseUrl);
$this->apiKey = $apiKey;
}
示例7: __construct
public function __construct($username, $password, $baseUrl = null)
{
parent::__construct($baseUrl);
$this->username = $username;
$this->password = $password;
}
示例8: Cic_config
public function Cic_config($conf)
{
parent::__construct($conf);
}