addEntry()
delEntry()
draw()
draw_children()
getBaseEntries()
getDepth()
getEntry()
getInstance()
listOpenItems()
readChildren()
renameEntry()
__construct()
draw_create_link()
draw_item()
draw_javascript()
draw_logged_in_user()
draw_login_link()
draw_menu()
draw_server_name()
getServer()
getServerID()
get_formatted_dn()
get_indentation()
get_logout_menu_item()
get_menu_item()
readChildrenNumber()
create_after_child()
create_before_child()
draw_create_new_entry()
indexDN()
$entries
$javascript
$server_id
This class implements an AJAX based tree.
| package | phpLDAPadmin |
|---|---|
| subpackage | Tree |
| see | \global\HTMLTree |
addEntry(\dn | string $dn)
| inherited_from | \Tree::addEntry() |
|---|---|
| inherited_from | \HTMLTree::addEntry() |
\dnstringDN to add
delEntry(\dn $dn)
| inherited_from | \Tree::delEntry() |
|---|---|
| inherited_from | \HTMLTree::delEntry() |
\dnDN to remote
draw(boolean $onlytree)
| inherited_from | \HTMLTree::draw() |
|---|
booleanOnly display the tree, or include the server name and menu items
draw_children($parent_entry, $code)
This is using AJAX just to render this section of the tree.
getBaseEntries() : array
| inherited_from | \Tree::getBaseEntries() |
|---|---|
| inherited_from | \HTMLTree::getBaseEntries() |
arrayBase DN entriesgetDepth()
| inherited_from | \HTMLTree::getDepth() |
|---|
getEntry(\dn $dn) : object
| inherited_from | \Tree::getEntry() |
|---|---|
| inherited_from | \HTMLTree::getEntry() |
\dnDN to retrieve
objectTree DN objectgetInstance($server_id) : object
| inherited_from | \Tree::getInstance() |
|---|---|
| inherited_from | \HTMLTree::getInstance() |
objectTreelistOpenItems() : array
arrayList of open nodesreadChildren(\dn $dn, boolean $nolimit)
| inherited_from | \Tree::readChildren() |
|---|---|
| inherited_from | \HTMLTree::readChildren() |
\dnDN of the entry
booleanLDAP Size Limit
renameEntry(\dn $dnOLD, \dn $dnNEW)
| inherited_from | \Tree::renameEntry() |
|---|---|
| inherited_from | \HTMLTree::renameEntry() |
\dnOld DN
\dnNew DN
__construct($server_id)
| inherited_from | \Tree::__construct() |
|---|---|
| inherited_from | \HTMLTree::__construct() |
draw_create_link(\dn $rdn, int $level, \dn $encoded_dn)
| inherited_from | \HTMLTree::draw_create_link() |
|---|
\dn
int
\dn
draw_item(\dn $item, string $level, boolean $first_child, boolean $last_child)
\dnThe Base DN to draw
stringa string of 0 and 1 ; $level == "000101" will draw " | |
booleanis the first child entry, which is normally the "Create New Entry" option
booleanis the last child entry, which is normally the "Create New Entry" option
draw_javascript()
draw_logged_in_user()
| inherited_from | \HTMLTree::draw_logged_in_user() |
|---|
draw_login_link()
| inherited_from | \HTMLTree::draw_login_link() |
|---|
draw_server_name()
| inherited_from | \HTMLTree::draw_server_name() |
|---|
getServer() : object
| inherited_from | \Tree::getServer() |
|---|---|
| inherited_from | \HTMLTree::getServer() |
objectServer Object for this treegetServerID() : int
| inherited_from | \Tree::getServerID() |
|---|---|
| inherited_from | \HTMLTree::getServerID() |
intServer ID that this tree is forget_formatted_dn($entry, $level)
| inherited_from | \HTMLTree::get_formatted_dn() |
|---|
get_indentation(\$code $code)
\$codea string of 0 and 1 ; $code == "000101" will return " | |"
readChildrenNumber(\dn $dn, boolean $nolimit)
Optionally autoread the child entry.
| inherited_from | \Tree::readChildrenNumber() |
|---|---|
| inherited_from | \HTMLTree::readChildrenNumber() |
\dnDN of the entry
booleanLDAP Size Limit
create_after_child($entry, $level)
create_before_child($entry, $level)
draw_create_new_entry($entry, $level, $img)
indexDN(\dn $dn) : \dn
This result will be used as the index for the tree object. Any display of a DN should use the object->dn entry, not the index. The reason we need to do this is because: uid=User A,ou=People,c=AU and uid=User B, ou=PeOpLe, c=au are infact in the same branch, but PLA will show them inconsistently.
| inherited_from | \Tree::indexDN() |
|---|---|
| inherited_from | \HTMLTree::indexDN() |
\dnDN to clean
\dnLowercase clean DN$entries
| inherited_from | \Tree::$$entries |
|---|---|
| inherited_from | \HTMLTree::$$entries |
$javascript
| inherited_from | \HTMLTree::$$javascript |
|---|
$server_id
| inherited_from | \Tree::$$server_id |
|---|---|
| inherited_from | \HTMLTree::$$server_id |