PHP 클래스 PAGI\Application\PAGIApplication

PHP Version 5
저자: Marcelo Gornstein ([email protected])
파일 보기 프로젝트 열기: marcelog/pagi

보호된 프로퍼티들

프로퍼티 타입 설명
$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