PHP Класс PAGI\Application\PAGIApplication

PHP Version 5
Автор: Marcelo Gornstein ([email protected])
Показать файл Открыть проект

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

Свойство Тип Описание
$logger Logger PSR-3 logger.

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

Метод Описание
__construct ( array $properties = [] ) : void Constructor. Will call set_error_handler() and pcntl_signal() to setup your errorHandler() and signalHandler(). Also will call register_shutdown_function() to register your shutdown() function.
errorHandler ( integer $type, string $message, string $file, integer $line ) : boolean Your error handler. Be careful when implementing this one.
init ( ) : void Called to initialize the application
run ( ) : void Called to run the application, after calling init().
setLogger ( Psr\Log\LoggerInterface $logger ) : void Sets the logger implementation.
shutdown ( ) : void Called when PHPvm is shutting down.
signalHandler ( integer $signal ) : void Your signal handler. Be careful when implementing this one.

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

Метод Описание
getAgi ( ) : PAGI\Client\IClient Returns AGI Client.

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

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

Constructor. Will call set_error_handler() and pcntl_signal() to setup your errorHandler() and signalHandler(). Also will call register_shutdown_function() to register your shutdown() function.
public __construct ( array $properties = [] ) : void
$properties array Optional additional properties.
Результат void

errorHandler() абстрактный публичный Метод

Your error handler. Be careful when implementing this one.
abstract public errorHandler ( integer $type, string $message, string $file, integer $line ) : boolean
$type integer PHP Error type constant.
$message string Human readable error message string.
$file string File that triggered the error.
$line integer Line that triggered the error.
Результат boolean

getAgi() защищенный Метод

Returns AGI Client.
protected getAgi ( ) : PAGI\Client\IClient
Результат PAGI\Client\IClient

init() абстрактный публичный Метод

Called to initialize the application
abstract public init ( ) : void
Результат void

run() абстрактный публичный Метод

Called to run the application, after calling init().
abstract public run ( ) : void
Результат void

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

Sets the logger implementation.
public setLogger ( Psr\Log\LoggerInterface $logger ) : void
$logger Psr\Log\LoggerInterface The PSR3-Logger
Результат void

shutdown() абстрактный публичный Метод

Called when PHPvm is shutting down.
abstract public shutdown ( ) : void
Результат void

signalHandler() абстрактный публичный Метод

Your signal handler. Be careful when implementing this one.
abstract public signalHandler ( integer $signal ) : void
$signal integer Signal catched.
Результат void

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

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

PSR-3 logger.
protected Logger $logger
Результат Logger