ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
An ilComponentDefinitionProcessor processes some attributes from a component.xml (i.e. More...
Public Member Functions | |
purge () | |
This methods is supposed to purge existing data in the provider of the component, so new components can be added to a clean slate. More... | |
beginComponent (string $component, string $type) | |
This method is called when parsing of component.xml for the given component starts. More... | |
endComponent (string $component, string $type) | |
This method is called when parsing of component.xml for the given component ends. More... | |
beginTag (string $name, array $attributes) | |
This is called when a tag starts in the context of the given component. More... | |
endTag (string $name) | |
This is called when a tag ends in the context of the given component. More... | |
An ilComponentDefinitionProcessor processes some attributes from a component.xml (i.e.
a service.xml or module.xml) and puts the information into the according places in the provider of the processor.
Make sure to understand that this is used in the context of processing xml via sax-style parsing. That is, the processor needs to act in a stateful session and react on beginning and ending of tags.
Definition at line 30 of file class.ilComponentDefinitionProcessor.php.
ilComponentDefinitionProcessor::beginComponent | ( | string | $component, |
string | $type | ||
) |
This method is called when parsing of component.xml for the given component starts.
This is supposed to reset any internal parsing state.
Implemented in ILIAS\Setup\DefinitionProcessor, ilComponentInfoDefinitionProcessor, ilObjectDefinitionProcessor, ilEventHandlingDefinitionProcessor, ilMailTemplateContextDefinitionProcessor, ilCOPageDefinitionProcessor, ilBadgeDefinitionProcessor, ilLoggingDefinitionProcessor, ilSystemCheckDefinitionProcessor, and ilSecurePathDefinitionProcessor.
ilComponentDefinitionProcessor::beginTag | ( | string | $name, |
array | $attributes | ||
) |
This is called when a tag starts in the context of the given component.
string[] | $attributes |
Implemented in ILIAS\Setup\DefinitionProcessor, ilComponentInfoDefinitionProcessor, ilMailTemplateContextDefinitionProcessor, ilObjectDefinitionProcessor, ilCOPageDefinitionProcessor, ilEventHandlingDefinitionProcessor, ilBadgeDefinitionProcessor, ilLoggingDefinitionProcessor, ilSystemCheckDefinitionProcessor, and ilSecurePathDefinitionProcessor.
ilComponentDefinitionProcessor::endComponent | ( | string | $component, |
string | $type | ||
) |
This method is called when parsing of component.xml for the given component ends.
Implemented in ILIAS\Setup\DefinitionProcessor, ilComponentInfoDefinitionProcessor, ilObjectDefinitionProcessor, ilMailTemplateContextDefinitionProcessor, ilCOPageDefinitionProcessor, ilEventHandlingDefinitionProcessor, ilBadgeDefinitionProcessor, ilLoggingDefinitionProcessor, ilSystemCheckDefinitionProcessor, and ilSecurePathDefinitionProcessor.
ilComponentDefinitionProcessor::endTag | ( | string | $name | ) |
This is called when a tag ends in the context of the given component.
Implemented in ilObjectDefinitionProcessor, ilComponentInfoDefinitionProcessor, ILIAS\Setup\DefinitionProcessor, ilCOPageDefinitionProcessor, ilMailTemplateContextDefinitionProcessor, ilEventHandlingDefinitionProcessor, ilBadgeDefinitionProcessor, ilSystemCheckDefinitionProcessor, ilLoggingDefinitionProcessor, and ilSecurePathDefinitionProcessor.
ilComponentDefinitionProcessor::purge | ( | ) |
This methods is supposed to purge existing data in the provider of the component, so new components can be added to a clean slate.
Implemented in ILIAS\Setup\DefinitionProcessor, ilMailTemplateContextDefinitionProcessor, ilComponentInfoDefinitionProcessor, ilEventHandlingDefinitionProcessor, ilCOPageDefinitionProcessor, ilObjectDefinitionProcessor, ilLoggingDefinitionProcessor, ilBadgeDefinitionProcessor, ilSystemCheckDefinitionProcessor, and ilSecurePathDefinitionProcessor.