PHP 클래스 Phalcon\Db\Adapter\MongoDB\Model\BSONDocument

The internal data will be cast to an object during BSON serialization to ensure that it becomes a BSON document.
상속: extends ArrayObjec\ArrayObject, implements MongoDB\BSON\Serializable, implements MongoDB\BSON\Unserializable
파일 보기 프로젝트 열기: phalcon/incubator

공개 메소드들

메소드 설명
__construct ( $input = [], $flags = ArrayObject::ARRAY_AS_PROPS, $iterator_class = 'ArrayIterator' ) Constructor.
__set_state ( array $properties ) : self Factory method for var_export().
bsonSerialize ( ) : object Serialize the document to BSON.
bsonUnserialize ( array $data ) Unserialize the document to BSON.

메소드 상세

__construct() 공개 메소드

This overrides the parent constructor to allow property access of entries by default.
또한 보기: http://php.net/arrayobject.construct
public __construct ( $input = [], $flags = ArrayObject::ARRAY_AS_PROPS, $iterator_class = 'ArrayIterator' )

__set_state() 공개 정적인 메소드

Factory method for var_export().
또한 보기: http://php.net/oop5.magic#object.set-state
또한 보기: http://php.net/var-export
public static __set_state ( array $properties ) : self
$properties array
리턴 self

bsonSerialize() 공개 메소드

Serialize the document to BSON.
또한 보기: http://php.net/mongodb-bson-serializable.bsonserialize
public bsonSerialize ( ) : object
리턴 object

bsonUnserialize() 공개 메소드

Unserialize the document to BSON.
또한 보기: http://php.net/mongodb-bson-unserializable.bsonunserialize
public bsonUnserialize ( array $data )
$data array Array data