protected function verbToOperation($verb)
    {
        switch (strtoupper($verb)) {
            case Doozr_Http::REQUEST_METHOD_POST:
                $operation = 'create';
                break;

            case Doozr_Http::REQUEST_METHOD_GET:
                $operation = 'read';
                break;

            case Doozr_Http::REQUEST_METHOD_PUT:
                $operation = 'update';
                break;

            case Doozr_Http::REQUEST_METHOD_DELETE:
                $operation = 'delete';
                break;

            case Doozr_Http::REQUEST_METHOD_OPTIONS:
                $operation = 'options';
                break;

            case Doozr_Http::REQUEST_METHOD_HEAD:
                $operation = 'meta';
                break;

            default:
                $operation = 'read';
                break;
        }

        return $operation;
    }
protected function verbToOperation($verb)
    {
        switch (strtoupper($verb)) {
            case Doozr_Http::REQUEST_METHOD_POST:
                $operation = 'create';
                break;

            case Doozr_Http::REQUEST_METHOD_GET:
                $operation = 'read';
                break;

            case Doozr_Http::REQUEST_METHOD_PUT:
                $operation = 'update';
                break;

            case Doozr_Http::REQUEST_METHOD_DELETE:
                $operation = 'delete';
                break;

            case Doozr_Http::REQUEST_METHOD_OPTIONS:
                $operation = 'options';
                break;

            case Doozr_Http::REQUEST_METHOD_HEAD:
                $operation = 'meta';
                break;

            default:
                $operation = 'read';
                break;
        }

        return $operation;
    }
protected function verbToOperation ( $ verb ) { switch ( strtoupper ( $ verb ) ) { case Doozr_Http :: REQUEST_METHOD_POST : $ operation = 'create' ; break ; case Doozr_Http :: REQUEST_METHOD_GET : $ operation = 'read' ; break ; case Doozr_Http :: REQUEST_METHOD_PUT : $ operation = 'update' ; break ; case Doozr_Http :: REQUEST_METHOD_DELETE : $ operation = 'delete' ; break ; case Doozr_Http :: REQUEST_METHOD_OPTIONS : $ operation = 'options' ; break ; case Doozr_Http :: REQUEST_METHOD_HEAD : $ operation = 'meta' ; break ; default : $ operation = 'read' ; break ; } return $ operation ; }
Returns the operation for passed in HTTP-verb.

@param string $verb The HTTP-verb to return operation for

@author Benjamin Carl <opensource@clickalicious.de>
@return string The operation for passed in verb
@access protected
Returns the operation for passed in HTTP - verb .