ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Sends notifications through the pushover api to mobile phones. More...
Public Member Functions | ||||
__construct ($token, $users, $title=null, $level=Logger::CRITICAL, $bubble=true, $useSSL=true, $highPriorityLevel=Logger::CRITICAL, $emergencyLevel=Logger::EMERGENCY, $retry=30, $expire=25200) | ||||
setHighPriorityLevel ($value) | ||||
setEmergencyLevel ($value) | ||||
useFormattedMessage ($value) | ||||
Use the formatted message? More... | ||||
Public Member Functions inherited from Monolog\Handler\SocketHandler | ||||
__construct ($connectionString, $level=Logger::DEBUG, $bubble=true) | ||||
close () | ||||
We will not close a PersistentSocket instance so it can be reused in other requests. More... | ||||
closeSocket () | ||||
Close socket, if open. More... | ||||
setPersistent ($persistent) | ||||
Set socket connection to nbe persistent. More... | ||||
setConnectionTimeout ($seconds) | ||||
Set connection timeout. More... | ||||
setTimeout ($seconds) | ||||
Set write timeout. More... | ||||
setWritingTimeout ($seconds) | ||||
Set writing timeout. More... | ||||
getConnectionString () | ||||
Get current connection string. More... | ||||
isPersistent () | ||||
Get persistent setting. More... | ||||
getConnectionTimeout () | ||||
Get current connection timeout setting. More... | ||||
getTimeout () | ||||
Get current in-transfer timeout. More... | ||||
getWritingTimeout () | ||||
Get current local writing timeout. More... | ||||
isConnected () | ||||
Check to see if the socket is currently available. More... | ||||
Public Member Functions inherited from Monolog\Handler\AbstractProcessingHandler | ||||
handle (array $record) | ||||
{Handles a record.All records may be passed to this method, and the handler should discard those that it does not want to handle.The return value of this function controls the bubbling process of the handler stack. Unless the bubbling is interrupted (by returning true), the Logger class will keep on calling further handlers in the stack with a given log record.
| ||||
Public Member Functions inherited from Monolog\Handler\AbstractHandler | ||||
__construct ($level=Logger::DEBUG, $bubble=true) | ||||
isHandling (array $record) | ||||
{Checks whether the given record will be handled by this handler.This is mostly done for performance reasons, to avoid calling processors for nothing.Handlers should still check the record levels within handle(), returning false in isHandling() is no guarantee that handle() will not be called, and isHandling() might not be called for a given record.
| ||||
handleBatch (array $records) | ||||
{Handles a set of records at once.
| ||||
close () | ||||
Closes the handler. More... | ||||
pushProcessor ($callback) | ||||
{Adds a processor in the stack.
| ||||
popProcessor () | ||||
{Removes the processor on top of the stack and returns it.
| ||||
setFormatter (FormatterInterface $formatter) | ||||
{Sets the formatter.
| ||||
getFormatter () | ||||
{Gets the formatter.
| ||||
setLevel ($level) | ||||
Sets minimum logging level at which this handler will be triggered. More... | ||||
getLevel () | ||||
Gets minimum logging level at which this handler will be triggered. More... | ||||
setBubble ($bubble) | ||||
Sets the bubbling behavior. More... | ||||
getBubble () | ||||
Gets the bubbling behavior. More... | ||||
__destruct () | ||||
Protected Member Functions | |
generateDataStream ($record) | |
write (array $record) | |
Protected Member Functions inherited from Monolog\Handler\SocketHandler | |
write (array $record) | |
Connect (if necessary) and write to the socket. More... | |
pfsockopen () | |
Wrapper to allow mocking. More... | |
fsockopen () | |
Wrapper to allow mocking. More... | |
streamSetTimeout () | |
Wrapper to allow mocking. More... | |
fwrite ($data) | |
Wrapper to allow mocking. More... | |
streamGetMetadata () | |
Wrapper to allow mocking. More... | |
generateDataStream ($record) | |
getResource () | |
Protected Member Functions inherited from Monolog\Handler\AbstractProcessingHandler | |
write (array $record) | |
Writes the record down to the log of the implementing handler. More... | |
processRecord (array $record) | |
Processes a record. More... | |
Protected Member Functions inherited from Monolog\Handler\AbstractHandler | |
getDefaultFormatter () | |
Gets the default formatter. More... | |
Private Member Functions | |
buildContent ($record) | |
buildHeader ($content) | |
Private Attributes | |
$token | |
$users | |
$title | |
$user | |
$retry | |
$expire | |
$highPriorityLevel | |
$emergencyLevel | |
$useFormattedMessage = false | |
$parameterNames | |
$sounds | |
Additional Inherited Members | |
Protected Attributes inherited from Monolog\Handler\AbstractHandler | |
$level = Logger::DEBUG | |
$bubble = true | |
$formatter | |
$processors = array() | |
Sends notifications through the pushover api to mobile phones.
Definition at line 22 of file PushoverHandler.php.
Monolog\Handler\PushoverHandler::__construct | ( | $token, | |
$users, | |||
$title = null , |
|||
$level = Logger::CRITICAL , |
|||
$bubble = true , |
|||
$useSSL = true , |
|||
$highPriorityLevel = Logger::CRITICAL , |
|||
$emergencyLevel = Logger::EMERGENCY , |
|||
$retry = 30 , |
|||
$expire = 25200 |
|||
) |
string | $token | Pushover api token |
string | array | $users | Pushover user id or array of ids the message will be sent to |
string | $title | Title sent to the Pushover API |
int | $level | The minimum logging level at which this handler will be triggered |
Boolean | $bubble | Whether the messages that are handled can bubble up the stack or not |
Boolean | $useSSL | Whether to connect via SSL. Required when pushing messages to users that are not the pushover.net app owner. OpenSSL is required for this option. |
int | $highPriorityLevel | The minimum logging level at which this handler will start sending "high priority" requests to the Pushover API |
int | $emergencyLevel | The minimum logging level at which this handler will start sending "emergency" requests to the Pushover API |
int | $retry | The retry parameter specifies how often (in seconds) the Pushover servers will send the same notification to the user. |
int | $expire | The expire parameter specifies how many seconds your notification will continue to be retried for (every retry seconds). |
Definition at line 82 of file PushoverHandler.php.
References Monolog\Handler\AbstractHandler\$bubble, Monolog\Handler\SocketHandler\$connectionString, Monolog\Handler\PushoverHandler\$emergencyLevel, Monolog\Handler\PushoverHandler\$expire, Monolog\Handler\PushoverHandler\$highPriorityLevel, Monolog\Handler\AbstractHandler\$level, Monolog\Handler\PushoverHandler\$retry, Monolog\Handler\PushoverHandler\$title, Monolog\Handler\PushoverHandler\$token, Monolog\Handler\PushoverHandler\$users, array, and Monolog\Logger\toMonologLevel().
|
private |
Definition at line 103 of file PushoverHandler.php.
References $dataArray, Monolog\Handler\PushoverHandler\$expire, Monolog\Handler\PushoverHandler\$retry, $timestamp, Monolog\Handler\PushoverHandler\$useFormattedMessage, array, and user().
Referenced by Monolog\Handler\PushoverHandler\generateDataStream().
|
private |
Definition at line 144 of file PushoverHandler.php.
References $header.
Referenced by Monolog\Handler\PushoverHandler\generateDataStream().
|
protected |
Definition at line 96 of file PushoverHandler.php.
References Monolog\Handler\PushoverHandler\buildContent(), and Monolog\Handler\PushoverHandler\buildHeader().
Monolog\Handler\PushoverHandler::setEmergencyLevel | ( | $value | ) |
Definition at line 172 of file PushoverHandler.php.
Monolog\Handler\PushoverHandler::setHighPriorityLevel | ( | $value | ) |
Definition at line 167 of file PushoverHandler.php.
Monolog\Handler\PushoverHandler::useFormattedMessage | ( | $value | ) |
Use the formatted message?
bool | $value |
Definition at line 181 of file PushoverHandler.php.
|
protected |
Definition at line 155 of file PushoverHandler.php.
References Monolog\Handler\PushoverHandler\$user, Monolog\Handler\SocketHandler\closeSocket(), and user().
|
private |
Definition at line 32 of file PushoverHandler.php.
Referenced by Monolog\Handler\PushoverHandler\__construct().
|
private |
Definition at line 29 of file PushoverHandler.php.
Referenced by Monolog\Handler\PushoverHandler\__construct(), and Monolog\Handler\PushoverHandler\buildContent().
|
private |
Definition at line 31 of file PushoverHandler.php.
Referenced by Monolog\Handler\PushoverHandler\__construct().
|
private |
Definition at line 40 of file PushoverHandler.php.
|
private |
Definition at line 28 of file PushoverHandler.php.
Referenced by Monolog\Handler\PushoverHandler\__construct(), and Monolog\Handler\PushoverHandler\buildContent().
|
private |
Definition at line 61 of file PushoverHandler.php.
|
private |
Definition at line 26 of file PushoverHandler.php.
Referenced by Monolog\Handler\PushoverHandler\__construct().
|
private |
Definition at line 24 of file PushoverHandler.php.
Referenced by Monolog\Handler\PushoverHandler\__construct().
|
private |
Definition at line 33 of file PushoverHandler.php.
Referenced by Monolog\Handler\PushoverHandler\buildContent().
|
private |
Definition at line 27 of file PushoverHandler.php.
Referenced by Monolog\Handler\PushoverHandler\write().
|
private |
Definition at line 25 of file PushoverHandler.php.
Referenced by Monolog\Handler\PushoverHandler\__construct().