method addRole documentation in bbn\Appui\Task

function($id_task, $role, $id_user = NULL) { if ( !bbn\Str::isUid($role) ){ /*if ( substr($role, -1) !== 's' ){ $role .= 's'; }*/ $role = $this->idRole($role); } if ( bbn\Str::isUid($role) && ($id_user || $this->id_user) ){ if ( $this->db->insert('bbn_tasks_roles', [ 'id_task' => $id_task, 'id_user' => $id_user ?: $this->id_user, 'role' => $role ]) ){ $this->addLog($id_task, 'role_insert', [$id_user ?: $this->id_user, $role]); return 1; } } } return 0; }

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.