PHP Class Contao\CoreBundle\Monolog\ContaoContext

Show file Open project: contao/core-bundle Class Usage Examples

Public Methods

Method Description
__construct ( string $func, string | null $action = null, string | null $username = null, string | null $ip = null, string | null $browser = null, string | null $source = null ) Constructor.
__toString ( ) : string Returns a JSON representation of the object.
getAction ( ) : string | null Returns the action.
getBrowser ( ) : string | null Returns the browser.
getFunc ( ) : string Returns the function name.
getIp ( ) : string | null Returns the IP address.
getSource ( ) : string | null Returns the source.
getUsername ( ) : string | null Returns the username.
setAction ( string $action ) Sets the action.
setBrowser ( string $browser ) Sets the browser.
setIp ( string | null $ip ) Sets the IP address.
setSource ( string $source ) Sets the source.
setUsername ( string $username ) Sets the username.

Method Details

__construct() public method

Constructor.
public __construct ( string $func, string | null $action = null, string | null $username = null, string | null $ip = null, string | null $browser = null, string | null $source = null )
$func string
$action string | null
$username string | null
$ip string | null
$browser string | null
$source string | null

__toString() public method

Returns a JSON representation of the object.
public __toString ( ) : string
return string

getAction() public method

Returns the action.
public getAction ( ) : string | null
return string | null

getBrowser() public method

Returns the browser.
public getBrowser ( ) : string | null
return string | null

getFunc() public method

Returns the function name.
public getFunc ( ) : string
return string

getIp() public method

Returns the IP address.
public getIp ( ) : string | null
return string | null

getSource() public method

Returns the source.
public getSource ( ) : string | null
return string | null

getUsername() public method

Returns the username.
public getUsername ( ) : string | null
return string | null

setAction() public method

Sets the action.
public setAction ( string $action )
$action string

setBrowser() public method

Sets the browser.
public setBrowser ( string $browser )
$browser string

setIp() public method

Sets the IP address.
public setIp ( string | null $ip )
$ip string | null

setSource() public method

Sets the source.
public setSource ( string $source )
$source string

setUsername() public method

Sets the username.
public setUsername ( string $username )
$username string