Monolog\Handler\PushoverHandler
Sends notifications through the pushover api to mobile phones
- Author: Sebastian Göttschkes <sebastian.goettschkes@googlemail.com>
Synopsis
class PushoverHandler
extends SocketHandler
{
- // Inherited members from AbstractHandler
- protected $level;
- protected $bubble;
- protected FormatterInterface $formatter;
- protected array $processors;
- // methods
- public void __construct()
- protected void generateDataStream()
- private void buildContent()
- private void buildHeader()
- public void write()
- // Inherited methods from SocketHandler
- public void __construct()
- public void write()
- public void close()
- public void closeSocket()
- public void setPersistent()
- public void setConnectionTimeout()
- public void setTimeout()
- public string getConnectionString()
- public boolean isPersistent()
- public float getConnectionTimeout()
- public float getTimeout()
- public boolean isConnected()
- protected void pfsockopen()
- protected void fsockopen()
- protected void streamSetTimeout()
- protected void fwrite()
- protected void streamGetMetadata()
- protected void generateDataStream()
- // Inherited methods from AbstractProcessingHandler
- public void handle()
- protected abstract void write()
- protected array processRecord()
- // Inherited methods from AbstractHandler
- public void __construct()
- public void isHandling()
- public void handleBatch()
- public void close()
- public void pushProcessor()
- public void popProcessor()
- public void setFormatter()
- public void getFormatter()
- public void setLevel()
- public integer getLevel()
- public void setBubble()
- public Boolean getBubble()
- public void __destruct()
- protected FormatterInterface getDefaultFormatter()
Hierarchy
Extends
Members
private
- $title
- $token
- $user
protected
- $bubble
- $formatter — Monolog\Formatter\FormatterInterface
- $level
- $processors
Methods
private
protected
public
Inherited from Monolog\Handler\SocketHandler
protected
- fsockopen() — Wrapper to allow mocking
- fwrite() — Wrapper to allow mocking
- generateDataStream()
- pfsockopen() — Wrapper to allow mocking
- streamGetMetadata() — Wrapper to allow mocking
- streamSetTimeout() — Wrapper to allow mocking
public
- close() — We will not close a PersistentSocket instance so it can be reused in other requests.
- closeSocket() — Close socket, if open
- getConnectionString() — Get current connection string
- getConnectionTimeout() — Get current connection timeout setting
- getTimeout() — Get current in-transfer timeout
- isConnected() — Check to see if the socket is currently available.
- isPersistent() — Get persistent setting
- setConnectionTimeout() — Set connection timeout. Only has effect before we connect.
- setPersistent() — Set socket connection to nbe persistent. It only has effect before the connection is initiated.
- setTimeout() — Set write timeout. Only has effect before we connect.
- write() — Connect (if necessary) and write to the socket
Inherited from Monolog\Handler\AbstractProcessingHandler
protected
- processRecord() — Processes a record.
- write() — Writes the record down to the log of the implementing handler
public
- handle() — {@inheritdoc}
Inherited from Monolog\Handler\AbstractHandler
protected
- getDefaultFormatter() — Gets the default formatter.
public
- close() — Closes the handler.
- getBubble() — Gets the bubbling behavior.
- getFormatter() — {@inheritdoc}
- getLevel() — Gets minimum logging level at which this handler will be triggered.
- handleBatch() — {@inheritdoc}
- isHandling() — {@inheritdoc}
- popProcessor() — {@inheritdoc}
- pushProcessor() — {@inheritdoc}
- setBubble() — Sets the bubbling behavior.
- setFormatter() — {@inheritdoc}
- setLevel() — Sets minimum logging level at which this handler will be triggered.