Exemplo n.º 1
0
 /**
  * Add a member of staff onto a team by modulecode.
  *
  * @param integer $tmp_userID UserID of the member of staff
  * @param string $module_code the name of the team (module)
  * @param object $db mysqli database connection
  *
  */
 static function add_staff_to_module_by_modulecode($tmp_userID, $module_code, $db)
 {
     if (!UserUtils::has_user_role($tmp_userID, 'Staff', $db)) {
         return;
     }
     $idMod = module_utils::get_idMod($module_code, $db);
     if ($idMod !== false) {
         self::add_staff_to_module($tmp_userID, $idMod, $db);
     }
 }