本文整理汇总了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);
}