Logo Search packages:      
Sourcecode: dacode version File versions  Download package

Ldap::getParentDir ( basedn = ""  ) 

Returns the name of the parent level in LDAP hierarchy.

Parameters:
string dn to compute parent.
Returns:
string public

Definition at line 403 of file ldap.php3.

Referenced by cd().

      {
            if (!$basedn)
                  $basedn = $this->basedn;
            if ($this->basedn == LDAP_BASEDN)
                  return("");
            return(ereg_replace("[^,]*[,]*[ ]*(.*)", "\\1", $basedn));
      }


Generated by  Doxygen 1.6.0   Back to index