Author: Coen Hyde
Inheritance: extends Shanty_Mongo_Collection, implements ArrayAccess, implements Countable, implements IteratorAggregate
Esempio n. 1
0
 public function __construct(Shanty_Mongo_Document $document)
 {
     $this->_document = $document;
     $this->_properties = $document->getPropertyKeys();
     $this->_position = current($this->_properties);
     reset($this->_properties);
 }
Esempio n. 2
0
 /**
  * Remove all operations
  * 
  * @param Boolean $includingChildren Remove operations from children as wells
  */
 public function purgeOperations($includingChildren = false)
 {
     if ($this->hasRequirement(self::DYNAMIC_INDEX, 'AsReference')) {
         $includingChildren = false;
     }
     return parent::purgeOperations($includingChildren);
 }
Esempio n. 3
0
 /**
  * @expectedException Shanty_Mongo_Exception
  */
 public function testSetPropertyRequirementsException()
 {
     $address = new Shanty_Mongo_Document();
     $address->street = '234 ';
     $this->_bob->addresses[] = $address;
     $address->export();
 }