application/modules/g/controllers/RestController.php
protected function _validateMethod($method) {
        if (in_array(strtoupper($method), $this->_validMethods)) {
            return true;
        }
        $exception = new Garp_Content_Api_Rest_Exception('Method not allowed');
        $exception->setHttpStatusCode(405);
        throw $exception;
    }
protected function _validateMethod($method) {
        if (in_array(strtoupper($method), $this->_validMethods)) {
            return true;
        }
        $exception = new Garp_Content_Api_Rest_Exception('Method not allowed');
        $exception->setHttpStatusCode(405);
        throw $exception;
    }
protected function _validateMethod ( $ method ) { if ( in_array ( strtoupper ( $ method ) , $ this -> _validMethods ) ) { return true ; } $ exception = new Garp_Content_Api_Rest_Exception ( 'Method not allowed' ) ; $ exception -> setHttpStatusCode ( 405 ) ; throw $ exception ; }
Wether the HTTP method is valid

@param string $method
@return bool
Wether the HTTP method is valid