PHP Класс NestedElementHandler, symfony-1.4

This class handles the occurance of runtime registered tags like datatypes (fileset, patternset, etc) and it's possible nested tags. It introspects the implementation of the class and sets up the data structures.
Автор: Andreas Aderhold ([email protected])
Наследование: extends AbstractHandler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( $parser, $parentHandler, $configurator, $parent, $parentWrapper, $target ) Constructs a new NestedElement handler and sets up everything.
characters ( $data ) Handles character data.
init ( $propType, $attrs ) Executes initialization actions required to setup the data structures related to the tag.
startElement ( $name, $attrs ) Checks for nested tags within the current one. Creates and calls handlers respectively.

Описание методов

__construct() публичный Метод

@param object the ExpatParser object
public __construct ( $parser, $parentHandler, $configurator, $parent, $parentWrapper, $target )

characters() публичный Метод

Handles character data.
public characters ( $data )

init() публичный Метод

This includes:

  • creation of the nested element
  • calling the setters for attributes
  • adding the element to the container object
  • adding a reference to the element (if id attribute is given)
public init ( $propType, $attrs )

startElement() публичный Метод

Checks for nested tags within the current one. Creates and calls handlers respectively.
public startElement ( $name, $attrs )