/**
 * Get a user by email id
 *
 * @param $guid 'guid' of user
 *
 * @return object
 */
function ossn_user_by_email($email)
{
    $user = new OssnUser();
    $user->email = $email;
    return $user->getUser();
}
Exemplo n.º 2
0
 /**
  * Search site users with its entities
  *
  * @return boolean
  */
 public function searchUsers($q, $limit = '')
 {
     $search = $this->SearchSiteUsers($q, $limit);
     if (!$search) {
         return false;
     }
     $users = new OssnUser();
     foreach ($search as $user) {
         $users->guid = $user->guid;
         $userentity[] = $users->getUser();
     }
     $data = $userentity;
     return $data;
 }