Cache.php
1 year ago
ConfigNotFoundException.php
2 years ago
DatabaseConfig.php
1 year ago
GeneralConfig.php
2 years ago
IniFileChain.php
1 month ago
SectionConfig.php
1 month ago
DatabaseConfig.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Matomo - free/libre analytics platform |
| 5 | * |
| 6 | * @link https://matomo.org |
| 7 | * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later |
| 8 | */ |
| 9 | namespace Piwik\Config; |
| 10 | |
| 11 | class DatabaseConfig extends \Piwik\Config\SectionConfig |
| 12 | { |
| 13 | public static function getSectionName() : string |
| 14 | { |
| 15 | return 'database'; |
| 16 | } |
| 17 | public static function isTiDb() : bool |
| 18 | { |
| 19 | return self::getConfigValue('schema') === 'Tidb'; |
| 20 | } |
| 21 | } |
| 22 |