method startTrack documentation in bbn\Appui\Task
function($id_task, $id_user = false)
{
!$this->getActiveTrack($id_user) &&
($ongoing = $this->idState('ongoing')) &&
($ongoing === $this->getState($id_task)) &&
($role = $this->hasRole($id_task, $id_user ?: $this->id_user)) &&
(($role === 'managers') || ($role === 'workers'))
){
return $this->db->insert('bbn_tasks_sessions', [
'id_task' => $id_task,
'id_user' => $id_user ?: $this->id_user,
'start' => date('Y-m-d H:i:s')
]);
}
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