protected function fetchOperation()
	{
        $operation = $this->getRouteParam('operation');
        
        if ($operation !== null) {
            $operation = $this->parseCanonicalName($operation);
            
            if (preg_match($this->operationPattern, $operation)) {
                return $operation;
            } else {
                return false;
            }
        } else {
            $operation = $this->getRequest()->getHeader(self::HEADER_OPERATION);
            
            if (!$operation) {
                $operation = 'http-'.$this->getRequest()->getMethod();
            } else {
                $operation = $operation->getFieldValue();
            }
            
            return $this->parseCanonicalName($operation);
        }
	}
protected function fetchOperation()
	{
        $operation = $this->getRouteParam('operation');
        
        if ($operation !== null) {
            $operation = $this->parseCanonicalName($operation);
            
            if (preg_match($this->operationPattern, $operation)) {
                return $operation;
            } else {
                return false;
            }
        } else {
            $operation = $this->getRequest()->getHeader(self::HEADER_OPERATION);
            
            if (!$operation) {
                $operation = 'http-'.$this->getRequest()->getMethod();
            } else {
                $operation = $operation->getFieldValue();
            }
            
            return $this->parseCanonicalName($operation);
        }
	}
protected function fetchOperation ( ) { $ operation = $ this -> getRouteParam ( 'operation' ) ; if ( $ operation !== null ) { $ operation = $ this -> parseCanonicalName ( $ operation ) ; if ( preg_match ( $ this -> operationPattern , $ operation ) ) { return $ operation ; } else { return false ; } } else { $ operation = $ this -> getRequest ( ) -> getHeader ( self :: HEADER_OPERATION ) ; if ( ! $ operation ) { $ operation = 'http-' . $ this -> getRequest ( ) -> getMethod ( ) ; } else { $ operation = $ operation -> getFieldValue ( ) ; } return $ this -> parseCanonicalName ( $ operation ) ; } }
Parse operation name from request

@return string|boolean
Parse operation name from request