module/Core/src/Grid/Core/Controller/RpcController.php
protected static function rawData( $object )
    {
        if ( is_object( $object ) )
        {
            $hash = spl_object_hash( $object );

            if ( isset( self::$rawCheck[$hash] ) )
            {
                return array( '#recursion#' => $hash );
            }

            self::$rawCheck[$hash] = true;
        }

        $object = (array) $object;

        foreach ( $object as $key => $value )
        {
            if ( is_array( $value ) || is_object( $value ) )
            {
                $object[$key] = self::rawData( $value );
            }
        }

        return (object) $object;
    }
protected static function rawData( $object )
    {
        if ( is_object( $object ) )
        {
            $hash = spl_object_hash( $object );

            if ( isset( self::$rawCheck[$hash] ) )
            {
                return array( '#recursion#' => $hash );
            }

            self::$rawCheck[$hash] = true;
        }

        $object = (array) $object;

        foreach ( $object as $key => $value )
        {
            if ( is_array( $value ) || is_object( $value ) )
            {
                $object[$key] = self::rawData( $value );
            }
        }

        return (object) $object;
    }
protected static function rawData ( $ object ) { if ( is_object ( $ object ) ) { $ hash = spl_object_hash ( $ object ) ; if ( isset ( self :: $ rawCheck [ $ hash ] ) ) { return array ( '#recursion#' => $ hash ) ; } self :: $ rawCheck [ $ hash ] = true ; } $ object = ( array ) $ object ; foreach ( $ object as $ key => $ value ) { if ( is_array ( $ value ) || is_object ( $ value ) ) { $ object [ $ key ] = self :: rawData ( $ value ) ; } } return ( object ) $ object ; }
Convert data to raw object

@param   array|object    $object
@return  object
Convert data to raw object