31 $this->assignment_id = $a_id;
41 $this->container_id = $a_id;
51 $this->assignment_type =
$a_type;
61 $this->objective_id = $a_id;
71 $this->test_ref_id = $a_id;
101 $query =
'INSERT INTO loc_tst_assignments (assignment_id, container_id, assignment_type, objective_id, tst_ref_id) ' .
110 $ilDB->manipulate($query);
121 $query =
'UPDATE loc_tst_assignments ' .
122 'SET container_id = ' . $ilDB->quote($this->
getContainerId(),
'integer') .
', ' .
123 'assignment_type = ' . $ilDB->quote($this->
getAssignmentType(),
'integer') .
', ' .
124 'objective_id = ' . $ilDB->quote($this->
getObjectiveId(),
'integer') .
', ' .
125 'tst_ref_id = ' . $ilDB->quote($this->
getTestRefId(),
'integer') .
' ' .
126 'WHERE assignment_id = ' . $ilDB->quote($this->
getAssignmentId(),
'integer');
127 $ilDB->manipulate(
$query);
135 public function delete()
139 $query =
'DELETE FROM loc_tst_assignments ' .
140 'WHERE assignment_id = ' . $ilDB->quote($this->
getAssignmentId(),
'integer') .
' ';
141 $ilDB->manipulate(
$query);
158 $query =
'SELECT * FROM loc_tst_assignments ' .
159 'WHERE assignment_id = ' . $ilDB->quote($this->
getAssignmentId(),
'integer') .
' ';
177 include_once
'./Services/CopyWizard/classes/class.ilCopyWizardOptions.php';
179 $mappings =
$options->getMappings();
181 if (!array_key_exists($this->
getTestRefId(), $mappings)) {
186 $copy->setContainerId($a_target_id);
188 $copy->setObjectiveId($a_objective_id);
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static _getInstance($a_copy_id)
Get instance of copy wizard options.
foreach($_POST as $key=> $value) $res
read()
Read db entry type $ilDB.
update()
Update assignment type $ilDB.
setAssignmentType($a_type)
create()
Create new aassignment type $ilDB.
__construct($a_id=0)
constructor
cloneSettings($a_copy_id, $a_target_id, $a_objective_id)
Clone assignments.
if(!isset($_REQUEST['ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options