29     protected \ilDBInterface 
$db;
    54             "SELECT * FROM exc_mandatory_random " .
    55             " WHERE usr_id  = %s " .
    57             array(
"integer", 
"integer"),
    58             array($user_id, $exc_id)
    61         while ($rec = $db->fetchAssoc($set)) {
    63                 $ass_ids[] = $rec[
"ass_id"];
    84             "DELETE FROM exc_mandatory_random  WHERE " .
    87             array(
"integer", 
"integer"),
    88             array($exc_id, $user_id)
    91         foreach ($ass_ids as $ass_id) {
    93                 $db->replace(
"exc_mandatory_random", array(        
    94                     "usr_id" => array(
"integer", $user_id),
    95                     "exc_id" => array(
"integer", $exc_id),
    96                     "ass_id" => array(
"integer", $ass_id)
 manipulateF(string $query, array $types, array $values)
 
Stores info about random assignments for users in exercises. 
 
getAssignmentsOfUser(int $user_id, int $exc_id)
Get mandatory assignments of user. 
 
saveAssignmentsOfUser(int $user_id, int $exc_id, array $ass_ids)
Save assignments of user. 
 
InternalDataService $data
 
Internal factory for data objects. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
queryF(string $query, array $types, array $values)
 
__construct(InternalDataService $data, \ilDBInterface $db)
 
static isInExercise(int $a_ass_id, int $a_ex_id)