Index of all elements
[ a ]
[ b ]
[ c ]
[ d ]
[ e ]
[ f ]
[ g ]
[ h ]
[ i ]
[ l ]
[ m ]
[ o ]
[ p ]
[ r ]
[ s ]
[ t ]
[ u ]
[ v ]
[ w ]
[ x ]
[ _ ]
a
- add
- in file MDBnested.php, method Tree_Dynamic_MDBnested::add()
add a new element to the tree
- add
- in file MDBsimple.php, method Tree_Memory_MDBsimple::add()
adds _one_ new element in the tree under the given parent
- add
- in file Memory.php, method Tree_Memory::add()
adds _one_ new element in the tree under the given parent
- add
- in file MDB2simple.php, method Tree_Memory_MDB2simple::add()
adds _one_ new element in the tree under the given parent
- add
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::add()
add a new element to the tree
- add
- in file Array.php, method Tree_Memory_Array::add()
add a new item to the tree what is tricky here, we also need to add it to the source array
- add
- in file DBnested.php, method Tree_Dynamic_DBnested::add()
add a new element to the tree
- add
- in file DBsimple.php, method Tree_Memory_DBsimple::add()
adds _one_ new element in the tree under the given parent
- add
- in file Filesystem.php, method Tree_Memory_Filesystem::add()
this is tricky on a filesystem, since we are working with id's as identifiers and we need to be sure, the parentId to create a node under is the same as when the tree was last read.
- addNode
- in file Memory.php, method Tree_Memory::addNode()
Adds multiple elements. You have to pass those elements in a multidimensional array which represents the tree structure as it shall be added (this array can of course also simply contain one element).
- Array.php
- procedural page Array.php
top
b
- buildStructure
- in file Memory.php, method Tree_Memory::buildStructure()
builds the structure in the parameter $insertIn this function works recursively down into depth of the folder structure it builds an array which goes as deep as the structure goes
top
top
d
- $data
- in file Memory.php, variable Tree_Memory::$data
this array contains the pure data from the DB which are always kept, since all other structures will only make references on any element and those data are extended by the elements 'parent' 'children' etc...
- $data
- in file Array.php, variable Tree_Memory_Array::$data
- $data
- in file XML.php, variable Tree_Memory_XML::$data
- $dbh
- in file OptionsDB.php, variable Tree_OptionsDB::$dbh
- $dbh
- in file OptionsMDB.php, variable Tree_OptionsMDB::$dbh
- $dbh
- in file OptionsMDB2.php, variable Tree_OptionsMDB2::$dbh
- $debug
- in file MDB2nested.php, variable Tree_Dynamic_MDB2nested::$debug
- $debug
- in file Memory.php, variable Tree_Memory::$debug
- $debug
- in file MDBnested.php, variable Tree_Dynamic_MDBnested::$debug
- $debug
- in file DBnested.php, variable Tree_Dynamic_DBnested::$debug
- DB_DSN
- in file index.php, constant DB_DSN
- defaultHandler
- in file XML.php, method Tree_Memory_XML::defaultHandler()
- dumpAllNicely
- in file Memory_MDBsimple.php, function dumpAllNicely()
dumps the entire structure nicely
- dumpHelper
- in file Memory_MDBsimple.php, function dumpHelper()
this is a helper function, so i dont have to write so many prints :-)
- Dynamic_DBnested.php
- procedural page Dynamic_DBnested.php
- Dynamic_MDBnested.php
- procedural page Dynamic_MDBnested.php
- DBnested.php
- procedural page DBnested.php
- DBnested.php
- procedural page DBnested.php
- DBsimple.php
- procedural page DBsimple.php
top
top
top
g
- getAll
- in file treeClass.php, method treeClass::getAll()
just a wrapper to be compatible to vp_DB_Common
- getAllChildren
- in file Common.php, method Tree_Common::getAllChildren()
gets all the children and grand children etc.
- getAllChildrenIds
- in file Common.php, method Tree_Common::getAllChildrenIds()
gets all the children-ids and grand children-ids
- getAllVisible
- in file treeClass.php, method treeClass::getAllVisible()
this returns all the visible projects, the folders returned
- getChild
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getChild()
- getChild
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getChild()
- getChild
- in file DBnested.php, method Tree_Dynamic_DBnested::getChild()
- getChild
- in file Memory.php, method Tree_Memory::getChild()
returns the child if the node given has one !!! ATTENTION watch out that you never change any of the data returned, since they are references to the internal property $data
- getChildId
- in file Common.php, method Tree_Common::getChildId()
- getChildren
- in file DBnested.php, method Tree_Dynamic_DBnested::getChildren()
get the children of the given element or if the parameter is an array.
- getChildren
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getChildren()
get the children of the given element or if the parameter is an array.
- getChildren
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getChildren()
get the children of the given element or if the parameter is an array.
- getChildren
- in file Memory.php, method Tree_Memory::getChildren()
returns the children of the given ids
- getChildrenIds
- in file Common.php, method Tree_Common::getChildrenIds()
get the ids of the children of the given element
- getDepth
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getDepth()
return the maximum depth of the tree
- getDepth
- in file DBnested.php, method Tree_Dynamic_DBnested::getDepth()
return the maximum depth of the tree
- getDepth
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getDepth()
return the maximum depth of the tree
- getDepth
- in file Common.php, method Tree_Common::getDepth()
return the maximum depth of the tree
- getElement
- in file DBnested.php, method Tree_Dynamic_DBnested::getElement()
- getElement
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getElement()
- getElement
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getElement()
- getElementByPath
- in file Memory.php, method Tree_Memory::getElementByPath()
gets an element given by it's path as a reference
- getFirstRoot
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getFirstRoot()
- getFirstRoot
- in file Memory.php, method Tree_Memory::getFirstRoot()
this gets the first element that is in the root node
- getFirstRoot
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getFirstRoot()
- getFirstRoot
- in file DBnested.php, method Tree_Dynamic_DBnested::getFirstRoot()
- getFirstRootId
- in file Common.php, method Tree_Common::getFirstRootId()
- getIdByPath
- in file Common.php, method Tree_Common::getIdByPath()
- getIdByPath
- in file DBnested.php, method Tree_Dynamic_DBnested::getIdByPath()
return the id of the element which is referenced by $path
- getIdByPath
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getIdByPath()
return the id of the element which is referenced by $path
- getIdByPath
- in file Memory.php, method Tree_Memory::getIdByPath()
return the id of the element which is referenced by $path
- getIdByPath
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getIdByPath()
return the id of the element which is referenced by $path
- getLeft
- in file DBnested.php, method Tree_Dynamic_DBnested::getLeft()
gets the element to the left, the left visit
- getLeft
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getLeft()
gets the element to the left, the left visit
- getLeft
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getLeft()
gets the element to the left, the left visit
- getLeftId
- in file Common.php, method Tree_Common::getLeftId()
- getLevel
- in file DBnested.php, method Tree_Dynamic_DBnested::getLevel()
- getLevel
- in file Memory.php, method Tree_Memory::getLevel()
get the level, which is how far below the root are we?
- getLevel
- in file Common.php, method Tree_Common::getLevel()
get the level, which is how far below the root the element with the given id is
- getLevel
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getLevel()
- getLevel
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getLevel()
- getMessage
- in file Error.php, method Tree_Error::getMessage()
- getNext
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getNext()
get the next element on the same level if there is none return false
- getNext
- in file DBnested.php, method Tree_Dynamic_DBnested::getNext()
get the next element on the same level if there is none return false
- getNext
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getNext()
get the next element on the same level if there is none return false
- getNext
- in file Memory.php, method Tree_Memory::getNext()
returns the next element if the node given has one !!! ATTENTION watch out that you never change any of the data returned, since they are references to the internal property $data
- getNextId
- in file Common.php, method Tree_Common::getNextId()
- getNode
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getNode()
gets the tree under the given element in one array, sorted so you can go through the elements from begin to end and list them as they are in the tree, where every child (until the deepest) is retreived
- getNode
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getNode()
gets the tree under the given element in one array, sorted so you can go through the elements from begin to end and list them as they are in the tree, where every child (until the deepest) is retreived
- getNode
- in file Memory.php, method Tree_Memory::getNode()
gets the tree under the given element in one array, sorted so you can go through the elements from begin to end and list them as they are in the tree, where every child (until the deepest) is retreived
- getNode
- in file DBnested.php, method Tree_Dynamic_DBnested::getNode()
gets the tree under the given element in one array, sorted so you can go through the elements from begin to end and list them as they are in the tree, where every child (until the deepest) is retreived
- getOption
- in file Common.php, method Tree_Common::getOption()
- getOptions
- in file Common.php, method Tree_Common::getOptions()
returns all the options
- getParent
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getParent()
get the parent of the element with the given id
- getParent
- in file DBnested.php, method Tree_Dynamic_DBnested::getParent()
get the parent of the element with the given id
- getParent
- in file Memory.php, method Tree_Memory::getParent()
returns the child if the node given has one !!! ATTENTION watch out that you never change any of the data returned, since they are references to the internal property $data
- getParent
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getParent()
get the parent of the element with the given id
- getParentId
- in file Common.php, method Tree_Common::getParentId()
get the id of the parent for the given element
- getParents
- in file Common.php, method Tree_Common::getParents()
this gets all the preceeding nodes, the parent and it's parent and so on
- getParentsIds
- in file Common.php, method 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()
- getPath
- in file DBnested.php, method Tree_Dynamic_DBnested::getPath()
gets the path from the element with the given id down to the root. The returned array is sorted to start at root for simply walking through and retreiving the path
- getPath
- in file Memory.php, method Tree_Memory::getPath()
gets the path to the element given by its id !!! ATTENTION watch out that you never change any of the data returned, since they are references to the internal property $data
- getPath
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getPath()
gets the path from the element with the given id down to the root. The returned array is sorted to start at root for simply walking through and retreiving the path
- getPath
- in file Common.php, method Tree_Common::getPath()
gets the path to the element given by its id
- getPath
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getPath()
gets the path from the element with the given id down to the root. The returned array is sorted to start at root for simply walking through and retreiving the path
- getPathAsString
- in file Common.php, method Tree_Common::getPathAsString()
returns the path as a string
- getPathAsString
- in file treeClass.php, method treeClass::getPathAsString()
- getPrevious
- in file DBnested.php, method Tree_Dynamic_DBnested::getPrevious()
get the previous element on the same level if there is none return false
- getPrevious
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getPrevious()
get the previous element on the same level if there is none return false
- getPrevious
- in file Memory.php, method Tree_Memory::getPrevious()
returns the previous element if the node given has one !!! ATTENTION watch out that you never change any of the data returned, since they are references to the internal property $data
- getPrevious
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getPrevious()
get the previous element on the same level if there is none return false
- getPreviousId
- in file Common.php, method Tree_Common::getPreviousId()
- getRight
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getRight()
gets the element to the right, the right visit
- getRight
- in file DBnested.php, method Tree_Dynamic_DBnested::getRight()
gets the element to the right, the right visit
- getRight
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getRight()
gets the element to the right, the right visit
- getRightId
- in file Common.php, method Tree_Common::getRightId()
- getRoot
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::getRoot()
get the root
- getRoot
- in file DBnested.php, method Tree_Dynamic_DBnested::getRoot()
get the root
- getRoot
- in file Memory.php, method Tree_Memory::getRoot()
since in a nested tree there can only be one root
- getRoot
- in file MDBnested.php, method Tree_Dynamic_MDBnested::getRoot()
get the root
- getRootId
- in file Common.php, method Tree_Common::getRootId()
top
top
top
top
top
o
- $options
- in file Common.php, variable Tree_Common::$options
put proper value-keys are given in each class, depending on the implementation only some options are needed or allowed, see the classes which extend this one
- $options
- in file MDBnested.php, variable Tree_Dynamic_MDBnested::$options
- $options
- in file MDBsimple.php, variable Tree_Memory_MDBsimple::$options
- $options
- in file MDB2nested.php, variable Tree_Dynamic_MDB2nested::$options
- $options
- in file MDB2simple.php, variable Tree_Memory_MDB2simple::$options
- $options
- in file Filesystem.php, variable Tree_Memory_Filesystem::$options
- $options
- in file DBnested.php, variable Tree_Dynamic_DBnested::$options
- $options
- in file DBsimple.php, variable Tree_Memory_DBsimple::$options
- OptionsDB.php
- procedural page OptionsDB.php
- OptionsMDB.php
- procedural page OptionsMDB.php
- OptionsMDB2.php
- procedural page OptionsMDB2.php
top
top
top
s
- setData
- in file Array.php, method Tree_Memory_Array::setData()
this is mostly used by switchDataSource
- setOption
- in file Common.php, method Tree_Common::setOption()
- setOptions
- in file Common.php, method Tree_Common::setOptions()
set a number of options which are simply given in an array
- setRemoveRecursively
- in file Memory.php, method Tree_Memory::setRemoveRecursively()
sets the remove-recursively mode, either true or false
- setup
- in file XML.php, method Tree_Memory_XML::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
- setup
- in file MDBsimple.php, method Tree_Memory_MDBsimple::setup()
retrieve all the navigation data from the db and call build to build the tree in the array data and structure
- setup
- in file MDB2simple.php, method Tree_Memory_MDB2simple::setup()
retrieve all the navigation data from the db and call build to build the tree in the array data and structure
- setup
- in file Memory.php, method Tree_Memory::setup()
- setup
- in file MDBnested.php, method Tree_Memory_MDBnested::setup()
retreive all the data from the db and prepare the data so the structure can be built in the parent class
- setup
- in file MDB2nested.php, method Tree_Memory_MDB2nested::setup()
retreive all the data from the db and prepare the data so the structure can be built in the parent class
- setup
- in file DBnested.php, method Tree_Memory_DBnested::setup()
retreive all the data from the db and prepare the data so the structure can be built in the parent class
- setup
- in file DBsimple.php, method Tree_Memory_DBsimple::setup()
retreive all the navigation data from the db and call build to build the tree in the array data and structure
- setup
- in file Array.php, method Tree_Memory_Array::setup()
- setup
- in file Filesystem.php, method Tree_Memory_Filesystem::setup()
retreive all the navigation data from the db and call build to build the tree in the array data and structure
- setupByRawData
- in file XML.php, method Tree_Memory_XML::setupByRawData()
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
- setupByRawData
- in file Memory.php, method Tree_Memory::setupByRawData()
- setupDynamic
- in file Tree.php, method Tree::setupDynamic()
setup an object that works on trees where each element(s) are read
- setupMemory
- in file Tree.php, method Tree::setupMemory()
setup an object which works on trees that are temporarily saved in
- startHandler
- in file XML.php, method Tree_Memory_XML::startHandler()
- switchDataSource
- in file Memory.php, method Tree_Memory::switchDataSource()
use this to switch data sources on the run
top
t
- $table
- in file MDB2simple.php, variable Tree_Memory_MDB2simple::$table
- $table
- in file MDBsimple.php, variable Tree_Memory_MDBsimple::$table
- $table
- in file DBsimple.php, variable Tree_Memory_DBsimple::$table
- TABLE_TREE
- in file index.php, constant TABLE_TREE
- Tree
- in file Tree.php, class Tree
the DB interface to the tree class
- treeClass.php
- procedural page treeClass.php
- Tree.php
- procedural page Tree.php
- treeClass
- in file treeClass.php, class treeClass
this class can be used to step through a tree using ['parent'],['child']
- Tree_Common
- in file Common.php, class Tree_Common
common tree class, implements common functionality
- Tree_Dynamic_DBnested
- in file DBnested.php, class Tree_Dynamic_DBnested
This class implements methods to work on a tree saved using the nested tree model.
- Tree_Dynamic_DBnested
- in file DBnested.php, method Tree_Dynamic_DBnested::Tree_Dynamic_DBnested()
- Tree_Dynamic_MDB2nested
- in file MDB2nested.php, class Tree_Dynamic_MDB2nested
This class implements methods to work on a tree saved using the nested tree model.
- Tree_Dynamic_MDB2nested
- in file MDB2nested.php, method Tree_Dynamic_MDB2nested::Tree_Dynamic_MDB2nested()
- Tree_Dynamic_MDBnested
- in file MDBnested.php, class Tree_Dynamic_MDBnested
This class implements methods to work on a tree saved using the nested tree model.
- Tree_Dynamic_MDBnested
- in file MDBnested.php, method Tree_Dynamic_MDBnested::Tree_Dynamic_MDBnested()
- Tree_Error
- in file Error.php, class Tree_Error
- Tree_Error
- in file Error.php, method Tree_Error::Tree_Error()
- TREE_ERROR_CANNOT_CREATE_FOLDER
- in file Error.php, constant TREE_ERROR_CANNOT_CREATE_FOLDER
- TREE_ERROR_DB_ERROR
- in file Error.php, constant TREE_ERROR_DB_ERROR
- TREE_ERROR_ELEMENT_NOT_FOUND
- in file Error.php, constant TREE_ERROR_ELEMENT_NOT_FOUND
- TREE_ERROR_EMPTY_PATH
- in file Error.php, constant TREE_ERROR_EMPTY_PATH
- TREE_ERROR_INVALID_NODE_NAME
- in file Error.php, constant TREE_ERROR_INVALID_NODE_NAME
- TREE_ERROR_INVALID_PARENT
- in file Error.php, constant TREE_ERROR_INVALID_PARENT
- TREE_ERROR_INVALID_PATH
- in file Error.php, constant TREE_ERROR_INVALID_PATH
- TREE_ERROR_MOVE_TO_CHILDREN
- in file Error.php, constant TREE_ERROR_MOVE_TO_CHILDREN
- TREE_ERROR_NOT_IMPLEMENTED
- in file Error.php, constant TREE_ERROR_NOT_IMPLEMENTED
Errors constants definitions
- TREE_ERROR_PARENT_ID_MISSED
- in file Error.php, constant TREE_ERROR_PARENT_ID_MISSED
- TREE_ERROR_PATH_SEPARATOR_EMPTY
- in file Error.php, constant TREE_ERROR_PATH_SEPARATOR_EMPTY
- TREE_ERROR_UNKNOW_ERROR
- in file Error.php, constant TREE_ERROR_UNKNOW_ERROR
- Tree_Memory
- in file Memory.php, method Tree_Memory::Tree_Memory()
set up this object
- Tree_Memory
- in file Memory.php, class Tree_Memory
this class can be used to step through a tree using ['parent'],['child']
- Tree_Memory_Array
- in file Array.php, class Tree_Memory_Array
EXPERIMENTAL
- Tree_Memory_Array
- in file Array.php, method Tree_Memory_Array::Tree_Memory_Array()
set up this object
- Tree_Memory_DBnested
- in file DBnested.php, class Tree_Memory_DBnested
- Tree_Memory_DBsimple
- in file DBsimple.php, class Tree_Memory_DBsimple
the DB interface to the tree class
- Tree_Memory_DBsimple
- in file DBsimple.php, method Tree_Memory_DBsimple::Tree_Memory_DBsimple()
set up this object
- Tree_Memory_Filesystem
- in file Filesystem.php, method Tree_Memory_Filesystem::Tree_Memory_Filesystem()
set up this object
- Tree_Memory_Filesystem
- in file Filesystem.php, class Tree_Memory_Filesystem
the Filesystem interface to the tree class
- Tree_Memory_MDB2nested
- in file MDB2nested.php, class Tree_Memory_MDB2nested
- Tree_Memory_MDB2simple
- in file MDB2simple.php, method Tree_Memory_MDB2simple::Tree_Memory_MDB2simple()
set up this object
- Tree_Memory_MDB2simple
- in file MDB2simple.php, class Tree_Memory_MDB2simple
the MDB2 interface to the tree class
- Tree_Memory_MDBnested
- in file MDBnested.php, class Tree_Memory_MDBnested
- Tree_Memory_MDBsimple
- in file MDBsimple.php, method Tree_Memory_MDBsimple::Tree_Memory_MDBsimple()
set up this object
- Tree_Memory_MDBsimple
- in file MDBsimple.php, class Tree_Memory_MDBsimple
the MDB interface to the tree class
- Tree_Memory_XML
- in file XML.php, class Tree_Memory_XML
the XML interface for the tree class
- Tree_Memory_XML
- in file XML.php, method Tree_Memory_XML::Tree_Memory_XML()
- Tree_Options
- in file Common.php, method 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_OptionsDB
- in file OptionsDB.php, class Tree_OptionsDB
this class additionally retreives a DB connection and saves it in the property "dbh"
- Tree_OptionsDB
- in file OptionsDB.php, method Tree_OptionsDB::Tree_OptionsDB()
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_OptionsMDB
- in file OptionsMDB.php, method Tree_OptionsMDB::Tree_OptionsMDB()
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_OptionsMDB
- in file OptionsMDB.php, class Tree_OptionsMDB
this class additionally retreives a DB connection and saves it in the property "dbh"
- Tree_OptionsMDB2
- in file OptionsMDB2.php, method Tree_OptionsMDB2::Tree_OptionsMDB2()
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_OptionsMDB2
- in file OptionsMDB2.php, class Tree_OptionsMDB2
this class additionally retreives a DB connection and saves it in the property "dbh"
top
top
v
- varDump
- in file Memory.php, method Tree_Memory::varDump()
this is for debugging, dumps the entire data-array an extra method is needed, since this array contains recursive elements which make a normal print_f or var_dump not show all the data
top
w
- walk
- in file Memory.php, method Tree_Memory::walk()
this method only serves to call the _walk method and reset $this->walkReturn that will be returned by all the walk-steps
top
top
top
Documentation generated on Mon, 11 Mar 2019 15:47:03 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|