protected function assignRedirect($request)
    {
        $request = strtolower($request);
        if (empty($this->handlers[$request])) {
            return $this->handlers['base'] . "?lti-request=$request";
        } else {
            return $this->handlers[$request];
        }
    }
protected function assignRedirect($request)
    {
        $request = strtolower($request);
        if (empty($this->handlers[$request])) {
            return $this->handlers['base'] . "?lti-request=$request";
        } else {
            return $this->handlers[$request];
        }
    }
protected function assignRedirect ( $ request ) { $ request = strtolower ( $ request ) ; if ( empty ( $ this -> handlers [ $ request ] ) ) { return $ this -> handlers [ 'base' ] . "?lti-request=$request" ; } else { return $ this -> handlers [ $ request ] ; } }
Choose a redirection URL for a particular request type

If an unspecified request type is made, this will return the base
request type with the GET parameter `lti-request` appended specifying
`$request`

@param  string $request
@return string
Choose a redirection URL for a particular request type