public function sendRawRequest($model, $url, $method = 'GET', $data = null)
    {
        if ($model->debug) {
            echo '<font color="blue">'.
                htmlspecialchars("$method $url (".json_encode($data).')').
                '</font>';
        }
        $method = strtolower($method);

        $pest = $model->_table[$this->short_name];
        if ($data) {
            return $pest->$method($url, $data);
        } else {
            return $pest->$method($url);
        }
    }
public function sendRawRequest($model, $url, $method = 'GET', $data = null)
    {
        if ($model->debug) {
            echo '<font color="blue">'.
                htmlspecialchars("$method $url (".json_encode($data).')').
                '</font>';
        }
        $method = strtolower($method);

        $pest = $model->_table[$this->short_name];
        if ($data) {
            return $pest->$method($url, $data);
        } else {
            return $pest->$method($url);
        }
    }
public function sendRawRequest ( $ model , $ url , $ method = 'GET' , $ data = null ) { if ( $ model -> debug ) { echo '<font color="blue">' . htmlspecialchars ( "$method $url (" . json_encode ( $ data ) . ')' ) . '</font>' ; } $ method = strtolower ( $ method ) ; $ pest = $ model -> _table [ $ this -> short_name ] ; if ( $ data ) { return $ pest -> $ method ( $ url , $ data ) ; } else { return $ pest -> $ method ( $ url ) ; } }
Sends request to specified URL with specified method and data.
Sends request to specified URL with specified method and data .