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;
104 $query =
'INSERT INTO loc_tst_assignments (assignment_id, container_id, assignment_type, objective_id, tst_ref_id) '.
113 $ilDB->manipulate($query);
125 $query =
'UPDATE loc_tst_assignments '.
126 'SET container_id = '.$ilDB->quote($this->
getContainerId(),
'integer').
', '.
128 'objective_id = '.$ilDB->quote($this->
getObjectiveId(),
'integer').
', '.
129 'tst_ref_id = '.$ilDB->quote($this->
getTestRefId(),
'integer').
' '.
130 'WHERE assignment_id = '.$ilDB->quote($this->
getAssignmentId(),
'integer');
131 $ilDB->manipulate(
$query);
139 public function delete()
143 $query =
'DELETE FROM loc_tst_assignments '.
144 'WHERE assignment_id = '.$ilDB->quote($this->
getAssignmentId(),
'integer').
' ';
145 $ilDB->manipulate(
$query);
163 $query =
'SELECT * FROM loc_tst_assignments '.
164 'WHERE assignment_id = '.$ilDB->quote($this->
getAssignmentId(),
'integer').
' ';
183 include_once
'./Services/CopyWizard/classes/class.ilCopyWizardOptions.php';
185 $mappings =
$options->getMappings();
193 $copy->setContainerId($a_target_id);
195 $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.
if(!is_array($argv)) $options
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.