ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilTestSkillLevelThresholdImportFails Class Reference
+ Collaboration diagram for ilTestSkillLevelThresholdImportFails:

Public Member Functions

 __construct ($parentObjId)
 ilTestSkillLevelThresholdImportFails constructor. More...
 
 getFailedImports ()
 
 registerFailedImports (ilAssQuestionAssignedSkillList $skillList)
 
 deleteRegisteredImportFails ()
 
 failedImportsRegistered ()
 
 getFailedImportsMessage (ilLanguage $lng)
 

Protected Member Functions

 getSettings ()
 
 getParentObjId ()
 
 buildSettingsKey ()
 

Protected Attributes

 $settings
 
 $parentObjId
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilTestSkillLevelThresholdImportFails::__construct (   $parentObjId)

ilTestSkillLevelThresholdImportFails constructor.

Parameters
$parentObjId

Definition at line 43 of file class.ilTestSkillLevelThresholdImportFails.php.

References $parentObjId.

Member Function Documentation

◆ buildSettingsKey()

ilTestSkillLevelThresholdImportFails::buildSettingsKey ( )
protected
Returns
string

Definition at line 71 of file class.ilTestSkillLevelThresholdImportFails.php.

References getParentObjId().

Referenced by deleteRegisteredImportFails(), getFailedImports(), and registerFailedImports().

71  : string
72  {
73  return 'failed_imp_slt_parentobj_' . $this->getParentObjId();
74  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ deleteRegisteredImportFails()

ilTestSkillLevelThresholdImportFails::deleteRegisteredImportFails ( )

◆ failedImportsRegistered()

ilTestSkillLevelThresholdImportFails::failedImportsRegistered ( )
Returns
bool

Definition at line 108 of file class.ilTestSkillLevelThresholdImportFails.php.

References getFailedImports(), and null.

108  : bool
109  {
110  return $this->getFailedImports() !== null;
111  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

◆ getFailedImports()

ilTestSkillLevelThresholdImportFails::getFailedImports ( )
Returns
ilAssQuestionAssignedSkillList|null

Definition at line 79 of file class.ilTestSkillLevelThresholdImportFails.php.

References buildSettingsKey(), getSettings(), and null.

Referenced by failedImportsRegistered(), and getFailedImportsMessage().

80  {
81  $value = $this->getSettings()->get($this->buildSettingsKey(), null);
82 
83  if ($value !== null) {
84  return unserialize($value);
85  }
86 
87  return null;
88  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFailedImportsMessage()

ilTestSkillLevelThresholdImportFails::getFailedImportsMessage ( ilLanguage  $lng)
Parameters
ilLanguage$lng
Returns
string

Definition at line 117 of file class.ilTestSkillLevelThresholdImportFails.php.

References ilSkillTreeNode\_lookupTitle(), getFailedImports(), and ilLanguage\txt().

Referenced by ilTestInfoScreenToolbarGUI\build().

117  : string
118  {
119  $msg = $lng->txt('tst_failed_imp_skl_thresholds');
120 
121  $msg .= '<ul>';
122  foreach ($this->getFailedImports() as $skill_key) {
123  [$skill_base_id, $skill_tref_id] = explode(':', $skill_key);
124  $skill_title = ilBasicSkill::_lookupTitle((int) $skill_base_id, (int) $skill_tref_id);
125 
126  $msg .= '<li>' . $skill_title . '</li>';
127  }
128  $msg .= '</ul>';
129 
130  return $msg;
131  }
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
static _lookupTitle(int $a_obj_id, int $a_tref_id=0)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getParentObjId()

ilTestSkillLevelThresholdImportFails::getParentObjId ( )
protected
Returns
int

Definition at line 63 of file class.ilTestSkillLevelThresholdImportFails.php.

References $parentObjId.

Referenced by buildSettingsKey().

+ Here is the caller graph for this function:

◆ getSettings()

ilTestSkillLevelThresholdImportFails::getSettings ( )
protected
Returns
ilSetting

Definition at line 51 of file class.ilTestSkillLevelThresholdImportFails.php.

References $settings, null, and ILIAS\Repository\settings().

Referenced by deleteRegisteredImportFails(), getFailedImports(), and registerFailedImports().

51  : ilSetting
52  {
53  if ($this->settings === null) {
54  $this->settings = new ilSetting('assimportfails');
55  }
56 
57  return $this->settings;
58  }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ registerFailedImports()

ilTestSkillLevelThresholdImportFails::registerFailedImports ( ilAssQuestionAssignedSkillList  $skillList)
Parameters
ilAssQuestionAssignedSkillList$skillList

Definition at line 93 of file class.ilTestSkillLevelThresholdImportFails.php.

References buildSettingsKey(), and getSettings().

Referenced by ilTestImporter\importSkillLevelThresholds().

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

Field Documentation

◆ $parentObjId

ilTestSkillLevelThresholdImportFails::$parentObjId
protected

Definition at line 37 of file class.ilTestSkillLevelThresholdImportFails.php.

Referenced by __construct(), and getParentObjId().

◆ $settings

ilTestSkillLevelThresholdImportFails::$settings
protected

Definition at line 32 of file class.ilTestSkillLevelThresholdImportFails.php.

Referenced by getSettings().


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