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

Class: Tree_Memory_XML

Source Location: /Tree-0.3.7/Tree/Memory/XML.php

Class Overview

XML_Parser
   |
   --Tree_Memory_XML

the XML interface for the tree class


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 31]
the XML interface for the tree class
  • Author:
  • Version:
  • Access: public


[ Top ]


Class Variables

$data = array(0 => null)

[line 38]

  • Var: the first element has to be empty, so we can use the parentId=0 as "no parent"

Type:   array


[ Top ]

$folding =  false

[line 53]

  • Var: set case folding for the XML_Parser to false

Type:   boolean


[ Top ]

$level =  0

[line 43]


Type:   integer


[ Top ]

$parentIdOnLevel = array()

[line 48]


Type:   array


[ Top ]



Method Detail

Tree_Memory_XML (Constructor)   [line 75]

boolean Tree_Memory_XML( $dsn, $options)

  • Return: true on success
  • Author: Wolfram Kriesing <wolfram@kriesing.de>
  • Version: 2002/01/17
  • Access: public

Parameters:

   $dsn   — 
   $options   — 

[ Top ]

cdataHandler   [line 164]

boolean cdataHandler( $parser, $cdata)

  • Return: true on success
  • Author: Wolfram Kriesing <wolfram@kriesing.de>
  • Version: 2002/01/17
  • Access: public

Parameters:

   $parser   — 
   $cdata   — 

[ Top ]

defaultHandler   [line 189]

boolean defaultHandler( $parser, $cdata)

  • Return: true on success
  • Author: Wolfram Kriesing <wolfram@kriesing.de>
  • Version: 2002/01/17
  • Access: public

Parameters:

   $parser   — 
   $cdata   — 

[ Top ]

endHandler   [line 148]

boolean endHandler( $parser, $element)

  • Return: true on success
  • Author: Wolfram Kriesing <wolfram@kriesing.de>
  • Version: 2002/01/17
  • Access: public

Parameters:

   $parser   — 
   $element   — 

[ Top ]

setup   [line 207]

boolean setup( )

read the data from the xml file and prepare them so the tree class can work with it, the preparation is mainly done in startHandler
  • Return: true on success
  • Author: Wolfram Kriesing <wolfram@kriesing.de>
  • Version: 2002/01/17
  • Access: public

[ Top ]

setupByRawData   [line 226]

boolean setupByRawData( $xmlString)

read the data from an xml string and prepare them so the tree class can work with it, the preparation is mainly done in startHandler
  • Return: true on success
  • Author: Wolfram Kriesing <wolfram@kriesing.de>
  • Version: 2002/02/05
  • Access: public

Parameters:

   $xmlString   — 

[ Top ]

startHandler   [line 101]

boolean startHandler( $parser, $element, $attribs)

  • Return: true on success
  • Author: Wolfram Kriesing <wolfram@kriesing.de>
  • Version: 2002/01/17
  • Access: public

Parameters:

   $parser   — 
   $element   — 
   $attribs   — 

[ Top ]


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