public function loadFromDriver(\triagens\ArangoDb\Document $driverDocument)
    {
        $values = $driverDocument->getAll(array('_includeInternals' => true));

        foreach ($values as $key => $value) {

            if (!in_array($key, array('_id', '_key', '_rev'))) {
                $this->_data[$key] = $value;
            }
        }

        $this->setId($driverDocument->getInternalId());
        $this->setRevision($driverDocument->getRevision());
        $this->setSaved();
    }
public function loadFromDriver(\triagens\ArangoDb\Document $driverDocument)
    {
        $values = $driverDocument->getAll(array('_includeInternals' => true));

        foreach ($values as $key => $value) {

            if (!in_array($key, array('_id', '_key', '_rev'))) {
                $this->_data[$key] = $value;
            }
        }

        $this->setId($driverDocument->getInternalId());
        $this->setRevision($driverDocument->getRevision());
        $this->setSaved();
    }
public function loadFromDriver ( \ triagens \ ArangoDb \ Document $ driverDocument ) { $ values = $ driverDocument -> getAll ( array ( '_includeInternals' => true ) ) ; foreach ( $ values as $ key => $ value ) { if ( ! in_array ( $ key , array ( '_id' , '_key' , '_rev' ) ) ) { $ this -> _data [ $ key ] = $ value ; } } $ this -> setId ( $ driverDocument -> getInternalId ( ) ) ; $ this -> setRevision ( $ driverDocument -> getRevision ( ) ) ; $ this -> setSaved ( ) ; }
Load this pod with document data from a ArangoDB-PHP document object.
@param \triagens\ArangoDb\Document $driverDocument
Load this pod with document data from a ArangoDB - PHP document object .