PHP Класс Contao\CoreBundle\Monolog\ContaoContext

Показать файл Открыть проект Примеры использования класса

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

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

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

__construct() публичный Метод

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() публичный Метод

Returns a JSON representation of the object.
public __toString ( ) : string
Результат string

getAction() публичный Метод

Returns the action.
public getAction ( ) : string | null
Результат string | null

getBrowser() публичный Метод

Returns the browser.
public getBrowser ( ) : string | null
Результат string | null

getFunc() публичный Метод

Returns the function name.
public getFunc ( ) : string
Результат string

getIp() публичный Метод

Returns the IP address.
public getIp ( ) : string | null
Результат string | null

getSource() публичный Метод

Returns the source.
public getSource ( ) : string | null
Результат string | null

getUsername() публичный Метод

Returns the username.
public getUsername ( ) : string | null
Результат string | null

setAction() публичный Метод

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

setBrowser() публичный Метод

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

setIp() публичный Метод

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

setSource() публичный Метод

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

setUsername() публичный Метод

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