method fullOnlineList documentation in bbn\User\Users

function(int $minutes = 2) { $res = []; if ( $users = $this->db->getRows(" SELECT bbn_users.* FROM bbn_users JOIN bbn_users_sessions ON id_user = bbn_users.id AND opened = 1 AND last_activity > (NOW() - INTERVAL $minutes MINUTE) GROUP BY bbn_users.id") ){ foreach ( $users as $user ){ $res[] = [ 'id' => $user['id'], 'name' => $user['nom'] ]; } } return $res; }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.