Package: Zebra_Mptt

Element index for Zebra_Mptt

[ a ] [ c ] [ d ] [ g ] [ m ] [ t ] [ u ] [ z ] [ _ ]

_

__construct
in file Zebra_Mptt.php, method Zebra_Mptt::__construct()Constructor of the class.
top

a

add
in file Zebra_Mptt.php, method Zebra_Mptt::add()Adds a new node as the child of a given parent node.
top

c

copy
in file Zebra_Mptt.php, method Zebra_Mptt::copy()Creates a copy of a node (including its descendant nodes) as the child node of a given node.
top

d

delete
in file Zebra_Mptt.php, method Zebra_Mptt::delete()Deletes a node, including the node's descendant nodes.
top

g

get_descendants
in file Zebra_Mptt.php, method Zebra_Mptt::get_descendants()Returns an unidimensional (flat) array with the descendant nodes of a given parent node.
get_descendant_count
in file Zebra_Mptt.php, method Zebra_Mptt::get_descendant_count()Returns the number of descendant nodes of a given node.
get_next_sibling
in file Zebra_Mptt.php, method Zebra_Mptt::get_next_sibling()Returns the next sibling of a node.
get_parent
in file Zebra_Mptt.php, method Zebra_Mptt::get_parent()Returns an array containing a node's direct parent node if the node has a parent node, or "0" if the node is a topmost node.
get_path
in file Zebra_Mptt.php, method Zebra_Mptt::get_path()Returns an unidimensional (flat) array with the path to the given node (including the node itself).
get_previous_sibling
in file Zebra_Mptt.php, method Zebra_Mptt::get_previous_sibling()Returns the previous sibling of a node.
get_siblings
in file Zebra_Mptt.php, method Zebra_Mptt::get_siblings()Returns an array with a node's sibling nodes.
get_tree
in file Zebra_Mptt.php, method Zebra_Mptt::get_tree()Returns a multidimensional array with all the descendant nodes (including children nodes of children nodes of children nodes and so on) of a given node.
top

m

move
in file Zebra_Mptt.php, method Zebra_Mptt::move()Moves a node, including the node's descendants nodes, into another node (becoming that node's child), or after/before a node (becoming that node's sibling)
top

t

to_list
in file Zebra_Mptt.php, method Zebra_Mptt::to_list()Transforms a node and it's subnodes to an ordered/unordered list.
to_select
in file Zebra_Mptt.php, method Zebra_Mptt::to_select()Returns an unidimensional (flat) array with the descendant nodes of the node given as argument, indented using whatever given in the $separator argument, and ready to be used in a <select> element.
top

u

update
in file Zebra_Mptt.php, method Zebra_Mptt::update()Updates a node's title.
top

z

Zebra_Mptt
in file Zebra_Mptt.php, class Zebra_MpttA PHP library that provides an implementation of the modified preorder tree traversal algorithm making it easy to implement the MPTT algorithm in your PHP applications.
Zebra_Mptt.php
procedural page Zebra_Mptt.php
top