PHP Класс Bravo3\Orm\Services\IndexManager

Наследование: extends AbstractManagerUtility
Показать файл Открыть проект

Открытые методы

Метод Описание
deleteIndices ( object $entity, Entity $metadata = null, Reader $reader = null, string $local_id = null ) Delete all indices associated with an entity
persistIndices ( object $entity, Entity $metadata = null, Reader $reader = null, string $local_id = null ) Persist entity indices

Приватные методы

Метод Описание
traverseDeleteIndices ( array $indices, object $entity, Reader $reader, string $local_id ) Traverse an array of indices and persist them
traversePersistIndices ( array $indices, object $entity, Reader $reader, string $local_id ) Traverse an array of indices and persist them

Описание методов

deleteIndices() публичный Метод

Delete all indices associated with an entity
public deleteIndices ( object $entity, Entity $metadata = null, Reader $reader = null, string $local_id = null )
$entity object Local entity object
$metadata Bravo3\Orm\Mappers\Metadata\Entity Optionally provide entity metadata to prevent recalculation
$reader Bravo3\Orm\Services\Io\Reader Optionally provide the entity reader
$local_id string Optionally provide the local entity ID to prevent recalculation

persistIndices() публичный Метод

Persist entity indices
public persistIndices ( object $entity, Entity $metadata = null, Reader $reader = null, string $local_id = null )
$entity object Local entity object
$metadata Bravo3\Orm\Mappers\Metadata\Entity Optionally provide entity metadata to prevent recalculation
$reader Bravo3\Orm\Services\Io\Reader Optionally provide the entity reader
$local_id string Optionally provide the local entity ID to prevent recalculation