PHP Класс Doctrine\ODM\OrientDB\Mapper\ClusterMap

Creates and caches a map of classes and clusters in the database, which makes it possible to tell the proxy class of an entity just by it's rid.
Автор: Tamás Millián ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$binding
$cache
$databaseName
$map

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

Метод Описание
__construct ( Doctrine\OrientDB\Binding\BindingInterface $binding, Doctrine\Common\Cache\Cache $cache )
generateMap ( ) Creates the mapping of classes to clusters, it is public so it can be called forcibly which will be handy if it's done in some cache-warmup task.
identifyClass ( Rid $rid ) : string Tries to identify the class of an rid by matching it against the clusters in the database

Защищенные методы

Метод Описание
getCacheKey ( )
getMap ( ) : array Loads/generates the map in case it's needed.
load ( ) Tries to load the map from cache, otherwise generates it.

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

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

public __construct ( Doctrine\OrientDB\Binding\BindingInterface $binding, Doctrine\Common\Cache\Cache $cache )
$binding Doctrine\OrientDB\Binding\BindingInterface
$cache Doctrine\Common\Cache\Cache

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

Creates the mapping of classes to clusters, it is public so it can be called forcibly which will be handy if it's done in some cache-warmup task.
public generateMap ( )

getCacheKey() защищенный Метод

protected getCacheKey ( )

getMap() защищенный Метод

Loads/generates the map in case it's needed.
protected getMap ( ) : array
Результат array

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

Tries to identify the class of an rid by matching it against the clusters in the database
public identifyClass ( Rid $rid ) : string
$rid Doctrine\ODM\OrientDB\Types\Rid
Результат string

load() защищенный Метод

Tries to load the map from cache, otherwise generates it.
protected load ( )

Описание свойств

$binding защищенное свойство

protected $binding

$cache защищенное свойство

protected $cache

$databaseName защищенное свойство

protected $databaseName

$map защищенное свойство

protected $map