PHP Class Contao\CoreBundle\Monolog\ContaoContext

Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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 méthode

Returns a JSON representation of the object.
public __toString ( ) : string
Résultat string

getAction() public méthode

Returns the action.
public getAction ( ) : string | null
Résultat string | null

getBrowser() public méthode

Returns the browser.
public getBrowser ( ) : string | null
Résultat string | null

getFunc() public méthode

Returns the function name.
public getFunc ( ) : string
Résultat string

getIp() public méthode

Returns the IP address.
public getIp ( ) : string | null
Résultat string | null

getSource() public méthode

Returns the source.
public getSource ( ) : string | null
Résultat string | null

getUsername() public méthode

Returns the username.
public getUsername ( ) : string | null
Résultat string | null

setAction() public méthode

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

setBrowser() public méthode

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

setIp() public méthode

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

setSource() public méthode

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

setUsername() public méthode

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