PHP Класс System\request

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

ajax() публичный статический Метод

Checks if the current request was sent with a XMLHttpRequest header as sent by javascript
public static ajax ( ) : boolean
Результат boolean

cli() публичный статический Метод

Checks if the current request was sent via the command line
public static cli ( ) : boolean
Результат boolean

method() публичный статический Метод

Get the server request method
public static method ( ) : string | null
Результат string | null

protocol() публичный статический Метод

Get the server protocol
public static protocol ( ) : string | null
Результат string | null