Example #1
0
 public function users_not_in()
 {
     $users = array();
     foreach ($this->users()->get(array('user_id')) as $user) {
         $users[] = $user->id;
     }
     return User::where_not_in('id', $users)->where('deleted', '=', 0)->get();
 }
Example #2
0
 function admin_check_display()
 {
     $user = new User();
     $user->where_not_in('display', user()->display);
     $user->where('display', $_GET['display']);
     $user->get();
     echo $user->exists() ? "false" : "true";
 }