SwatDB/SwatDBDataObject.php
protected function generatePropertyHashes()
    {
        if ($this->read_only) {
            return;
        }

        // Note: SwatDBDataObject::generatePropertyHash() is not used
        // here because it would mean calling the expensive getProperties()
        // method in a loop.
        foreach ($this->getProperties() as $name => $value) {
            $hashed_value = $this->getHashValue($value);
            $this->property_hashes[$name] = $hashed_value;
        }
    }
protected function generatePropertyHashes()
    {
        if ($this->read_only) {
            return;
        }

        // Note: SwatDBDataObject::generatePropertyHash() is not used
        // here because it would mean calling the expensive getProperties()
        // method in a loop.
        foreach ($this->getProperties() as $name => $value) {
            $hashed_value = $this->getHashValue($value);
            $this->property_hashes[$name] = $hashed_value;
        }
    }
protected function generatePropertyHashes ( ) { if ( $ this -> read_only ) { return ; } // Note: SwatDBDataObject::generatePropertyHash() is not used // here because it would mean calling the expensive getProperties() // method in a loop. foreach ( $ this -> getProperties ( ) as $ name => $ value ) { $ hashed_value = $ this -> getHashValue ( $ value ) ; $ this -> property_hashes [ $ name ] = $ hashed_value ; } }
Generates the set of md5 hashes for this data object

The md5 hashes represent all the public properties of this object and
are used to tell if a property has been modified.
Generates the set of md5 hashes for this data object