XML_SaxFilters
[ class tree: XML_SaxFilters ] [ index: XML_SaxFilters ] [ all elements ]

Class: XML_SaxFilters_FilterBuilder

Source Location: /XML_SaxFilters-0.3.0/SaxFilters/FilterBuilder.php

Class Overview


Class that, given a map of tag names to other filters, can be used to create filters.


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 32]
Class that, given a map of tag names to other filters, can be used to create filters.
  • Access: public


[ Top ]


Method Detail

XML_SaxFilters_FilterBuilder (Constructor)   [line 46]

XML_SaxFilters_FilterBuilder XML_SaxFilters_FilterBuilder( array &$maps)

Constructs FilterBuilder
  • Access: public

Parameters:

array   &$maps   —  of XML_SaxFilters_FilterMap objects

[ Top ]

attachFilter   [line 59]

boolean attachFilter( object parent &$parent, string $tag, [array $attrs = array()])

Makes a filter an adds it as the parent filters child. Checks

to see if a filter should be built against the FilterMaps

  • Return: true on success
  • Access: public

Parameters:

object parent   &$parent   —  filter subclass of AbstractFilter
string   $tag   —  XML opening tag element name
array   $attrs   —  XML opening tag attributes (optional)

[ Top ]

detachFilter   [line 80]

boolean detachFilter( object parent &$parent, string $name)

Removes a filter from the parent, after checking the FilterMaps
  • Return: true on success
  • Access: public

Parameters:

object parent   &$parent   —  filter subclass of AbstractFilter
string   $name   —  XML closing tag element name

[ Top ]


Documentation generated on Mon, 11 Mar 2019 10:15:10 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.