method read documentation in bbn\Appui\Notification

function($id, string $id_user = NULL, $moment = NULL) { if (!$id_user) { $id_user = $this->user->getId(); } if (bbn\Str::isUid($id_user)) { if (\is_array($id)) { $todo = count($id); $did = 0; foreach ($id as $i) { if ($this->read($i, $id_user, $moment)) { $did++; } } return $todo === $did; } elseif (bbn\Str::isUid($id) && !$this->db->selectOne($this->class_table, $this->fields['read'], [$this->fields['id'] => $id]) ) { return (bool)$this->db->update( $this->class_table, [ $this->fields['read'] => $moment ? \round((float)$moment, 4) : bbn\X::microtime() ], [ $this->fields['id'] => $id ] ); } } return false; }

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.