thekid/rfc — Issue #60: RFC 0060: LDAPEntry::isA()
Author: thekid
Created: 2011-10-09 14:42:51+00:00
State: open

Scope of Change
====
A means to check whether an LDAPEntry object is an instance of a given
objectClass will be added.

Rationale
====
Easier access to the objectClass attribute.

Functionality
====
Current
----

```php
getAttribute('objectclass'))) {
// ...
}
?>
```

Proposed
----

```php
isA('OpenLDAPperson')) {
// ...
}
?>
```

Security considerations
====
n/a

Speed impact
====
- One new method in peer.ldap.LDAPEntry

Dependencies
====
n/a

Related documents
====
- http://xp-framework.net/rfc/contrib/rfc0060.diff
Patch implementing this RFC

- http://xp-framework.net/rfc/contrib/rfc0060-unittests.diff
Unittests patch for new functionality

Comments
====
- friebe, Fri Jun 23 16:22:18 CEST 2006
Is isA() a good name?

- friebe, Sun Jun 25 17:58:41 2006
How about instanceOf()? Or would this be just another reason keeping
us from migrating to PHP5 (keywords can't be method names...)?

- friebe, Sat May 26 13:26:07 2007
Updated patch to PHP5. Using isA()...