phpLDAPadmin
[ class tree: phpLDAPadmin ] [ index: phpLDAPadmin ] [ all elements ]

Class: Tree

Source Location: /lib/Tree.php

Class Overview




Author(s):

  • The phpLDAPadmin development team
  • Xavier Bruyet

    Abstract class which represents the LDAP tree view ; the draw() method must be implemented by subclasses

Methods


Child classes:


Class Details

[line 13]


Tags:

see:  HTMLTree PLMTree
author:  The phpLDAPadmin development team
author:  

Xavier Bruyet

Abstract class which represents the LDAP tree view ; the draw() method must be implemented by subclasses



[ Top ]


Class Methods


static method getInstance [line 29]

static void getInstance( $server_id)



Parameters:

   $server_id  

[ Top ]

constructor __construct [line 25]

Tree __construct( $server_id)



Parameters:

   $server_id  

[ Top ]

method addEntry [line 78]

void addEntry( $dn $dn)

Add an entry in the tree view ; the entry is added in the children array of its parent

The added entry is created using the factory class defined in $_SESSION[APPCONFIG]->custom->appearance['entry_factory']




Parameters:

$dn   $dn   the dn of the entry to create

[ Top ]

method delEntry [line 146]

void delEntry( $dn)

Delete an entry from the tree view ; the entry is deleted from the

children array of its parent




Parameters:

   $dn  

[ Top ]

method draw [line 204]

void draw( )

Displays the LDAP tree



Overridden in child classes as:

HTMLTree::draw()
Displays the tree in HTML

[ Top ]

method getEntry [line 186]

void getEntry( $dn)



Parameters:

   $dn  

[ Top ]

method getLdapServer [line 47]

void getLdapServer( )



[ Top ]

method indexDN [line 60]

void indexDN( $dn)

This function will take the DN, convert it to lowercase and strip unnessary commas. 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.




Parameters:

   $dn  

[ Top ]

method isMissed [line 195]

void isMissed( $dn)



Parameters:

   $dn  

[ Top ]

method renameEntry [line 162]

void renameEntry( $oldDn, $newDn)



Parameters:

   $oldDn  
   $newDn  

[ Top ]


Documentation generated on Sun, 30 Dec 2007 17:51:00 -0800 by phpDocumentor 1.3.1