public static function convertPingppObjectToStdObject($values)
    {
        $results = new stdClass;
        foreach ($values as $k => $v) {
            // FIXME: this is an encapsulation violation
            if ($k[0] == '_') {
                continue;
            }
            if ($v instanceof PingppObject) {
                $results->$k = $v->__toStdObject(true);
            } else if (is_array($v)) {
                $results->$k = self::convertPingppObjectToArray($v, true);
            } else {
                $results->$k = $v;
            }
        }
        return $results;
    }
public static function convertPingppObjectToStdObject($values)
    {
        $results = new stdClass;
        foreach ($values as $k => $v) {
            // FIXME: this is an encapsulation violation
            if ($k[0] == '_') {
                continue;
            }
            if ($v instanceof PingppObject) {
                $results->$k = $v->__toStdObject(true);
            } else if (is_array($v)) {
                $results->$k = self::convertPingppObjectToArray($v, true);
            } else {
                $results->$k = $v;
            }
        }
        return $results;
    }
public static function convertPingppObjectToStdObject ( $ values ) { $ results = new stdClass ; foreach ( $ values as $ k => $ v ) { // FIXME: this is an encapsulation violation if ( $ k [ 0 ] == '_' ) { continue ; } if ( $ v instanceof PingppObject ) { $ results -> $ k = $ v -> __toStdObject ( true ) ; } else if ( is_array ( $ v ) ) { $ results -> $ k = self :: convertPingppObjectToArray ( $ v , true ) ; } else { $ results -> $ k = $ v ; } } return $ results ; }
Recursively converts the PHP Pingpp object to an stdObject.

@param array $values The PHP Pingpp object to convert.
@return array
Recursively converts the PHP Pingpp object to an stdObject .