public function extractCalls()
    {
        $calls = array();
        
        if ('form' == $this->callType) {
            $calls[] = new Call($this->post, 'form');
        } else {                        
            $decoded = json_decode($this->rawPost);
            $decoded = !is_array($decoded) ? array($decoded) : $decoded;
            
            array_walk_recursive($decoded, array($this, 'parseRawToArray'));

            if ($this->requestDecode)
                array_walk_recursive($decoded, array($this, 'decode'));

            foreach ($decoded as $call) {
                $calls[] = new Call((array)$call, 'single');
            }
        }
        
        return $calls;
    }
public function extractCalls()
    {
        $calls = array();
        
        if ('form' == $this->callType) {
            $calls[] = new Call($this->post, 'form');
        } else {                        
            $decoded = json_decode($this->rawPost);
            $decoded = !is_array($decoded) ? array($decoded) : $decoded;
            
            array_walk_recursive($decoded, array($this, 'parseRawToArray'));

            if ($this->requestDecode)
                array_walk_recursive($decoded, array($this, 'decode'));

            foreach ($decoded as $call) {
                $calls[] = new Call((array)$call, 'single');
            }
        }
        
        return $calls;
    }
public function extractCalls ( ) { $ calls = array ( ) ; if ( 'form' == $ this -> callType ) { $ calls [ ] = new Call ( $ this -> post , 'form' ) ; } else { $ decoded = json_decode ( $ this -> rawPost ) ; $ decoded = ! is_array ( $ decoded ) ? array ( $ decoded ) : $ decoded ; array_walk_recursive ( $ decoded , array ( $ this , 'parseRawToArray' ) ) ; if ( $ this -> requestDecode ) array_walk_recursive ( $ decoded , array ( $ this , 'decode' ) ) ; foreach ( $ decoded as $ call ) { $ calls [ ] = new Call ( ( array ) $ call , 'single' ) ; } } return $ calls ; }
Extract the ExtDirect calls from request.

@return array
Extract the ExtDirect calls from request .