Leaf PHP

Misc
in package

Table of Contents

Methods

canSendHeaders()  : bool
Can we at this point in time send HTTP headers?
isAjaxRequest()  : mixed
isCommandLine()  : bool
Check, if possible, that this execution was triggered by a command line.
isLevelFatal()  : bool
Determine if an error level is fatal (halts execution)
translateErrorCode()  : string
Translate ErrorException code into the represented constant.

Methods

canSendHeaders()

Can we at this point in time send HTTP headers?

public static canSendHeaders() : bool

Currently this checks if we are even serving an HTTP request, as opposed to running from a command line.

If we are serving an HTTP request, we check if it's not too late.

Return values
bool

isAjaxRequest()

public static isAjaxRequest() : mixed

isCommandLine()

Check, if possible, that this execution was triggered by a command line.

public static isCommandLine() : bool
Return values
bool

isLevelFatal()

Determine if an error level is fatal (halts execution)

public static isLevelFatal(int $level) : bool
Parameters
$level : int
Return values
bool

translateErrorCode()

Translate ErrorException code into the represented constant.

public static translateErrorCode(int $error_code) : string
Parameters
$error_code : int
Return values
string

        
On this page

Search results