PHP Class System\request

Show file Open project: anchorcms/anchor-cms

Public Methods

Method Description
ajax ( ) : boolean Checks if the current request was sent with a XMLHttpRequest header as sent by javascript
cli ( ) : boolean Checks if the current request was sent via the command line
method ( ) : string | null Get the server request method
protocol ( ) : string | null Get the server protocol

Method Details

ajax() public static method

Checks if the current request was sent with a XMLHttpRequest header as sent by javascript
public static ajax ( ) : boolean
return boolean

cli() public static method

Checks if the current request was sent via the command line
public static cli ( ) : boolean
return boolean

method() public static method

Get the server request method
public static method ( ) : string | null
return string | null

protocol() public static method

Get the server protocol
public static protocol ( ) : string | null
return string | null