method readAll documentation in bbn\Appui\Notification
function(string $id_user = NULL, $moment = NULL)
{
if (!$id_user) {
$id_user = $this->user->getId();
}
if (bbn\Str::isUid($id_user)
&& ($unreads = $this->getUnreadIds($id_user))
) {
$todo = count($unreads);
$did = 0;
foreach ($unreads as $id){
$did += $this->db->update(
$this->class_table, [
$this->fields['read'] => $moment ? \round((float)$moment, 4) : bbn\X::microtime()
], [
$this->fields['id'] => $id
]
);
}
return $todo === $did;
}
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.
© 2011-2023
BBN Solutions