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
파일 보기 프로젝트 열기: vjousse/symfony-1.4 1 사용 예제들

공개 메소드들

메소드 설명
__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 )