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); }
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); }
public function __construct($ibssoToken, $baseUrl = null) { parent::__construct($baseUrl); $this->ibssoToken = $ibssoToken; }
/** * Build a configuration instance * @param array $data */ public function __construct(array $data = []) { parent::__construct(array_merge(self::DEFAULTS, $data)); }
public function Sedici_config($conf) { parent::__construct($conf); }
public function __construct($apiKey, $baseUrl = null) { parent::__construct($baseUrl); $this->apiKey = $apiKey; }
public function __construct($username, $password, $baseUrl = null) { parent::__construct($baseUrl); $this->username = $username; $this->password = $password; }
public function Cic_config($conf) { parent::__construct($conf); }