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() |
\dn
string
DN to add
delEntry(\dn $dn)
inherited_from | \Tree::delEntry() |
---|---|
inherited_from | \HTMLTree::delEntry() |
\dn
DN to remote
draw(boolean $onlytree)
inherited_from | \HTMLTree::draw() |
---|
boolean
Only 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() |
array
Base DN entriesgetDepth()
inherited_from | \HTMLTree::getDepth() |
---|
getEntry(\dn $dn) : object
inherited_from | \Tree::getEntry() |
---|---|
inherited_from | \HTMLTree::getEntry() |
\dn
DN to retrieve
object
Tree DN objectgetInstance($server_id) : object
inherited_from | \Tree::getInstance() |
---|---|
inherited_from | \HTMLTree::getInstance() |
object
TreelistOpenItems() : array
array
List of open nodesreadChildren(\dn $dn, boolean $nolimit)
inherited_from | \Tree::readChildren() |
---|---|
inherited_from | \HTMLTree::readChildren() |
\dn
DN of the entry
boolean
LDAP Size Limit
renameEntry(\dn $dnOLD, \dn $dnNEW)
inherited_from | \Tree::renameEntry() |
---|---|
inherited_from | \HTMLTree::renameEntry() |
\dn
Old DN
\dn
New 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)
\dn
The Base DN to draw
string
a string of 0 and 1 ; $level == "000101" will draw " | |
boolean
is the first child entry, which is normally the "Create New Entry" option
boolean
is 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() |
object
Server Object for this treegetServerID() : int
inherited_from | \Tree::getServerID() |
---|---|
inherited_from | \HTMLTree::getServerID() |
int
Server ID that this tree is forget_formatted_dn($entry, $level)
inherited_from | \HTMLTree::get_formatted_dn() |
---|
get_indentation(\$code $code)
\$code
a 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() |
\dn
DN of the entry
boolean
LDAP 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() |
\dn
DN to clean
\dn
Lowercase 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 |