Listener for the Core Plugin.
Methods
Translates the ID or message in the given language.
_(string $message, array $variables) : string
Inherited
Translation messages may contain any formatting as used by the php
vsprintf function.
| inherited_from |
\phpDocumentor_Plugin_Abstract::_() |
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::_() |
Parameters
$message
stringID or message to translate.
$variables
arrayVariables to use for substitution.
Returns
string
Registers the event dispatcher and configuration, calls the configure
method and connects the hooks of this listener to the event dispatcher.
__construct(\phpDocumentor_Plugin_Abstract $plugin)
Inherited
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::__construct() |
Parameters
Applies all behaviours prior to transformation.
applyBehaviours(sfEvent $data) : void
| phpdoc-event |
transformer.transform.pre |
Parameters
$data
\sfEventEvent object containing the parameters.
Dispatches a logging request to log a debug message.
debug(string $message) : void
Inherited
| inherited_from |
\phpDocumentor_Plugin_Abstract::debug() |
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::debug() |
Parameters
$message
stringThe message to log.
Dispatches an event to the Event Dispatcher.
dispatch(string $name, \string[] $arguments) : mixed | null
Inherited
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() |
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::dispatch() |
Parameters
$name
stringName of the event to dispatch.
$arguments
\string[]Arguments for this event.
Exceptions
Returns
mixednull
Prepare the tag to be injected into the XML file.
exportTag(sfEvent $data) : void
| phpdoc-event |
reflection.docblock.tag.export |
Parameters
$data
\sfEventEvent object containing the parameters.
Returns the configuration for this object.
getConfiguration() : \Zend_Config_Xml
Inherited
| inherited_from |
\phpDocumentor_Plugin_Abstract::getConfiguration() |
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::getConfiguration() |
Returns
Returns the event dispatcher.
getEventDispatcher() : \sfEventDispatcher
Inherited
| inherited_from |
\phpDocumentor_Plugin_Abstract::getEventDispatcher() |
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::getEventDispatcher() |
Returns
Returns the translation component.
getTranslator() : \Zend_Translate_Adapter_Array | null
Inherited
| inherited_from |
\phpDocumentor_Plugin_Abstract::getTranslator() |
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::getTranslator() |
Returns
Dispatches a logging request.
log(string $message, int $priority) : void
Inherited
| inherited_from |
\phpDocumentor_Plugin_Abstract::log() |
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::log() |
Parameters
$message
stringThe message to log.
$priority
intThe logging priority, the lower, the more important. Ranges from 1 to 7
Dispatches a parser error to be logged.
logParserError(string $type, $code, string $line, \string[] $variables) : void
Inherited
| inherited_from |
\phpDocumentor_Plugin_Abstract::logParserError() |
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::logParserError() |
Parameters
$type
stringThe logging priority as string
$code
$line
stringThe line number where the error occurred..
$variables
\string[]an array with message substitution variables.
Checks all phpDocumentor whether they match the given rules.
validateDocBlocks(sfEvent $data) : void
| phpdoc-event |
reflection.docblock-extraction.post |
Parameters
$data
\sfEventEvent object containing the parameters.
Scans this class for any method containing the @phpdoc-event tag and
connects it to the event dispatcher.
connectHooksToDispatcher() : void
Inherited
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.
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::connectHooksToDispatcher() |
Load the configuration from the plugin.xml file
loadConfiguration() : array
Load the configuration for given element (deprecated/required)
loadConfigurationByElement(array $configOptions, string $configType) : array
Parameters
$configOptions
arrayThe configuration from the plugin.xml file
$configType
stringRequired/Deprecated for the time being
Returns
array
Properties
<p>Configuration object for plugins</p>
$configuration : \Zend_Config_Xml
Inherited
| inherited_from |
\phpDocumentor_Plugin_Abstract::$$configuration |
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::$$configuration |
<p>Dispatcher used to send events back and forth</p>
$event_dispatcher : \sfEventDispatcher
Inherited
| inherited_from |
\phpDocumentor_Plugin_Abstract::$$event_dispatcher |
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::$$event_dispatcher |
$plugin
$plugin
Inherited
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::$$plugin |
<p>Translation object</p>
$translate : \Zend_Translate_Adapter_Array
Inherited
| inherited_from |
\phpDocumentor_Plugin_Abstract::$$translate |
| inherited_from |
\phpDocumentor_Plugin_ListenerAbstract::$$translate |