MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

iRepository

MMO\core\interfaces · 1 symbole · générée le 27 Oct 2026

interface

iRepository

iRepository.php:7
interface MMO\core\interfaces\iRepository extends MMO\core\interfaces\iIdentifiable
Espace de noms
MMO\core\interfaces
Implémente
iIdentifiable

Méthodes11

createCollection($name, $entityClass, $collectionId)

abstractiRepository.php:12
abstract function createCollection(string $name, string $entityClass, ?string $collectionId = null): MMO\core\interfaces\iCollection
$namestring
$entityClassstring
$collectionId = nullnull | string
retourneiCollection

createEntity($class, $data, $collection)

abstractiRepository.php:18
abstract function createEntity( string $class, array $data, ?MMO\core\interfaces\iCollection $collection = null ): MMO\core\interfaces\iEntity
$classstring
$dataarray
$collection = nullnull | iCollection
retourneiEntity

getCollectionByClass($entityClass, $allowChildClass)

abstractiRepository.php:32
abstract function getCollectionByClass(string $entityClass, bool $allowChildClass = true): ?MMO\core\interfaces\iCollection
$entityClassstring
$allowChildClass = trueboolalso match a collection of a subclass of $entityClass
retournenull | iCollectionthe collection holding $entityClass

getCollectionName($collection)

abstractiRepository.php:25
abstract function getCollectionName(MMO\core\interfaces\iCollection $collection): ?string
$collectioniCollection
retournenull | stringthe name $collection has in this repository

getCollections()

abstractiRepository.php:23
abstract function getCollections(): array
retournearrayiCollection> its collections, by name

getDistinct($collection, $key)

abstractiRepository.php:40
abstract function getDistinct(string $collection, string $key): array
$collectionstringthe collection's name
$keystringthe property (a /-separated path for a nested one)
retournearrayevery value it takes, once, in ascending order

searchText($query, $text)

abstractiRepository.php:34
abstract function searchText( MMO\core\interfaces\iCollection|MMO\core\entities\Query|string $query, string $text ): array
$queryiCollection | Query | string
$textstring
retournearraythe entities whose searchable text matches $text
Membres hérités (1)
MéthodesDéclaré parDescription
uid()iIdentifiableGet the unique identifier