ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAssQuestionSkillAssignmentImportList.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'Modules/TestQuestionPool/classes/questions/class.ilAssQuestionSkillAssignmentImport.php';
5
13{
17 protected $assignments;
18
22 public function __construct()
23 {
24 $this->assignments = array();
25 }
26
31 {
32 $this->assignments[] = $assignment;
33 }
34
35 public function assignmentsExist()
36 {
37 return count($this->assignments) > 0;
38 }
39
43 public function current()
44 {
45 return current($this->assignments);
46 }
47
51 public function next()
52 {
53 return next($this->assignments);
54 }
55
59 public function key()
60 {
61 $res = key($this->assignments);
62 return $res;
63 }
64
68 public function valid()
69 {
70 $res = key($this->assignments);
71 return $res !== null;
72 }
73
77 public function rewind()
78 {
79 return reset($this->assignments);
80 }
81
82 public function sleep()
83 {
84 // TODO: Implement __sleep() method.
85 }
86
87 public function wakeup()
88 {
89 // TODO: Implement __wakeup() method.
90 }
91}
An exception for terminatinating execution or to throw for unit testing.
addAssignment(ilAssQuestionSkillAssignmentImport $assignment)
__construct()
ilAssQuestionSkillAssignmentImportList constructor.
foreach($_POST as $key=> $value) $res