PHP 클래스 Neos\Flow\Reflection\ClassSchema

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$className string Name of the class this schema is referring to
$identityProperties array The properties forming the identity of an object
$lazyLoadable boolean Whether instances of the class can be lazy-loadable
$modelType integer Model type of the class this schema is referring to
$properties array Properties of the class which need to be persisted
$repositoryClassName string

공개 메소드들

메소드 설명
__construct ( string $className ) Constructs this class schema
addProperty ( string $name, string $type, boolean $lazy = false, boolean $transient = false ) : void Adds (defines) a specific property and its type.
getClassName ( ) : string Returns the class name this schema is referring to
getIdentityProperties ( ) : array Gets the properties (names and types) forming the identity of an object.
getModelType ( ) : integer Returns the model type of the class this schema is referring to.
getProperties ( ) : array Returns all properties defined in this schema
getProperty ( string $propertyName ) : array Returns the given property defined in this schema. Check with hasProperty($propertyName) before!
getRepositoryClassName ( ) : string
hasProperty ( string $propertyName ) : boolean If the class schema has a certain property.
isAggregateRoot ( ) : boolean Whether the class is accessible through a repository and therefore an aggregate root.
isLazyLoadableObject ( ) : boolean Marks the class as being lazy-loadable.
isMultiValuedProperty ( string $propertyName ) : boolean Checks if the given property defined in this schema is multi-valued (i.e.
isPropertyLazy ( string $propertyName ) : boolean If a certain class schema property is to be lazy loaded
isPropertyTransient ( string $propertyName ) : boolean If a certain class schema property is to disregarded for persistence
markAsIdentityProperty ( string $propertyName ) : void Marks the given property as one of properties forming the identity of an object. The property must already be registered in the class schema.
setLazyLoadableObject ( boolean $lazyLoadable ) : void Marks the class as being lazy-loadable.
setModelType ( integer $modelType ) : void Sets the model type of the class this schema is referring to.
setRepositoryClassName ( string $repositoryClassName ) : void Set the class name of the repository managing an entity.

메소드 상세

__construct() 공개 메소드

Constructs this class schema
public __construct ( string $className )
$className string Name of the class this schema is referring to

addProperty() 공개 메소드

Adds (defines) a specific property and its type.
public addProperty ( string $name, string $type, boolean $lazy = false, boolean $transient = false ) : void
$name string Name of the property
$type string Type of the property
$lazy boolean Whether the property should be lazy-loaded when reconstituting
$transient boolean Whether the property should not be considered for persistence
리턴 void

getClassName() 공개 메소드

Returns the class name this schema is referring to
public getClassName ( ) : string
리턴 string The class name

getIdentityProperties() 공개 메소드

Gets the properties (names and types) forming the identity of an object.
또한 보기: markAsIdentityProperty()
public getIdentityProperties ( ) : array
리턴 array

getModelType() 공개 메소드

Returns the model type of the class this schema is referring to.
public getModelType ( ) : integer
리턴 integer The model type, one of the MODELTYPE_* constants.

getProperties() 공개 메소드

Returns all properties defined in this schema
public getProperties ( ) : array
리턴 array

getProperty() 공개 메소드

Returns the given property defined in this schema. Check with hasProperty($propertyName) before!
public getProperty ( string $propertyName ) : array
$propertyName string
리턴 array

getRepositoryClassName() 공개 메소드

public getRepositoryClassName ( ) : string
리턴 string

hasProperty() 공개 메소드

If the class schema has a certain property.
public hasProperty ( string $propertyName ) : boolean
$propertyName string Name of the property
리턴 boolean

isAggregateRoot() 공개 메소드

Whether the class is accessible through a repository and therefore an aggregate root.
public isAggregateRoot ( ) : boolean
리턴 boolean TRUE

isLazyLoadableObject() 공개 메소드

Marks the class as being lazy-loadable.
public isLazyLoadableObject ( ) : boolean
리턴 boolean

isMultiValuedProperty() 공개 메소드

array or SplObjectStorage).
public isMultiValuedProperty ( string $propertyName ) : boolean
$propertyName string
리턴 boolean

isPropertyLazy() 공개 메소드

If a certain class schema property is to be lazy loaded
public isPropertyLazy ( string $propertyName ) : boolean
$propertyName string Name of the property
리턴 boolean

isPropertyTransient() 공개 메소드

If a certain class schema property is to disregarded for persistence
public isPropertyTransient ( string $propertyName ) : boolean
$propertyName string Name of the property
리턴 boolean

markAsIdentityProperty() 공개 메소드

Marks the given property as one of properties forming the identity of an object. The property must already be registered in the class schema.
public markAsIdentityProperty ( string $propertyName ) : void
$propertyName string
리턴 void

setLazyLoadableObject() 공개 메소드

Marks the class as being lazy-loadable.
public setLazyLoadableObject ( boolean $lazyLoadable ) : void
$lazyLoadable boolean
리턴 void

setModelType() 공개 메소드

Sets the model type of the class this schema is referring to.
public setModelType ( integer $modelType ) : void
$modelType integer The model type, one of the MODELTYPE_* constants.
리턴 void

setRepositoryClassName() 공개 메소드

Set the class name of the repository managing an entity.
public setRepositoryClassName ( string $repositoryClassName ) : void
$repositoryClassName string
리턴 void

프로퍼티 상세

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

Name of the class this schema is referring to
protected string $className
리턴 string

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

The properties forming the identity of an object
protected array $identityProperties
리턴 array

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

Whether instances of the class can be lazy-loadable
protected bool $lazyLoadable
리턴 boolean

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

Model type of the class this schema is referring to
protected int $modelType
리턴 integer

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

Properties of the class which need to be persisted
protected array $properties
리턴 array

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

protected string $repositoryClassName
리턴 string