protected function getClassName($object)
    {
        require_once 'Zend/Amf/Parse/TypeLoader.php';
        //Check to see if the object is a typed object and we need to change
        $className = '';
        switch (true) {
            // the return class mapped name back to actionscript class name.
            case Zend_Amf_Parse_TypeLoader::getMappedClassName(get_class($object)):
                $className = Zend_Amf_Parse_TypeLoader::getMappedClassName(get_class($object));
                break;
                // Check to see if the user has defined an explicit Action Script type.
            case isset($object->_explicitType):
                $className = $object->_explicitType;
                break;
                // Check if user has defined a method for accessing the Action Script type
            case method_exists($object, 'getASClassName'):
                $className = $object->getASClassName();
                break;
                // No return class name is set make it a generic object
            case ($object instanceof stdClass):
                $className = '';
                break;
        // By default, use object's class name
            default:
        $className = get_class($object);
                break;
        }
        if(!$className == '') {
            return $className;
        } else {
            return false;
        }
    }
protected function getClassName($object)
    {
        require_once 'Zend/Amf/Parse/TypeLoader.php';
        //Check to see if the object is a typed object and we need to change
        $className = '';
        switch (true) {
            // the return class mapped name back to actionscript class name.
            case Zend_Amf_Parse_TypeLoader::getMappedClassName(get_class($object)):
                $className = Zend_Amf_Parse_TypeLoader::getMappedClassName(get_class($object));
                break;
                // Check to see if the user has defined an explicit Action Script type.
            case isset($object->_explicitType):
                $className = $object->_explicitType;
                break;
                // Check if user has defined a method for accessing the Action Script type
            case method_exists($object, 'getASClassName'):
                $className = $object->getASClassName();
                break;
                // No return class name is set make it a generic object
            case ($object instanceof stdClass):
                $className = '';
                break;
        // By default, use object's class name
            default:
        $className = get_class($object);
                break;
        }
        if(!$className == '') {
            return $className;
        } else {
            return false;
        }
    }
protected function getClassName ( $ object ) { require_once 'Zend/Amf/Parse/TypeLoader.php' ; //Check to see if the object is a typed object and we need to change $ className = '' ; switch ( true ) { // the return class mapped name back to actionscript class name. case Zend_Amf_Parse_TypeLoader :: getMappedClassName ( get_class ( $ object ) ) : $ className = Zend_Amf_Parse_TypeLoader :: getMappedClassName ( get_class ( $ object ) ) ; break ; // Check to see if the user has defined an explicit Action Script type. case isset ( $ object -> _explicitType ) : $ className = $ object -> _explicitType ; break ; // Check if user has defined a method for accessing the Action Script type case method_exists ( $ object , 'getASClassName' ) : $ className = $ object -> getASClassName ( ) ; break ; // No return class name is set make it a generic object case ( $ object instanceof stdClass ) : $ className = '' ; break ; // By default, use object's class name default : $ className = get_class ( $ object ) ; break ; } if ( ! $ className == '' ) { return $ className ; } else { return false ; } }
Find if the class name is a class mapped name and return the
respective classname if it is.

@param object $object
@return false|string $className
Find if the class name is a class mapped name and return the respective classname if it is .