芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/cepali/cache/stores/mongodb/MongoDB/Model/BSONDocument.php
$value) { $this[$key] = \MongoDB\recursive_copy($value); } } /** * Constructor. * * This overrides the parent constructor to allow property access of entries * by default. * * @see http://php.net/arrayobject.construct */ public function __construct($input = [], $flags = ArrayObject::ARRAY_AS_PROPS, $iterator_class = 'ArrayIterator') { parent::__construct($input, $flags, $iterator_class); } /** * Factory method for var_export(). * * @see http://php.net/oop5.magic#object.set-state * @see http://php.net/var-export * @param array $properties * @return self */ public static function __set_state(array $properties) { $document = new static; $document->exchangeArray($properties); return $document; } /** * Serialize the document to BSON. * * @see http://php.net/mongodb-bson-serializable.bsonserialize * @return object */ public function bsonSerialize() { return (object) $this->getArrayCopy(); } /** * Unserialize the document to BSON. * * @see http://php.net/mongodb-bson-unserializable.bsonunserialize * @param array $data Array data */ public function bsonUnserialize(array $data) { parent::__construct($data, ArrayObject::ARRAY_AS_PROPS); } /** * Serialize the array to JSON. * * @see http://php.net/jsonserializable.jsonserialize * @return object */ public function jsonSerialize() { return (object) $this->getArrayCopy(); } }