predefined entities + override database entity handler

This commit is contained in:
2023-01-09 17:09:57 +01:00
parent cee54a1946
commit 5ac363d360
5 changed files with 41 additions and 9 deletions

View File

@@ -2,6 +2,7 @@
namespace Core\Objects\DatabaseEntity {
use Core\Driver\SQL\SQL;
use Core\Objects\DatabaseEntity\Attribute\MaxLength;
use Core\Objects\DatabaseEntity\Attribute\Transient;
use Core\Objects\DatabaseEntity\Controller\DatabaseEntity;
@@ -139,6 +140,13 @@ namespace Core\Objects\DatabaseEntity {
public function hasModule(string $module): bool {
return array_key_exists($module, $this->entries);
}
public static function getPredefinedValues(SQL $sql): array {
return [
new Language(Language::AMERICAN_ENGLISH, "en_US", 'American English'),
new Language(Language::GERMAN_STANDARD, "de_DE", 'Deutsch Standard'),
];
}
}
}