public function SimpleLdapSchema::__get in Simple LDAP 7.2
Same name and namespace in other branches
- 7 SimpleLdapSchema.class.php \SimpleLdapSchema::__get()
Magic __get function.
Parameters
string $name: Name of the variable to get.
Return value
mixed Returns the value of the requested variable, if allowed.
File
- ./
SimpleLdapSchema.class.php, line 53 - Class to represent an LDAP server schema.
Class
- SimpleLdapSchema
- Simple LDAP Schema class.
Code
public function __get($name) {
switch ($name) {
case 'dn':
case 'attributes':
return $this->{$name};
case 'entry':
case 'subentry':
$this
->load();
return $this->schema;
}
}