Amfphp_Core_Amf_Deserializer::readCustomClass PHP Method

readCustomClass() protected method

If a VoConverter is available, it is used to instanciate the Vo. If not, In order to preserve the class name an additional property is assigned to the object Amfphp_Core_Amf_Constants::FIELD_EXPLICIT_TYPE. This property will be overwritten if it existed within the class already.
protected readCustomClass ( ) : object
return object The php representation of the object
    protected function readCustomClass()
    {
        //not really sure why the replace is here? A.S. 201310
        $typeIdentifier = str_replace('..', '', $this->readUTF());
        $obj = $this->resolveType($typeIdentifier);
        $this->amf0storedObjects[] =& $obj;
        $key = $this->readUTF();
        // grab the key
        for ($type = $this->readByte(); $type != 9; $type = $this->readByte()) {
            $val = $this->readData($type);
            // grab the value
            $obj->{$key} = $val;
            // save the name/value pair in the array
            $key = $this->readUTF();
            // get the next name
        }
        return $obj;
    }