iRepository
MMO\core\interfaces · 1 symbole · générée le 27 Oct 2026
interface MMO\core\interfaces\iRepository
extends MMO\core\interfaces\iIdentifiable- Espace de noms
MMO\core\interfaces- Implémente
- iIdentifiable
Méthodes11
abstract function createCollection(string $name, string $entityClass, ?string $collectionId = null): MMO\core\interfaces\iCollectionabstract function createEntity(
string $class,
array $data,
?MMO\core\interfaces\iCollection $collection = null
): MMO\core\interfaces\iEntityabstract function dropCollection(MMO\core\interfaces\iCollection|string $collection): boolabstract function executeQuery(MMO\core\entities\Query $query): iterableabstract function getCollection(string $name): MMO\core\interfaces\iCollectionabstract function getCollectionByClass(string $entityClass, bool $allowChildClass = true): ?MMO\core\interfaces\iCollection| $entityClass | string | |
| $allowChildClass = true | bool | also match a collection of a subclass of $entityClass |
| retourne | null | iCollection | the collection holding $entityClass |
abstract function getCollectionName(MMO\core\interfaces\iCollection $collection): ?stringabstract function getCollections(): array| retourne | array | iCollection> its collections, by name |
abstract function getDistinct(string $collection, string $key): array| $collection | string | the collection's name |
| $key | string | the property (a /-separated path for a nested one) |
| retourne | array | every value it takes, once, in ascending order |
abstract function hasCollection(MMO\core\interfaces\iCollection|string $collection): boolabstract function searchText(
MMO\core\interfaces\iCollection|MMO\core\entities\Query|string $query,
string $text
): arrayMembres hérités (1)
| Méthodes | Déclaré par | Description |
|---|
| uid() | iIdentifiable | Get the unique identifier |