PHP Класс DataTypeHandler, symfony-1.4

Design/ZE2 migration note: If PHP would support nested classes. All the phing/parser/*Filter classes would be nested within this class

Автор: Andreas Aderhold ([email protected])
Наследование: extends AbstractHandler
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( AbstractSAXParser $parser, AbstractHandler $parentHandler, ProjectConfigurator $configurator, Target $target = null ) Constructs a new DataTypeHandler and sets up everything.
characters ( $data ) Handles character data.
endElement ( $name ) : void Overrides endElement for data types. Tells the type handler that processing the element had been finished so handlers know they can perform actions that need to be based on the data contained within the element.
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() публичный метод

Constructs a new DataTypeHandler and sets up everything.
public __construct ( AbstractSAXParser $parser, AbstractHandler $parentHandler, ProjectConfigurator $configurator, Target $target = null )
$parser AbstractSAXParser The XML parser (default: ExpatParser)
$parentHandler AbstractHandler The parent handler that invoked this handler.
$configurator ProjectConfigurator The ProjectConfigurator object
$target Target The target object this datatype is contained in (null for top-level datatypes).

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

Handles character data.
public characters ( $data )

endElement() публичный метод

Overrides endElement for data types. Tells the type handler that processing the element had been finished so handlers know they can perform actions that need to be based on the data contained within the element.
public endElement ( $name ) : void
Результат void

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

This includes:

  • creation of the datatype object
  • calling the setters for attributes
  • adding the type to the target object if any
  • adding a reference to the task (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 )