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