templates/3rdParty/pla/lib/AJAXTree.php
Properties
Description
Classes and functions for the LDAP tree.
Classes
AJAXTree
Properties
No
No
Description
This class implements an AJAX based tree.
Methods
create_after_child,
create_before_child,
draw_children,
draw_create_new_entry,
draw_item,
draw_javascript,
get_indentation,
listOpenItems,
create_after_child(
$entry,
$level,
)
:
n/a
Description
Draw the "Create New Entry" item after the children.Arguments
| Name |
Type |
Description |
Default |
| $entry |
n/a |
|
|
| $level |
n/a |
|
|
Return value
create_before_child(
$entry,
$level,
)
:
n/a
Description
Draw the "Create New Entry" item before the children.Arguments
| Name |
Type |
Description |
Default |
| $entry |
n/a |
|
|
| $level |
n/a |
|
|
Return value
draw_children(
$parent_entry,
$code,
)
:
n/a
Description
Expand and draw a child entry, when it is clicked on. This is using AJAX just to render this section of the tree.Arguments
| Name |
Type |
Description |
Default |
| $parent_entry |
n/a |
|
|
| $code |
n/a |
|
|
Return value
draw_create_new_entry(
$entry,
$level,
$img,
)
:
n/a
Description
Draw the "Create New Entry" item.Arguments
| Name |
Type |
Description |
Default |
| $entry |
n/a |
|
|
| $level |
n/a |
|
|
| $img |
n/a |
|
|
Return value
draw_item(
$item,
string
$level,
boolean
$first_child
= true,
boolean
$last_child
= true,
)
:
n/a
Description
Draw a node of the treeArguments
| Name |
Type |
Description |
Default |
| $item |
n/a |
|
|
| $level |
string |
a string of 0 and 1 ; $level == "000101" will draw " | |"
|
|
| $first_child |
boolean |
is the first child entry, which is normally the "Create New Entry" option
|
true |
| $last_child |
boolean |
is the last child entry, which is normally the "Create New Entry" option
|
true |
Return value
draw_javascript(
)
:
n/a
Description
Draw the javascript to support the tree.Return value
get_indentation(
$code,
)
:
n/a
Description
Return the indentation before a nodeArguments
| Name |
Type |
Description |
Default |
| $code |
n/a |
a string of 0 and 1 ; $code == "000101" will return " | |"
|
|
Return value
listOpenItems(
)
:
array
Description
List the items in the tree that are openReturn value
| Type |
Description |
| array |
List of open nodes |