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

Class: Tree_OptionsMDB2

Source Location: /Tree-0.3.7/Tree/OptionsMDB2.php

Class Overview

Tree_Common
   |
   --Tree_OptionsMDB2

this class additionally retreives a DB connection and saves it in the property "dbh"


Author(s):

Version:

  • 2001/06/27

Variables

Methods


Child classes:

Tree_Dynamic_MDB2nested
This class implements methods to work on a tree saved using the nested tree model.
Tree_Memory_MDB2simple
the MDB2 interface to the tree class

Inherited Variables

Inherited Methods

Class: Tree_Common

Tree_Common::getAllChildren()
gets all the children and grand children etc.
Tree_Common::getAllChildrenIds()
gets all the children-ids and grand children-ids
Tree_Common::getChildId()
Tree_Common::getChildrenIds()
get the ids of the children of the given element
Tree_Common::getDepth()
return the maximum depth of the tree
Tree_Common::getFirstRootId()
Tree_Common::getIdByPath()
Tree_Common::getLeftId()
Tree_Common::getLevel()
get the level, which is how far below the root the element with the given id is
Tree_Common::getNextId()
Tree_Common::getOption()
Tree_Common::getOptions()
returns all the options
Tree_Common::getParentId()
get the id of the parent for the given element
Tree_Common::getParents()
this gets all the preceeding nodes, the parent and it's parent and so on
Tree_Common::getParentsIds()
get the ids of the parents and all it's parents and so on it simply returns the ids of the elements returned by getParents()
Tree_Common::getPath()
gets the path to the element given by its id
Tree_Common::getPathAsString()
returns the path as a string
Tree_Common::getPreviousId()
Tree_Common::getRightId()
Tree_Common::getRootId()
Tree_Common::hasChildren()
returns if the given element has any children
Tree_Common::isChildOf()
returns if $childId is a child of $id
Tree_Common::setOption()
Tree_Common::setOptions()
set a number of options which are simply given in an array
Tree_Common::Tree_Options()
this constructor sets the options, since i normally need this and in case the constructor doesnt need to do anymore i already have it done :-)
Tree_Common::_getAllChildren()
this method gets all the children recursively

Class Details

[line 37]
this class additionally retreives a DB connection and saves it in the property "dbh"


[ Top ]


Class Variables

$dbh =

[line 42]


Type:   object


[ Top ]



Method Detail

Tree_OptionsMDB2 (Constructor)   [line 56]

Tree_OptionsMDB2 Tree_OptionsMDB2( boolean $dsn, [ $options = array()])

this constructor sets the options, since i normally need this and in case the constructor doesnt need to do anymore i already have it done :-)

Parameters:

boolean   $dsn     true if loggedIn
   $options     

[ Top ]


Documentation generated on Wed, 04 Jan 2012 03:00:26 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.