PHP Class Bravo3\Orm\Services\IndexManager

Inheritance: extends AbstractManagerUtility
显示文件 Open project: bravo3/orm

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

deleteIndices() public method

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() public method

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