protected function processInput($global)
    {
        // check if arguments is of type string
        if (is_array($global)) {
            // we retrieved the array to parse
            $this->input = $global;

        } else {
            // store the array we working on as string
            $this->target = $global;

            // *** IMPORTANT ***
            // we need to reference the global array's like $_GET and $_POST like
            // you see in the following lines (we can reference $_GET in the normal way, but trying to get
            // $_GET referenced at runtime with $$ fails)
            $this->input = $GLOBALS[$global];
        }

        $this->arguments = $this->transformToObject($this->input);
    }
protected function processInput($global)
    {
        // check if arguments is of type string
        if (is_array($global)) {
            // we retrieved the array to parse
            $this->input = $global;

        } else {
            // store the array we working on as string
            $this->target = $global;

            // *** IMPORTANT ***
            // we need to reference the global array's like $_GET and $_POST like
            // you see in the following lines (we can reference $_GET in the normal way, but trying to get
            // $_GET referenced at runtime with $$ fails)
            $this->input = $GLOBALS[$global];
        }

        $this->arguments = $this->transformToObject($this->input);
    }
protected function processInput ( $ global ) { // check if arguments is of type string if ( is_array ( $ global ) ) { // we retrieved the array to parse $ this -> input = $ global ; } else { // store the array we working on as string $ this -> target = $ global ; // *** IMPORTANT *** // we need to reference the global array's like $_GET and $_POST like // you see in the following lines (we can reference $_GET in the normal way, but trying to get // $_GET referenced at runtime with $$ fails) $ this -> input = $ GLOBALS [ $ global ] ; } $ this -> arguments = $ this -> transformToObject ( $ this -> input ) ; }
transforms input to object

This method is intend to transform the input to an object.

@param mixed $global The input (string or array) to transform to object

@author Benjamin Carl <opensource@clickalicious.de>
@return void
@access protected
transforms input to object