iRepository
MMO\core\interfaces · 1 symbol · generated 5 Oct 2026
interface MMO\core\interfaces\iRepository
extends MMO\core\interfaces\iIdentifiable- Namespace
MMO\core\interfaces- Implements
- iIdentifiable
Methods11
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 |
| returns | null | iCollection | the collection holding $entityClass |
abstract function getCollectionName(MMO\core\interfaces\iCollection $collection): ?stringabstract function getCollections(): array| returns | 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) |
| returns | 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
): arrayInherited members (1)
| Methods | Declared by | Description |
|---|
| uid() | iIdentifiable | Get the unique identifier |