PHP 클래스 Pagekit\Database\ORM\MetadataManager

파일 보기 프로젝트 열기: pagekit/pagekit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cache Doctrine\Common\Cache\Cache
$connection Pagekit\Database\Connection
$events Pagekit\Event\EventDispatcherInterface
$loader Pagekit\Database\ORM\Loader\LoaderInterface
$metadata Pagekit\Database\ORM\Metadata[]
$prefix string The cache prefix

공개 메소드들

메소드 설명
__construct ( Pagekit\Database\Connection $connection, Pagekit\Event\EventDispatcherInterface $events ) Constructor.
get ( object | string $class ) : Pagekit\Database\ORM\Metadata Gets the metadata for the given class.
getCache ( ) : Doctrine\Common\Cache\Cache Gets the cache used for caching Metadata objects.
getConnection ( ) : Pagekit\Database\Connection Gets the database connection.
has ( string $class ) : boolean Checks if the metadata for a class is already loaded.
setCache ( Doctrine\Common\Cache\Cache $cache ) Sets the cache used for caching Metadata objects.
setLoader ( Pagekit\Database\ORM\Loader\LoaderInterface $loader ) Sets the loader object used by the factory to create Metadata objects.

보호된 메소드들

메소드 설명
getParentClasses ( ReflectionClass $class ) : array Get array of parent classes for the given class.
load ( ReflectionClass $class ) : Pagekit\Database\ORM\Metadata Loads the metadata of the given class.
subscribe ( Pagekit\Database\ORM\Metadata $metadata ) Subscribes model lifecycle callbacks.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Pagekit\Database\Connection $connection, Pagekit\Event\EventDispatcherInterface $events )
$connection Pagekit\Database\Connection
$events Pagekit\Event\EventDispatcherInterface

get() 공개 메소드

Gets the metadata for the given class.
public get ( object | string $class ) : Pagekit\Database\ORM\Metadata
$class object | string
리턴 Pagekit\Database\ORM\Metadata

getCache() 공개 메소드

Gets the cache used for caching Metadata objects.
public getCache ( ) : Doctrine\Common\Cache\Cache
리턴 Doctrine\Common\Cache\Cache

getConnection() 공개 메소드

Gets the database connection.
public getConnection ( ) : Pagekit\Database\Connection
리턴 Pagekit\Database\Connection

getParentClasses() 보호된 메소드

Get array of parent classes for the given class.
protected getParentClasses ( ReflectionClass $class ) : array
$class ReflectionClass
리턴 array

has() 공개 메소드

Checks if the metadata for a class is already loaded.
public has ( string $class ) : boolean
$class string
리턴 boolean

load() 보호된 메소드

Loads the metadata of the given class.
protected load ( ReflectionClass $class ) : Pagekit\Database\ORM\Metadata
$class ReflectionClass
리턴 Pagekit\Database\ORM\Metadata

setCache() 공개 메소드

Sets the cache used for caching Metadata objects.
public setCache ( Doctrine\Common\Cache\Cache $cache )
$cache Doctrine\Common\Cache\Cache

setLoader() 공개 메소드

Sets the loader object used by the factory to create Metadata objects.
public setLoader ( Pagekit\Database\ORM\Loader\LoaderInterface $loader )
$loader Pagekit\Database\ORM\Loader\LoaderInterface

subscribe() 보호된 메소드

Subscribes model lifecycle callbacks.
protected subscribe ( Pagekit\Database\ORM\Metadata $metadata )
$metadata Pagekit\Database\ORM\Metadata

프로퍼티 상세

$cache 보호되어 있는 프로퍼티

protected Cache,Doctrine\Common\Cache $cache
리턴 Doctrine\Common\Cache\Cache

$connection 보호되어 있는 프로퍼티

protected Connection,Pagekit\Database $connection
리턴 Pagekit\Database\Connection

$events 보호되어 있는 프로퍼티

protected EventDispatcherInterface,Pagekit\Event $events
리턴 Pagekit\Event\EventDispatcherInterface

$loader 보호되어 있는 프로퍼티

protected LoaderInterface,Pagekit\Database\ORM\Loader $loader
리턴 Pagekit\Database\ORM\Loader\LoaderInterface

$metadata 보호되어 있는 프로퍼티

protected Metadata[],Pagekit\Database\ORM $metadata
리턴 Pagekit\Database\ORM\Metadata[]

$prefix 보호되어 있는 프로퍼티

The cache prefix
protected string $prefix
리턴 string