_()
__construct()
debug()
dispatch()
getConfiguration()
getEventDispatcher()
getTranslator()
log()
logParserError()
configure()
connectHooksToDispatcher()
$configuration
$event_dispatcher
$plugin
$translate
Base class for plugin event listeners.
| category | phpDocumentor |
|---|---|
| package | Plugin |
| author | Mike van Riel |
| license | MIT |
| link | http://phpdoc.org |
_(string $message, array $variables) : string
Translation messages may contain any formatting as used by the php vsprintf function.
| inherited_from | \phpDocumentor_Plugin_Abstract::_() |
|---|
stringID or message to translate.
arrayVariables to use for substitution.
string__construct(\phpDocumentor_Plugin_Abstract $plugin)
debug(string $message) : void
| inherited_from | \phpDocumentor_Plugin_Abstract::debug() |
|---|
stringThe message to log.
dispatch(string $name, \string[] $arguments) : mixed | null
This method tries to dispatch an event; if no Event Dispatcher has been set than this method will explicitly not fail and return null. By not failing we make the Event Dispatcher optional and is it easier for people to re-use this component in their own application.
| inherited_from | \phpDocumentor_Plugin_Abstract::dispatch() |
|---|
stringName of the event to dispatch.
\string[]Arguments for this event.
\phpDocumentor_Parser_Exception |
if there is a dispatcher but it is not of type sfEventDispatcher |
|---|
mixednull
getTranslator() : \Zend_Translate_Adapter_Array | null
| inherited_from | \phpDocumentor_Plugin_Abstract::getTranslator() |
|---|
log(string $message, int $priority) : void
| inherited_from | \phpDocumentor_Plugin_Abstract::log() |
|---|
stringThe message to log.
intThe logging priority, the lower, the more important. Ranges from 1 to 7
logParserError(string $type, $code, string $line, \string[] $variables) : void
| inherited_from | \phpDocumentor_Plugin_Abstract::logParserError() |
|---|
stringThe logging priority as string
stringThe line number where the error occurred..
\string[]an array with message substitution variables.
configure() : void
This method can be used to manually hook events to the dispatcher based instead of using the @phpdoc-event tag.
| see | \phpDocumentor_Plugin_Core_Listener::configure() |
|---|
connectHooksToDispatcher() : void
The @phpdoc-event tag has as description the name of the event to connect to. When encountered will that event be linked to the associated method. It is thus important that such a method has a single argument $event of type sfEvent. This contains the arguments that were dispatched.
$configuration : \Zend_Config_Xml
| inherited_from | \phpDocumentor_Plugin_Abstract::$$configuration |
|---|
$event_dispatcher : \sfEventDispatcher
| inherited_from | \phpDocumentor_Plugin_Abstract::$$event_dispatcher |
|---|
$plugin
$translate : \Zend_Translate_Adapter_Array
| inherited_from | \phpDocumentor_Plugin_Abstract::$$translate |
|---|