method getChats documentation in bbn\Appui\Chat

function(float $entrance = NULL) { if ($this->check()) { $where = [ 'conditions' => [[ 'field' => 'bbn_chats_users.id_user', 'value' => $this->user->getId() ], [ 'field' => 'bbn_chats_users.active', 'value' => 1 ]] ]; if (\is_float($entrance)) { $where['conditions'][] = [ 'field' => 'bbn_chats_users.entrance', 'operator' => '<=', 'value' => $entrance ]; } return $this->db->getFieldValues( [ 'table' => 'bbn_chats_users', 'fields' => ['id_chat'], 'join' => [[ 'table' => 'bbn_chats', 'on' => [ 'conditions' => [[ 'field' => 'bbn_chats_users.id_chat', 'exp' => 'bbn_chats.id' ]] ] ]], 'where' => $where, 'order' => [[ 'field' => 'bbn_chats.last_message', 'dir' => 'DESC' ]] ] ); } }

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.