Rev 295 | Rev 313 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 295 | Rev 299 | ||
---|---|---|---|
Line 128... | Line 128... | ||
128 | // Now that our database is up-to-date, we check if database tables are existing |
128 | // Now that our database is up-to-date, we check if database tables are existing |
129 | // without config table, because it was checked above |
129 | // without config table, because it was checked above |
130 | $this->initRequireTables(array('objects', 'asn1id', 'iri', 'ra'/*, 'config'*/)); |
130 | $this->initRequireTables(array('objects', 'asn1id', 'iri', 'ra'/*, 'config'*/)); |
131 | } |
131 | } |
132 | 132 | ||
133 | protected static function getHardcodedSlangById($id): /*?*/OIDplusSqlSlangPlugin { |
133 | protected static function getHardcodedSlangById($id)/*: ?OIDplusSqlSlangPlugin*/ { |
134 | foreach (OIDplus::getSqlSlangPlugins() as $plugin) { |
134 | foreach (OIDplus::getSqlSlangPlugins() as $plugin) { |
135 | if ($plugin::id() == $id) { |
135 | if ($plugin::id() == $id) { |
136 | return $plugin; |
136 | return $plugin; |
137 | } |
137 | } |
138 | } |
138 | } |
Line 175... | Line 175... | ||
175 | } else { |
175 | } else { |
176 | return "'" . datetime('Y-m-d H:i:s') . "'"; |
176 | return "'" . datetime('Y-m-d H:i:s') . "'"; |
177 | } |
177 | } |
178 | } |
178 | } |
179 | 179 | ||
180 | public final function getSlang(bool $mustExist=true): /*?*/OIDplusSqlSlangPlugin { |
180 | public final function getSlang(bool $mustExist=true)/*: ?OIDplusSqlSlangPlugin*/ { |
181 | if (is_null($this->slang)) { |
181 | if (is_null($this->slang)) { |
182 | if (OIDplus::baseConfig()->exists('FORCE_DBMS_SLANG')) { |
182 | if (OIDplus::baseConfig()->exists('FORCE_DBMS_SLANG')) { |
183 | $name = OIDplus::baseConfig()->getValue('FORCE_DBMS_SLANG', ''); |
183 | $name = OIDplus::baseConfig()->getValue('FORCE_DBMS_SLANG', ''); |
184 | $this->slang = self::getHardcodedSlangById($name); |
184 | $this->slang = self::getHardcodedSlangById($name); |
185 | if ($mustExist && is_null($this->slang)) { |
185 | if ($mustExist && is_null($this->slang)) { |