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

Class: XML_DTD_Tree

Source Location: /XML_DTD-0.5.2/DTD.php

Class Overview


XML_DTD_Tree


Author(s):

Version:

  • Release: 0.5.2

Copyright:

  • 2003-2008 Tomas V.V.Cox <cox@idecnet.com>

Methods


Inherited Variables

Inherited Methods


Class Details

[line 345]
XML_DTD_Tree

DTD tree format:

  1.  [elements=> array(
  2.       <tag name> => array(
  3.           [children=> array(
  4.               0 => <child name>                    //allowed children array
  5.           ),
  6.           [child_validation_pcre_regex=> string// The regex for validating
  7.                                                    // the list of childs
  8.           [child_validation_dtd_regex=> string,  // The DTD element declaration
  9.           [content=> string                      // null, #PCDATA, EMPTY or ANY
  10.           [attributes=> array(
  11.               <att name> => array(
  12.                   [opts=> (array|string),        // enumerated or CDATA
  13.                   [defaults=> (#IMPLIED|#REQUIRED|#FIXED|value),
  14.                   [fixed_value=> string          // only when defaults is #FIXED
  15.               )
  16.           )
  17.       )
  18.  )



[ Top ]


Method Detail

XML_DTD_Tree (Constructor)   [line 356]

XML_DTD_Tree XML_DTD_Tree( array $tree)

XML_DTD_Tree::XML_DTD_Tree()

The DTD tree array coming from XML_DTD_Parse->parse()

  • Access: public

Parameters:

array   $tree   —  DTD tree

[ Top ]

elementIsDeclared   [line 442]

bool elementIsDeclared( string $elem)

XML_DTD_Tree::elementIsDeclared()
  • Access: public

Parameters:

string   $elem   —  element

[ Top ]

getAttributes   [line 426]

array getAttributes( string $elem)

XML_DTD_Tree::getAttributes()
  • Access: public

Parameters:

string   $elem   —  element

[ Top ]

getChildren   [line 369]

array getChildren( string $elem)

XML_DTD_Tree::getChildren()
  • Access: public

Parameters:

string   $elem   —  element

[ Top ]

getContent   [line 382]

string getContent( string $elem)

XML_DTD_Tree::getContent()
  • Access: public

Parameters:

string   $elem   —  element

[ Top ]

getDTDRegex   [line 413]

string getDTDRegex( string $elem)

XML_DTD_Tree::getDTDRegex()

Return the DTD element definition for $elem

  • Access: public

Parameters:

string   $elem   —  element

[ Top ]

getPcreRegex   [line 398]

string getPcreRegex( string $elem)

XML_DTD_Tree::getPcreRegex()

Return the perl regular expresion used for validating the children of a node

  • Access: public

Parameters:

string   $elem   —  element

[ Top ]


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