PHP 클래스 Swiftriver\Core\Workflows\EventHandlers\EventHandlersBase

저자: mg[at]swiftly[dot]org
상속: extends Swiftriver\Core\Workflows\WorkflowBase
파일 보기 프로젝트 열기: ushahidi/Swiftriver-2011

공개 메소드들

메소드 설명
ParseHandlersToJson ( Swiftriver\Core\EventDistribution\IEventHandler[] $handlers ) Parses a collection of IEventHandlers into well formed JSON
ParseJsonToEventHandlerConfiguration ( string $json ) : AssociativeArray Given a json string this function will attemp to extract the associative array of configuration options or throw an InvalidArgumentException
ParseJsonToEventHandlerName ( string $json ) : string Given a string of JSON this function parses it and returns the name property or throws an InvalidArgumentException

메소드 상세

ParseHandlersToJson() 공개 메소드

Parses a collection of IEventHandlers into well formed JSON
public ParseHandlersToJson ( Swiftriver\Core\EventDistribution\IEventHandler[] $handlers )
$handlers Swiftriver\Core\EventDistribution\IEventHandler[]

ParseJsonToEventHandlerConfiguration() 공개 메소드

Given a json string this function will attemp to extract the associative array of configuration options or throw an InvalidArgumentException
public ParseJsonToEventHandlerConfiguration ( string $json ) : AssociativeArray
$json string
리턴 AssociativeArray

ParseJsonToEventHandlerName() 공개 메소드

Given a string of JSON this function parses it and returns the name property or throws an InvalidArgumentException
public ParseJsonToEventHandlerName ( string $json ) : string
$json string
리턴 string