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
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,7 @@
*/
class UNL_Peoplefinder_Record
{
public $dn; // distinguished name
public $cn;
public $ou;
public $eduPersonAffiliation;
......@@ -25,6 +26,7 @@ class UNL_Peoplefinder_Record
public $telephoneNumber;
public $title;
public $uid;
public $unlHROrgUnitNumber;
public $unlHRPrimaryDepartment;
public $unlHRAddress;
public $unlSISClassLevel;
......@@ -173,18 +175,14 @@ class UNL_Peoplefinder_Record
return 'http://planetred.unl.edu/pg/icon/unl_'.str_replace('-', '_', $this->uid).'/'.$size.'/';
}
function __wakeup()
function getRoles()
{
foreach ($this as $var=>$val) {
if ($val instanceof UNL_LDAP_Entry_Attribute) {
$this->$var->__wakeup();
}
}
return new UNL_Peoplefinder_Person_Roles(array('dn'=>$this->dn));
}
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