Skip to content

Latest commit

 

History

History
265 lines (87 loc) · 2.06 KB

IncomingRequest.md

File metadata and controls

265 lines (87 loc) · 2.06 KB
title footer
\leantime\core\IncomingRequest
false

IncomingRequest

Incoming Request information

  • Full name: \leantime\core\IncomingRequest

Methods

__construct

public IncomingRequest::__construct(): mixed

Return Value:


getBaseURL

Gets the base fqdn including protocol Note: HTTP_HOST will return port number as well

public IncomingRequest::getBaseURL(): string

Return Value:


getFullURL

Gets the full URL including request uri and protocol

public IncomingRequest::getFullURL(): string

Return Value:


getRequestURI

Gets the request URI (path behind domain name) Will adjust for subfolder installations

public IncomingRequest::getRequestURI(string $baseURL = ""): string

Parameters:

Parameter Type Description
baseURL string Base Url in case of subfolder installations

Return Value:


getRequestMethod

public static IncomingRequest::getRequestMethod(): mixed
  • This method is static.

Return Value:


getRequestParams

public static IncomingRequest::getRequestParams(mixed $method): mixed
  • This method is static.

Parameters:

Parameter Type Description
method mixed

Return Value:


getAuthorizationHeader

Get hearder Authorization

public IncomingRequest::getAuthorizationHeader(): mixed

Return Value:


getAPIKey

public IncomingRequest::getAPIKey(): mixed

Return Value:


hasAPIKey

public IncomingRequest::hasAPIKey(): mixed

Return Value:


getBearerToken

get access token from header

public IncomingRequest::getBearerToken(): mixed

Return Value:



Automatically generated from source code comments on 2023-02-28 using phpDocumentor