Example #1
0
 public function getIdentityObject()
 {
     $fields = array('id', 'username', 'email_address', 'display_name');
     $stdObject = $this->getResultRowObject($fields);
     $identityObject = new User();
     $identityObject->setId($stdObject->id);
     $identityObject->setUsername($stdObject->username);
     $identityObject->setDomain('local');
     $identityObject->setEmailAddress($stdObject->email_address);
     $identityObject->setDisplayName($stdObject->display_name);
     return $identityObject;
 }