@@ 579-586 (lines=8) @@ | ||
576 | * @param object $document |
|
577 | * @return array array('property' => array(0 => mixed|null, 1 => mixed|null)) |
|
578 | */ |
|
579 | public function getDocumentChangeSet($document) |
|
580 | { |
|
581 | $oid = spl_object_hash($document); |
|
582 | if (isset($this->documentChangeSets[$oid])) { |
|
583 | return $this->documentChangeSets[$oid]; |
|
584 | } |
|
585 | return array(); |
|
586 | } |
|
587 | ||
588 | /** |
|
589 | * INTERNAL: |
|
@@ 595-602 (lines=8) @@ | ||
592 | * @param object $document |
|
593 | * @return array array('property' => array(0 => mixed|null, 1 => mixed|null)) |
|
594 | */ |
|
595 | public function &getDocumentChangeSetByRef($document) |
|
596 | { |
|
597 | $oid = spl_object_hash($document); |
|
598 | if ( ! isset($this->documentChangeSets[$oid])) { |
|
599 | $this->documentChangeSets[$oid] = array(); |
|
600 | } |
|
601 | return $this->documentChangeSets[$oid]; |
|
602 | } |
|
603 | ||
604 | /** |
|
605 | * Get a documents actual data, flattening all the objects to arrays. |