PHP Класс Airbrake\Configuration

Loads via the inherited Record class methods.
Автор: Drew Butler ([email protected])
Наследование: extends airbrake\Record
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$dataStore array
$parameterFilters array

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

Метод Описание
__construct ( string $apiKey, array | stdClass $data = [] ) Load the given data array to the record.
addFilter ( string | Airbrake\Filter\FilterInterface $keyName ) : self Adds an entry to a black list of GET/POST parameter key names which should not be sent to the Airbrake server. This should be used to prevent sensitive information, such as passwords or credit card details from leaving your application server via error logging.
addFilters ( array $keyNames ) : Configuration Adds an array of entries to a black list of GET/POST parameter key names which should not be sent to the Airbrake server. This should be used to prevent sensitive information, such as passwords or credit card details from leaving your application server via error logging.
clearFilters ( ) : Configuration Clears the GET/POST request key name black list.
getParameters ( ) : array Get the combined server parameters. Note that these parameters will be filtered according to a black list of key names to ignore. If you wish to get the unfiltered results you should use the getUnfilteredParameters method instead.
getUnfilteredParameters ( ) : array Get the combined server parameters without applying the registered filters
verify ( ) Verify that the configuration is complete.

Защищенные методы

Метод Описание
initialize ( ) Initialize the data source.

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

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

Load the given data array to the record.
public __construct ( string $apiKey, array | stdClass $data = [] )
$apiKey string
$data array | stdClass

addFilter() публичный метод

Nested keys are treated like html form names - e.g. the key name my_form[id] would stop the value inside $_POST['my_form']['id'] from being sent.
public addFilter ( string | Airbrake\Filter\FilterInterface $keyName ) : self
$keyName string | Airbrake\Filter\FilterInterface
Результат self

addFilters() публичный метод

Nested keys are treated like html form names - e.g. the key name my_form[id] would stop the value inside $_POST['my_form']['id'] from being sent.
public addFilters ( array $keyNames ) : Configuration
$keyNames array
Результат Configuration

clearFilters() публичный метод

Clears the GET/POST request key name black list.
public clearFilters ( ) : Configuration
Результат Configuration

getParameters() публичный метод

Get the combined server parameters. Note that these parameters will be filtered according to a black list of key names to ignore. If you wish to get the unfiltered results you should use the getUnfilteredParameters method instead.
public getParameters ( ) : array
Результат array

getUnfilteredParameters() публичный метод

Get the combined server parameters without applying the registered filters
public getUnfilteredParameters ( ) : array
Результат array

initialize() защищенный метод

Initialize the data source.
protected initialize ( )

verify() публичный метод

Verify that the configuration is complete.
public verify ( )

Описание свойств

$dataStore защищенное свойство

protected array $dataStore
Результат array

$parameterFilters защищенное свойство

protected array $parameterFilters
Результат array