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

Ldap::isAllowed ( ocname,
allowed 
)

Gets some properties of object class, never used

Parameters:
string the name of the obj. class
string ????
Returns:
boolean the property private
Todo:
FIXME!!!!

Definition at line 250 of file ldap.php3.

References count(), isObjectClass(), and readConfiguration().

      {
            $ocname = strtolower($ocname);
            $allowed = strtolower($allowed);

            if (count($this->objectClasses) == 0)
                  $this->readConfiguration();

            if (! $this->isObjectClass($ocname))
                  return(0);

            for ($ctr = 0; $ctr < count($this->objectClasses[$ocname]["allows"]);
                              $ctr++)
                  if (strcasecmp($this->objectClasses[$ocname]["allows"][$ctr],
                              $allowed) == 0)
                        return(1);

            return(0);
      }


Generated by  Doxygen 1.6.0   Back to index