PHP 클래스 Neos\Flow\ResourceManagement\Publishing\MessageCollector

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$messages SplObjectStorage
$systemLogger Neos\Flow\Log\SystemLoggerInterface

공개 메소드들

메소드 설명
__construct ( ) Message Collector Constructor
__destruct ( ) : void Flush all notification during the object lifecycle
append ( string $message, string $severity = Error::SEVERITY_ERROR, integer $code = null ) : void
flush ( callable $callback = null ) : void
hasMessages ( ) : boolean

메소드 상세

__construct() 공개 메소드

Message Collector Constructor
public __construct ( )

__destruct() 공개 메소드

Flush all notification during the object lifecycle
public __destruct ( ) : void
리턴 void

append() 공개 메소드

public append ( string $message, string $severity = Error::SEVERITY_ERROR, integer $code = null ) : void
$message string The message to log
$severity string An integer value, one of the Error::SEVERITY_* constants
$code integer A unique error code
리턴 void

flush() 공개 메소드

public flush ( callable $callback = null ) : void
$callback callable a callback function to process every notification
리턴 void

hasMessages() 공개 메소드

public hasMessages ( ) : boolean
리턴 boolean

프로퍼티 상세

$messages 보호되어 있는 프로퍼티

protected SplObjectStorage $messages
리턴 SplObjectStorage

$systemLogger 보호되어 있는 프로퍼티

protected SystemLoggerInterface,Neos\Flow\Log $systemLogger
리턴 Neos\Flow\Log\SystemLoggerInterface