Skip to content
Snippets Groups Projects
Commit ae200756 authored by Brett Bieber's avatar Brett Bieber
Browse files

But wakeup doesn't exist any more! Fix call to undefined function.

parent 72a14e3c
Branches
Tags
No related merge requests found
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
*/ */
class UNL_Peoplefinder_Record class UNL_Peoplefinder_Record
{ {
public $dn; // distinguished name
public $cn; public $cn;
public $ou; public $ou;
public $eduPersonAffiliation; public $eduPersonAffiliation;
...@@ -25,6 +26,7 @@ class UNL_Peoplefinder_Record ...@@ -25,6 +26,7 @@ class UNL_Peoplefinder_Record
public $telephoneNumber; public $telephoneNumber;
public $title; public $title;
public $uid; public $uid;
public $unlHROrgUnitNumber;
public $unlHRPrimaryDepartment; public $unlHRPrimaryDepartment;
public $unlHRAddress; public $unlHRAddress;
public $unlSISClassLevel; public $unlSISClassLevel;
...@@ -173,18 +175,14 @@ class UNL_Peoplefinder_Record ...@@ -173,18 +175,14 @@ class UNL_Peoplefinder_Record
return 'http://planetred.unl.edu/pg/icon/unl_'.str_replace('-', '_', $this->uid).'/'.$size.'/'; return 'http://planetred.unl.edu/pg/icon/unl_'.str_replace('-', '_', $this->uid).'/'.$size.'/';
} }
function __wakeup() function getRoles()
{ {
foreach ($this as $var=>$val) { return new UNL_Peoplefinder_Person_Roles(array('dn'=>$this->dn));
if ($val instanceof UNL_LDAP_Entry_Attribute) {
$this->$var->__wakeup();
}
}
} }
function __toString() function __toString()
{ {
return $this->uid; return (string)$this->uid;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment