public function LdapQuery::errorName in Lightweight Directory Access Protocol (LDAP) 7.2
Same name and namespace in other branches
- 8.2 ldap_query/LdapQuery.class.php \LdapQuery::errorName()
- 7 ldap_query/LdapQuery.class.php \LdapQuery::errorName()
Parameters
null $type:
Return value
string|null
File
- ldap_query/
LdapQuery.class.php, line 182 - Defines server classes and related functions.
Class
- LdapQuery
- LDAP Server Class.
Code
public function errorName($type = NULL) {
if ($type == 'ldap' && $this->connection) {
return "LDAP Error: " . ldap_error($this->connection);
}
elseif ($type == NULL) {
return $this->_errorName;
}
else {
return NULL;
}
}