ILIAS  trunk Revision v13.0_alpha-62-g3b72d83f2e5
ilAssQuestionSkillAssignmentImportList Class Reference
+ Inheritance diagram for ilAssQuestionSkillAssignmentImportList:
+ Collaboration diagram for ilAssQuestionSkillAssignmentImportList:

Public Member Functions

 __construct ()
 
 addAssignment (ilAssQuestionSkillAssignmentImport $assignment)
 
 assignmentsExist ()
 
 current ()
 
 next ()
 
 key ()
 
 valid ()
 
 rewind ()
 

Protected Attributes

array $assignments
 

Detailed Description

Deprecated:
12: Use ILIAS\TestQuestionPool\ExportImport\Import\SkillAssignmentsImporter instead

Definition at line 24 of file class.ilAssQuestionSkillAssignmentImportList.php.

Constructor & Destructor Documentation

◆ __construct()

ilAssQuestionSkillAssignmentImportList::__construct ( )

Definition at line 29 of file class.ilAssQuestionSkillAssignmentImportList.php.

30 {
31 $this->assignments = [];
32 }

Member Function Documentation

◆ addAssignment()

ilAssQuestionSkillAssignmentImportList::addAssignment ( ilAssQuestionSkillAssignmentImport  $assignment)

Definition at line 34 of file class.ilAssQuestionSkillAssignmentImportList.php.

34 : void
35 {
36 $this->assignments[] = $assignment;
37 }

◆ assignmentsExist()

ilAssQuestionSkillAssignmentImportList::assignmentsExist ( )

Definition at line 39 of file class.ilAssQuestionSkillAssignmentImportList.php.

39 : bool
40 {
41 return count($this->assignments) > 0;
42 }

◆ current()

ilAssQuestionSkillAssignmentImportList::current ( )

Definition at line 44 of file class.ilAssQuestionSkillAssignmentImportList.php.

45 {
46 $current = current($this->assignments);
47 return $current !== false ? $current : null;
48 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

References current().

Referenced by current().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ key()

ilAssQuestionSkillAssignmentImportList::key ( )

Definition at line 55 of file class.ilAssQuestionSkillAssignmentImportList.php.

55 : ?int
56 {
57 return key($this->assignments);
58 }

References key().

Referenced by key(), and valid().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ next()

ilAssQuestionSkillAssignmentImportList::next ( )

Definition at line 50 of file class.ilAssQuestionSkillAssignmentImportList.php.

References next().

Referenced by next().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rewind()

ilAssQuestionSkillAssignmentImportList::rewind ( )

Definition at line 66 of file class.ilAssQuestionSkillAssignmentImportList.php.

66 : void
67 {
68 reset($this->assignments);
69 }

◆ valid()

ilAssQuestionSkillAssignmentImportList::valid ( )

Definition at line 60 of file class.ilAssQuestionSkillAssignmentImportList.php.

60 : bool
61 {
62 $res = key($this->assignments);
63 return $res !== null;
64 }
foreach($_POST as $key=> $value) $res

References $res, and key().

+ Here is the call graph for this function:

Field Documentation

◆ $assignments

array ilAssQuestionSkillAssignmentImportList::$assignments
protected

The documentation for this class was generated from the following file: