_()
__construct()
debug()
dispatch()
getConfiguration()
getEventDispatcher()
getTranslator()
log()
logParserError()
$configuration
$event_dispatcher
$translate
Layer superclass for the Plugin Component; contains all event dispatching code.
| 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.
stringID or message to translate.
arrayVariables to use for substitution.
string__construct(\sfEventDispatcher $event_dispatcher, \Zend_Config_Xml $configuration, \Zend_Translate_Adapter_Array $translator)
debug(string $message) : void
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.
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
log(string $message, int $priority) : void
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
stringThe logging priority as string
stringThe line number where the error occurred..
\string[]an array with message substitution variables.