mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-23 02:19:07 +01:00
LSldapObject: specify object type filter on loading data
This commit is contained in:
parent
f7c4050b70
commit
510f3d4bdc
1 changed files with 2 additions and 2 deletions
|
@ -92,8 +92,8 @@ class LSldapObject extends LSlog_staticLoggerClass {
|
|||
*/
|
||||
public function loadData($dn) {
|
||||
$this -> dn = $dn;
|
||||
$data = LSldap :: getAttrs($dn);
|
||||
if(!empty($data)) {
|
||||
$data = LSldap :: getAttrs($dn, $this -> getObjectFilter());
|
||||
if(is_array($data) && !empty($data)) {
|
||||
foreach($this -> attrs as $attr_name => $attr) {
|
||||
if( !$this -> attrs[$attr_name] -> loadData( (isset($data[$attr_name])?$data[$attr_name]:NULL) ) )
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue