|
dmBridge PHP API
|
Encapsulates an HTTP request. More...
Inheritance diagram for DMHTTPRequest:Encapsulates an HTTP request.
The incoming request is accessible via getCurrent(). Outgoing requests can be created manually and sent using DMHTTPClient.
Definition at line 17 of file DMHTTPRequest.php.
| DMHTTPRequest::__construct | ( | DMURI $ | uri = null, |
| $ | method = DMHTTPMethod::GET |
||
| ) |
| DMURI | uri |
| int | method One of the DMHTTPMethod constants |
Definition at line 154 of file DMHTTPRequest.php.
| static DMHTTPRequest::getCurrent | ( | ) | [static] |
Definition at line 38 of file DMHTTPRequest.php.
Referenced by DMJSONPRepresentationTransformerV1::__construct(), DMXMLRepresentationTransformer::addSchema(), DMCdmAuthenticationService::authenticate(), DMAPIObjectController::comments(), DMAPIObjectController::compoundSearch(), DMObjectCommentForm::doAction(), DMObject::getCdmURI(), DMGenericTemplateHelper::getFeedURL(), DMObject::getFileURL(), DMObjectTemplateHelper::getHtmlCommentsSection(), DMObjectTemplateHelper::getHtmlCompoundObjectSearchForm(), DMSearchTemplateHelper::getHtmlDateSearch(), DMResultsTemplateHelper::getHtmlFacetsAsUL(), DMSearchTemplateHelper::getHtmlFieldSearch(), DMGenericTemplateHelper::getHtmlFormattedFlash(), UNLVSpatialTemplateHelper::getHtmlGoogleMapsSpatialSearch(), DMObjectTemplateHelper::getHtmlHighlightedFullText(), DMGenericTemplateHelper::getHtmlLoginPageLink(), DMControlPanelTemplateHelper::getHtmlMainMenu(), DMResultsTemplateHelper::getHtmlPageLinks(), DMSearchTemplateHelper::getHtmlProximitySearch(), DMObjectTemplateHelper::getHtmlRatingsSection(), DMResultsTemplateHelper::getHtmlResults(), DMObjectResultsTemplateHelper::getHtmlResults(), DMObjectTemplateHelper::getHtmlResultsAsUL(), DMResultsTemplateHelper::getHtmlSortLinksAsUL(), DMObjectTemplateHelper::getHtmlTaggingSection(), DMResultsTemplateHelper::getHtmlViewLinks(), DMAbstractController::getHTTPRequest(), DMObject::getImageURL(), DMURI::getLocalURIWithPath(), DMObject::getReferenceURL(), DMHTTPResponseFactory::getRepresentation(), DMObject::getThumbnailURL(), DMHTTPResponseFactory::getTransformer(), DMObject::getURI(), DMInternalURI::getURIWithParams(), DMAPIObjectController::highestRated(), UNLVSpatialController::index(), DMAPITagController::index(), DMAPIObjectController::index(), DMAPICommentController::index(), DMObject::isFavorite(), DMAbstractAuthenticationService::logout(), redirectToParams(), DMAPIVocabularyController::suggest(), DMXMLRepresentationTransformerV1::transformObject(), DMJSONRepresentationTransformerV1::transformObject(), and UNLVSpatialXMLRepresentationV1::transformSpatialResults().
| DMHTTPRequest::getMethod | ( | ) |
Definition at line 168 of file DMHTTPRequest.php.
| DMHTTPRequest::getPassword | ( | ) |
Definition at line 182 of file DMHTTPRequest.php.
| DMHTTPRequest::getRedirectedURI | ( | ) |
Definition at line 198 of file DMHTTPRequest.php.
| DMHTTPRequest::getSession | ( | ) |
Definition at line 214 of file DMHTTPRequest.php.
| DMHTTPRequest::getURI | ( | ) |
Definition at line 230 of file DMHTTPRequest.php.
Referenced by reload().
| DMHTTPRequest::getUsername | ( | ) |
Definition at line 245 of file DMHTTPRequest.php.
| static DMHTTPRequest::redirectToParams | ( | $ | params, |
| array $ | query = array() |
||
| ) | [static] |
Redirects to a given set of URI params.
Must be called before the HTTP header has been output.
| string | params |
| array | query Optional array of key => value query string pairs |
Definition at line 95 of file DMHTTPRequest.php.
Referenced by DMCPAdminController::authorize(), DMTEObjectController::compoundSearch(), DMAbstractController::handleForm(), DMCPAdminController::login(), DMTEUserController::logout(), and DMCPAdminController::logout().
| static DMHTTPRequest::redirectToURI | ( | DMURI $ | uri | ) | [static] |
Redirects to a given URI via a HTTP 302 redirect header.
Must be called before the HTTP header has been output.
| DMURI | uri |
Definition at line 116 of file DMHTTPRequest.php.
Referenced by redirectToParams(), and reload().
| static DMHTTPRequest::reload | ( | ) | [static] |
"Redirects" to the current URI via a HTTP 302 redirect header.
Must be called before the HTTP header has been output.
Definition at line 124 of file DMHTTPRequest.php.
Referenced by DMAbstractController::handleForm().
| DMHTTPRequest::setMethod | ( | $ | method | ) |
| int | method One of the DMHTTPMethod constants |
Definition at line 175 of file DMHTTPRequest.php.
Referenced by __construct().
| DMHTTPRequest::setPassword | ( | $ | password | ) |
| string | password The password to supply for HTTP authentication. |
Definition at line 189 of file DMHTTPRequest.php.
| DMHTTPRequest::setRedirectedURI | ( | DMURI $ | uri | ) |
| DMURI | uri The URI to which the request was ultimately redirected. |
Definition at line 206 of file DMHTTPRequest.php.
| DMHTTPRequest::setSession | ( | DMSession $ | session | ) |
| DMSession | session The session associated with the request. This applies only to incoming requests. |
Definition at line 222 of file DMHTTPRequest.php.
| DMHTTPRequest::setURI | ( | DMURI $ | uri | ) |
| DMURI | uri |
Definition at line 238 of file DMHTTPRequest.php.
Referenced by __construct(), and DMBridgeVersion::getCurrentDmBridgeVersionSequence().
| DMHTTPRequest::setUsername | ( | $ | username | ) |
| string | username |
Definition at line 252 of file DMHTTPRequest.php.