kernel/private/rest/classes/request/http_parser.php
protected function fillContentVariables()
    {
        $contentVariables = array();
        $expectedVariables = array( 'Translation', 'OutputFormat' );

        foreach( $expectedVariables as $variable )
        {
            if( isset( $_GET[$variable] ) )
            {
                // Extract and organize variables as expected
                switch( $variable )
                {
                    case 'Translation': // @TODO => Make some control on the locale provided
                    default:
                        $contentVariables[$variable] = $_GET[$variable];
                }

                unset( $_GET[$variable] );
            }
            else
            {
                $contentVariables[$variable] = null;
            }
        }

        return $contentVariables;
    }
protected function fillContentVariables()
    {
        $contentVariables = array();
        $expectedVariables = array( 'Translation', 'OutputFormat' );

        foreach( $expectedVariables as $variable )
        {
            if( isset( $_GET[$variable] ) )
            {
                // Extract and organize variables as expected
                switch( $variable )
                {
                    case 'Translation': // @TODO => Make some control on the locale provided
                    default:
                        $contentVariables[$variable] = $_GET[$variable];
                }

                unset( $_GET[$variable] );
            }
            else
            {
                $contentVariables[$variable] = null;
            }
        }

        return $contentVariables;
    }
protected function fillContentVariables ( ) { $ contentVariables = array ( ) ; $ expectedVariables = array ( 'Translation' , 'OutputFormat' ) ; foreach ( $ expectedVariables as $ variable ) { if ( isset ( $ _GET [ $ variable ] ) ) { // Extract and organize variables as expected switch ( $ variable ) { case 'Translation' : // @TODO => Make some control on the locale provided default : $ contentVariables [ $ variable ] = $ _GET [ $ variable ] ; } unset ( $ _GET [ $ variable ] ) ; } else { $ contentVariables [ $ variable ] = null ; } } return $ contentVariables ; }
Extract variables related to content from GET

@return array
Extract variables related to content from GET