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 ' .
 
  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 ' .
 
  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);
 
if(!isset( $_REQUEST[ 'ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
An exception for terminatinating execution or to throw for unit testing.
static _getInstance($a_copy_id)
Get instance of copy wizard options.
read()
Read db entry @global type $ilDB.
setAssignmentType($a_type)
update()
Update assignment @global type $ilDB.
cloneSettings($a_copy_id, $a_target_id, $a_objective_id)
Clone assignments.
create()
Create new aassignment @global type $ilDB.
__construct($a_id=0)
constructor
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
foreach($_POST as $key=> $value) $res