PHP 클래스 Doctrine\ODM\MongoDB\Mapping\ClassMetadata

Once populated, ClassMetadata instances are usually cached in a serialized form. IMPORTANT NOTE: The fields of this class are only public for 2 reasons: 1) To allow fast READ access. 2) To drastically reduce the size of a serialized instance (private/protected members get the whole class name, namespace inclusive, prepended to every property in the serialized representation).
부터: 1.0
저자: Jonathan H. Wage ([email protected])
저자: Roman Borschel ([email protected])
파일 보기 프로젝트 열기: doctrine/mongodb-odm 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$reflFields ReflectionProperty[] The ReflectionProperty instances of the mapped class.

공개 메소드들

메소드 설명
__construct ( string $documentName ) Initializes a new ClassMetadata instance that will hold the object-document mapping metadata of the class with the given name.
__sleep ( ) : array Determines which fields get serialized.
__wakeup ( ) : void Restores some state that can not be serialized/unserialized.
mapField ( array $mapping ) : void Map a field.
newInstance ( ) : object Creates a new instance of the mapped class, without invoking the constructor.

메소드 상세

__construct() 공개 메소드

Initializes a new ClassMetadata instance that will hold the object-document mapping metadata of the class with the given name.
public __construct ( string $documentName )
$documentName string The name of the document class the new instance is used for.

__sleep() 공개 메소드

It is only serialized what is necessary for best unserialization performance. That means any metadata properties that are not set or empty or simply have their default value are NOT serialized. Parts that are also NOT serialized because they can not be properly unserialized: - reflClass (ReflectionClass) - reflFields (ReflectionProperty array)
public __sleep ( ) : array
리턴 array The names of all the fields that should be serialized.

__wakeup() 공개 메소드

Restores some state that can not be serialized/unserialized.
public __wakeup ( ) : void
리턴 void

mapField() 공개 메소드

Map a field.
public mapField ( array $mapping ) : void
$mapping array The mapping information.
리턴 void

newInstance() 공개 메소드

Creates a new instance of the mapped class, without invoking the constructor.
public newInstance ( ) : object
리턴 object

프로퍼티 상세

$reflFields 공개적으로 프로퍼티

The ReflectionProperty instances of the mapped class.
public ReflectionProperty[] $reflFields
리턴 ReflectionProperty[]