ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilLOEditorStatus Class Reference

Presentation of the status of single steps during the configuration process. More...

+ Collaboration diagram for ilLOEditorStatus:

Public Member Functions

 __construct (ilObject $a_parent)
 Constructor. More...
 
 getObjectives ()
 
 getAssignments ()
 
 setSection ($a_section)
 Set current section. More...
 
 getSection ()
 
 getFailures ($a_section)
 Get failures by section. More...
 
 setCmdClass ($a_cmd_class)
 Command class. More...
 
 getCmdClass ()
 Get cmd class. More...
 
 getParentObject ()
 Get parent object. More...
 
 getSettings ()
 
 getFirstFailedStep ()
 Get first failed step. More...
 
 getHTML ()
 Get html. More...
 
 getErrorMessages ($a_section)
 Get error messages. More...
 

Static Public Member Functions

static getInstance (ilObject $a_parent)
 Get instance. More...
 

Data Fields

const SECTION_SETTINGS = 1
 
const SECTION_MATERIALS = 2
 
const SECTION_ITES = 3
 
const SECTION_QTEST = 4
 
const SECTION_OBJECTIVES = 5
 
const SECTION_OBJECTIVES_NEW = 6
 

Protected Member Functions

 appendFailure ($a_section, $a_failure_msg_key)
 Append failure. More...
 
 getSettingsStatus ()
 Check if course is lo confgured. More...
 
 getObjectivesAvailableStatus ($a_set_errors=false)
 
 getMaterialsStatus ($a_set_errors=true)
 Get status of materials. More...
 
 getInitialTestStatus ($a_set_errors=true)
 Get initial test status. More...
 
 getQualifiedTestStatus ($a_set_errors=true)
 Check status of qualified test. More...
 
 lookupQuestionsAssigned ($a_test_ref_id)
 Check if questions are assigned. More...
 
 getObjectivesStatus ($a_set_errors=true)
 
 getStartStatus ()
 
 checkNumberOfTries ()
 
 checkTestOnline ($a_ref_id)
 Check if test is online. More...
 

Protected Attributes

 $section = null
 
 $failures_by_section = array()
 
 $objectives = array()
 
 $settings = null
 
 $assignments = null
 
 $parent_obj = null
 
 $cmd_class = null
 
 $html = ''
 
 $tpl = null
 
 $ctrl = null
 
 $lng = null
 

Static Protected Attributes

static $instance = null
 

Detailed Description

Presentation of the status of single steps during the configuration process.

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 12 of file class.ilLOEditorStatus.php.

Constructor & Destructor Documentation

◆ __construct()

ilLOEditorStatus::__construct ( ilObject  $a_parent)

Constructor.

Parameters
ilObject

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

45 {
46 $this->parent_obj = $a_parent;
48 $this->assignments = ilLOTestAssignments::getInstance($this->getParentObject()->getId());
49
50 $this->ctrl = $GLOBALS['DIC']['ilCtrl'];
51 $this->lng = $GLOBALS['DIC']['lng'];
52
53 include_once './Modules/Course/classes/class.ilCourseObjective.php';
54 $this->objectives = ilCourseObjective::_getObjectiveIds($this->getParentObject()->getId());
55 }
static _getObjectiveIds($course_id, $a_activated_only=false)
getParentObject()
Get parent object.
static getInstanceByObjId($a_obj_id)
get singleton instance
static getInstance($a_container_id)
Get instance by container id.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
settings()
Definition: settings.php:2

References $GLOBALS, ilCourseObjective\_getObjectiveIds(), ilLOTestAssignments\getInstance(), ilLOSettings\getInstanceByObjId(), getParentObject(), and settings().

+ Here is the call graph for this function:

Member Function Documentation

◆ appendFailure()

ilLOEditorStatus::appendFailure (   $a_section,
  $a_failure_msg_key 
)
protected

Append failure.

Parameters
type$a_section
type$a_failure_msg_key

Definition at line 115 of file class.ilLOEditorStatus.php.

116 {
117 $this->failures_by_section[$a_section][] = $a_failure_msg_key;
118 }

Referenced by getInitialTestStatus(), getMaterialsStatus(), getObjectivesAvailableStatus(), getObjectivesStatus(), and getQualifiedTestStatus().

+ Here is the caller graph for this function:

◆ checkNumberOfTries()

ilLOEditorStatus::checkNumberOfTries ( )
protected

Definition at line 557 of file class.ilLOEditorStatus.php.

558 {
559 $qt = $this->getSettings()->getQualifiedTest();
560 if (!$qt) {
561 return true;
562 }
563
564 include_once './Services/Object/classes/class.ilObjectFactory.php';
566 $tst = $factory->getInstanceByRefId($qt, false);
567
568 if (!$tst instanceof ilObjTest) {
569 return true;
570 }
571 $tries = $tst->getNrOfTries();
572 if (!$tries) {
573 return true;
574 }
575
576 $obj_tries = 0;
577 foreach ($this->getObjectives() as $objective) {
578 include_once './Modules/Course/classes/class.ilCourseObjective.php';
579 $obj_tries += ilCourseObjective::lookupMaxPasses($objective);
580 }
581 $GLOBALS['DIC']['ilLog']->write(__METHOD__ . ': ' . $obj_tries);
582 return $obj_tries <= $tries;
583 }
$factory
Definition: metadata.php:43
static lookupMaxPasses($a_objective_id)
Class ilObjectFactory.

References $factory, $GLOBALS, getObjectives(), getSettings(), and ilCourseObjective\lookupMaxPasses().

+ Here is the call graph for this function:

◆ checkTestOnline()

ilLOEditorStatus::checkTestOnline (   $a_ref_id)
protected

Check if test is online.

Parameters
int$a_ref_id

Definition at line 589 of file class.ilLOEditorStatus.php.

590 {
591 include_once './Modules/Test/classes/class.ilObjTestAccess.php';
593 }
static _isOffline($a_obj_id)
returns the objects's OFFline status
static _lookupObjId($a_id)

References ilObjTestAccess\_isOffline(), and ilObject\_lookupObjId().

Referenced by getInitialTestStatus(), and getQualifiedTestStatus().

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

◆ getAssignments()

ilLOEditorStatus::getAssignments ( )
Returns
ilLOTestAssignments

Definition at line 81 of file class.ilLOEditorStatus.php.

References $assignments.

Referenced by getInitialTestStatus(), and getQualifiedTestStatus().

+ Here is the caller graph for this function:

◆ getCmdClass()

ilLOEditorStatus::getCmdClass ( )

Get cmd class.

Returns
type

Definition at line 133 of file class.ilLOEditorStatus.php.

134 {
135 return $this->cmd_class;
136 }

References $cmd_class.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getErrorMessages()

ilLOEditorStatus::getErrorMessages (   $a_section)

Get error messages.

Parameters

return

Definition at line 319 of file class.ilLOEditorStatus.php.

320 {
321 $mess = array();
322 foreach ($this->getFailures($a_section) as $failure_code) {
323 $mess[] = $this->lng->txt($failure_code);
324 }
325 return $mess;
326 }
getFailures($a_section)
Get failures by section.

References getFailures().

+ Here is the call graph for this function:

◆ getFailures()

ilLOEditorStatus::getFailures (   $a_section)

Get failures by section.

Parameters
type$a_section

Definition at line 105 of file class.ilLOEditorStatus.php.

106 {
107 return (array) $this->failures_by_section[$a_section];
108 }

Referenced by getErrorMessages().

+ Here is the caller graph for this function:

◆ getFirstFailedStep()

ilLOEditorStatus::getFirstFailedStep ( )

Get first failed step.

Definition at line 159 of file class.ilLOEditorStatus.php.

160 {
161 if (!$this->getSettingsStatus(false)) {
162 return 'settings';
163 }
164 #if(!$this->getMaterialsStatus(false))
165 #{
166 # return 'materials';
167 #}
168 if (!$this->getObjectivesAvailableStatus()) {
169 return 'showObjectiveCreation';
170 }
171 if ($this->getSettings()->worksWithInitialTest()) {
172 if (!$this->getInitialTestStatus(false)) {
173 $_REQUEST['tt'] = ilLOSettings::TYPE_TEST_INITIAL;
174 if ($this->getSettings()->hasSeparateInitialTests()) {
175 return 'testsOverview';
176 } else {
177 return 'testOverview';
178 }
179 }
180 }
181 if (!$this->getQualifiedTestStatus(false)) {
182 $_REQUEST['tt'] = ilLOSettings::TYPE_TEST_QUALIFIED;
183 if ($this->getSettings()->hasSeparateQualifiedTests()) {
184 return 'testsOverview';
185 } else {
186 return 'testOverview';
187 }
188 }
189 if (!$this->getObjectivesStatus(false)) {
190 return 'listObjectives';
191 }
192 return 'listObjectives';
193 }
getSettingsStatus()
Check if course is lo confgured.
getInitialTestStatus($a_set_errors=true)
Get initial test status.
getQualifiedTestStatus($a_set_errors=true)
Check status of qualified test.
getObjectivesAvailableStatus($a_set_errors=false)
getObjectivesStatus($a_set_errors=true)

References getInitialTestStatus(), getObjectivesAvailableStatus(), getObjectivesStatus(), getQualifiedTestStatus(), getSettings(), getSettingsStatus(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.

+ Here is the call graph for this function:

◆ getHTML()

ilLOEditorStatus::getHTML ( )

Get html.

Definition at line 199 of file class.ilLOEditorStatus.php.

200 {
201 include_once("./Services/UIComponent/Checklist/classes/class.ilChecklistGUI.php");
202 $list = new ilChecklistGUI();
203 $list->setHeading($this->lng->txt('crs_objective_status_configure'));
204
205
206 // Step 1
207 // course settings
208 $done = $this->getSettingsStatus();
209
210 $list->addEntry(
211 $this->lng->txt('crs_objective_status_settings'),
212 $this->ctrl->getLinkTarget($this->getCmdClass(), 'settings'),
213 $done
216 ($this->section == self::SECTION_SETTINGS),
217 $this->getErrorMessages(self::SECTION_SETTINGS)
218 );
219
220
221 // Step 1.1
222 $done = $this->getObjectivesAvailableStatus(true);
223
224 $list->addEntry(
225 $this->lng->txt('crs_objective_status_objective_creation'),
226 $done
227 ? $this->ctrl->getLinkTarget($this->getCmdClass(), 'listObjectives')
228 : $this->ctrl->getLinkTarget($this->getCmdClass(), 'showObjectiveCreation'),
229 $done
232 ($this->section == self::SECTION_OBJECTIVES_NEW),
233 $this->getErrorMessages(self::SECTION_OBJECTIVES_NEW)
234 );
235
236 // Step 2
237 // course material
238 $done = $this->getMaterialsStatus(true);
239
240 $this->ctrl->setParameterByClass('ilobjcoursegui', 'cmd', 'enableAdministrationPanel');
241 $list->addEntry(
242 $this->lng->txt('crs_objective_status_materials'),
243 $this->ctrl->getLinkTargetByClass('ilobjcoursegui', ''),
244 $done
247 ($this->section == self::SECTION_MATERIALS),
248 $this->getErrorMessages(self::SECTION_MATERIALS)
249 );
250
251
252 // Step 3
253 // course itest
254 if (ilLOSettings::getInstanceByObjId($this->getParentObject()->getId())->worksWithInitialTest()) {
255 $done = $this->getInitialTestStatus();
256
257 $command = $this->getSettings()->hasSeparateInitialTests() ?
258 'testsOverview' :
259 'testOverview';
260
261 $this->ctrl->setParameter($this->getCmdClass(), 'tt', ilLOSettings::TYPE_TEST_INITIAL);
262 $list->addEntry(
263 $this->lng->txt('crs_objective_status_itest'),
264 $this->ctrl->getLinkTarget($this->getCmdClass(), $command),
265 $done
268 ($this->section == self::SECTION_ITES),
269 $this->getErrorMessages(self::SECTION_ITES)
270 );
271 }
272
273 // Step 4
274 // course qtest
275 $done = $this->getQualifiedTestStatus();
276
277 $command = $this->getSettings()->hasSeparateQualifiedTests() ?
278 'testsOverview' :
279 'testOverview';
280
281 $this->ctrl->setParameter($this->getCmdClass(), 'tt', ilLOSettings::TYPE_TEST_QUALIFIED);
282 $list->addEntry(
283 $this->lng->txt('crs_objective_status_qtest'),
284 $this->ctrl->getLinkTarget($this->getCmdClass(), $command),
285 $done
288 ($this->section == self::SECTION_QTEST),
289 $this->getErrorMessages(self::SECTION_QTEST)
290 );
291
292 $this->ctrl->setParameter($this->getCmdClass(), 'tt', $_GET["tt"]);
293
294 // Step 5
295 // course qtest
296 $done = $this->getObjectivesStatus();
297
298 $list->addEntry(
299 $this->lng->txt('crs_objective_status_objectives'),
300 $this->ctrl->getLinkTarget($this->getCmdClass(), 'listObjectives'),
301 $done
304 ($this->section == self::SECTION_OBJECTIVES),
305 $this->getErrorMessages(self::SECTION_OBJECTIVES)
306 );
307
308 return $list->getHTML();
309 }
$_GET["client_id"]
getMaterialsStatus($a_set_errors=true)
Get status of materials.
getCmdClass()
Get cmd class.
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41

References $_GET, $list, getCmdClass(), getInitialTestStatus(), ilLOSettings\getInstanceByObjId(), getMaterialsStatus(), getObjectivesAvailableStatus(), getObjectivesStatus(), getParentObject(), getQualifiedTestStatus(), getSettings(), getSettingsStatus(), ilChecklistGUI\STATUS_NOT_OK, ilChecklistGUI\STATUS_OK, ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.

+ Here is the call graph for this function:

◆ getInitialTestStatus()

ilLOEditorStatus::getInitialTestStatus (   $a_set_errors = true)
protected

Get initial test status.

Parameters
type$a_set_errors
Returns
boolean

Definition at line 384 of file class.ilLOEditorStatus.php.

385 {
386 if ($this->getSettings()->hasSeparateInitialTests()) {
387 foreach ($this->getObjectives() as $objective_id) {
388 $tst_ref = $this->getAssignments()->getTestByObjective($objective_id, ilLOSettings::TYPE_TEST_INITIAL);
389 if (!$GLOBALS['DIC']['tree']->isInTree($tst_ref)) {
390 if ($a_set_errors) {
391 $this->appendFailure(self::SECTION_ITES, 'crs_loc_err_stat_no_it');
392 }
393 return false;
394 }
395 if (!$this->checkTestOnline($tst_ref)) {
396 if ($a_set_errors) {
397 $this->appendFailure(self::SECTION_ITES, 'crs_loc_err_stat_tst_offline');
398 }
399 return false;
400 }
401 }
402 return true;
403 }
404
405
406 $tst_ref = $this->getSettings()->getInitialTest();
407 if (!$GLOBALS['DIC']['tree']->isInTree($tst_ref)) {
408 if ($a_set_errors) {
409 $this->appendFailure(self::SECTION_ITES, 'crs_loc_err_stat_no_it');
410 }
411 return false;
412 }
413 if (!$this->checkTestOnline($tst_ref)) {
414 if ($a_set_errors) {
415 $this->appendFailure(self::SECTION_ITES, 'crs_loc_err_stat_tst_offline');
416 }
417 return false;
418 }
419 return true;
420 }
checkTestOnline($a_ref_id)
Check if test is online.
appendFailure($a_section, $a_failure_msg_key)
Append failure.

References $GLOBALS, appendFailure(), checkTestOnline(), getAssignments(), getObjectives(), getSettings(), and ilLOSettings\TYPE_TEST_INITIAL.

Referenced by getFirstFailedStep(), and getHTML().

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

◆ getInstance()

static ilLOEditorStatus::getInstance ( ilObject  $a_parent)
static

Get instance.

Parameters
ilObject$a_parent

Definition at line 61 of file class.ilLOEditorStatus.php.

62 {
63 if (self::$instance) {
64 return self::$instance;
65 }
66 return self::$instance = new self($a_parent);
67 }

References $instance.

Referenced by ilLOEditorGUI\executeCommand().

+ Here is the caller graph for this function:

◆ getMaterialsStatus()

ilLOEditorStatus::getMaterialsStatus (   $a_set_errors = true)
protected

Get status of materials.

Definition at line 358 of file class.ilLOEditorStatus.php.

359 {
360 $childs = $GLOBALS['DIC']['tree']->getChilds($this->getParentObject()->getRefId());
361 foreach ((array) $childs as $tnode) {
362 if ($tnode['type'] == 'rolf') {
363 continue;
364 }
365 if ($tnode['child'] == $this->getSettings()->getInitialTest()) {
366 continue;
367 }
368 if ($tnode['child'] == $this->getSettings()->getQualifiedTest()) {
369 continue;
370 }
371 return true;
372 }
373 if ($a_set_errors) {
374 $this->appendFailure(self::SECTION_MATERIALS, 'crs_loc_err_stat_no_materials');
375 }
376 return false;
377 }

References $GLOBALS, appendFailure(), getParentObject(), and getSettings().

Referenced by getHTML().

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

◆ getObjectives()

ilLOEditorStatus::getObjectives ( )
Returns
array

Definition at line 72 of file class.ilLOEditorStatus.php.

References $objectives.

Referenced by checkNumberOfTries(), getInitialTestStatus(), getObjectivesAvailableStatus(), getQualifiedTestStatus(), and lookupQuestionsAssigned().

+ Here is the caller graph for this function:

◆ getObjectivesAvailableStatus()

ilLOEditorStatus::getObjectivesAvailableStatus (   $a_set_errors = false)
protected

Definition at line 344 of file class.ilLOEditorStatus.php.

345 {
346 $ret = count($this->getObjectives());
347
348 if (!$ret && $a_set_errors) {
349 $this->appendFailure(self::SECTION_OBJECTIVES_NEW, 'crs_no_objectives_created');
350 }
351
352 return $ret;
353 }
$ret
Definition: parser.php:6

References $ret, appendFailure(), and getObjectives().

Referenced by getFirstFailedStep(), getHTML(), and getObjectivesStatus().

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

◆ getObjectivesStatus()

ilLOEditorStatus::getObjectivesStatus (   $a_set_errors = true)
protected

Definition at line 495 of file class.ilLOEditorStatus.php.

496 {
497 if (!$this->getObjectivesAvailableStatus($a_set_errors)) {
498 return false;
499 }
500
501 include_once './Modules/Course/classes/class.ilCourseObjective.php';
502 $num_active = ilCourseObjective::_getCountObjectives($this->getParentObject()->getId(), true);
503 if (!$num_active) {
504 if ($a_set_errors) {
505 $this->appendFailure(self::SECTION_OBJECTIVES, 'crs_loc_err_no_active_lo');
506 }
507 return false;
508 }
509 foreach (ilCourseObjective::_getObjectiveIds($this->getParentObject()->getId(), true) as $objective_id) {
510 include_once './Modules/Course/classes/class.ilCourseObjectiveMaterials.php';
511 $obj = new ilCourseObjectiveMaterials($objective_id);
512 if (!count($obj->getMaterials())) {
513 if ($a_set_errors) {
514 $this->appendFailure(self::SECTION_OBJECTIVES, 'crs_loc_err_no_active_mat');
515 }
516 return false;
517 }
518 }
519 // check for assigned initial test questions
520 if ($this->getSettings()->worksWithInitialTest() && !$this->getSettings()->hasSeparateInitialTests()) {
521 // check for assigned questions
522 if (!$this->lookupQuestionsAssigned($this->getSettings()->getInitialTest())) {
523 if ($a_set_errors) {
524 $this->appendFailure(self::SECTION_OBJECTIVES, 'crs_loc_err_no_active_qst');
525 }
526 return false;
527 }
528 }
529 // check for assigned questions
530 if (!$this->getSettings()->hasSeparateQualifiedTests() and !$this->lookupQuestionsAssigned($this->getSettings()->getQualifiedTest())) {
531 if ($a_set_errors) {
532 $this->appendFailure(self::SECTION_OBJECTIVES, 'crs_loc_err_no_active_qst');
533 }
534 return false;
535 }
536
537 // @deprecated
538 /*
539 if(!$this->checkNumberOfTries())
540 {
541 if($a_set_errors)
542 {
543 $this->appendFailure(self::SECTION_OBJECTIVES, 'crs_loc_err_nr_tries_exceeded');
544 }
545 return false;
546 }
547 */
548
549 return true;
550 }
class ilCourseObjectiveMaterials
static _getCountObjectives($a_obj_id, $a_activated_only=false)
get count objectives
lookupQuestionsAssigned($a_test_ref_id)
Check if questions are assigned.

References ilCourseObjective\_getCountObjectives(), ilCourseObjective\_getObjectiveIds(), appendFailure(), getObjectivesAvailableStatus(), getParentObject(), getSettings(), and lookupQuestionsAssigned().

Referenced by getFirstFailedStep(), and getHTML().

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

◆ getParentObject()

ilLOEditorStatus::getParentObject ( )

Get parent object.

Returns
ilObject

Definition at line 143 of file class.ilLOEditorStatus.php.

144 {
145 return $this->parent_obj;
146 }

References $parent_obj.

Referenced by __construct(), getHTML(), getMaterialsStatus(), and getObjectivesStatus().

+ Here is the caller graph for this function:

◆ getQualifiedTestStatus()

ilLOEditorStatus::getQualifiedTestStatus (   $a_set_errors = true)
protected

Check status of qualified test.

Parameters
type$a_set_errors
Returns
boolean

Definition at line 427 of file class.ilLOEditorStatus.php.

428 {
429 if ($this->getSettings()->hasSeparateQualifiedTests()) {
430 foreach ($this->getObjectives() as $objective_id) {
431 $tst_ref = $this->getAssignments()->getTestByObjective($objective_id, ilLOSettings::TYPE_TEST_QUALIFIED);
432 if (!$GLOBALS['DIC']['tree']->isInTree($tst_ref)) {
433 if ($a_set_errors) {
434 $this->appendFailure(self::SECTION_QTEST, 'crs_loc_err_stat_no_qt');
435 }
436 return false;
437 }
438 if (!$this->checkTestOnline($tst_ref)) {
439 if ($a_set_errors) {
440 $this->appendFailure(self::SECTION_QTEST, 'crs_loc_err_stat_tst_offline');
441 }
442 return false;
443 }
444 }
445 return true;
446 }
447 $tst_ref = $this->getSettings()->getQualifiedTest();
448 if (!$GLOBALS['DIC']['tree']->isInTree($tst_ref)) {
449 if ($a_set_errors) {
450 $this->appendFailure(self::SECTION_QTEST, 'crs_loc_err_stat_no_qt');
451 }
452 return false;
453 }
454 if (!$this->checkTestOnline($tst_ref)) {
455 if ($a_set_errors) {
456 $this->appendFailure(self::SECTION_QTEST, 'crs_loc_err_stat_tst_offline');
457 }
458 return false;
459 }
460 return true;
461 }

References $GLOBALS, appendFailure(), checkTestOnline(), getAssignments(), getObjectives(), getSettings(), and ilLOSettings\TYPE_TEST_QUALIFIED.

Referenced by getFirstFailedStep(), and getHTML().

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

◆ getSection()

ilLOEditorStatus::getSection ( )

Definition at line 96 of file class.ilLOEditorStatus.php.

References $section.

◆ getSettings()

ilLOEditorStatus::getSettings ( )

◆ getSettingsStatus()

ilLOEditorStatus::getSettingsStatus ( )
protected

Check if course is lo confgured.

Returns
type

Definition at line 333 of file class.ilLOEditorStatus.php.

334 {
335 return $this->getSettings()->settingsExist();
336 }

References getSettings().

Referenced by getFirstFailedStep(), and getHTML().

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

◆ getStartStatus()

ilLOEditorStatus::getStartStatus ( )
protected

Definition at line 552 of file class.ilLOEditorStatus.php.

553 {
554 return true;
555 }

◆ lookupQuestionsAssigned()

ilLOEditorStatus::lookupQuestionsAssigned (   $a_test_ref_id)
protected

Check if questions are assigned.

Parameters
type$a_test_ref_id

Definition at line 467 of file class.ilLOEditorStatus.php.

468 {
469 include_once './Modules/Course/classes/Objectives/class.ilLOUtils.php';
471 foreach ($this->getObjectives() as $objective_id) {
472 include_once './Modules/Course/classes/Objectives/class.ilLORandomTestQuestionPools.php';
474 $this->parent_obj->getId(),
475 $objective_id,
476 ilObject::_lookupObjId($a_test_ref_id)
477 );
478 if (!$seq) {
479 return false;
480 }
481 }
482 } else {
483 foreach ($this->getObjectives() as $objective_id) {
484 include_once './Modules/Course/classes/class.ilCourseObjectiveQuestion.php';
486 if (!count($qsts)) {
487 return false;
488 }
489 }
490 }
491 return true;
492 }
static lookupQuestionsByObjective($a_test_id, $a_objective)
static lookupSequences($a_container_id, $a_objective_id, $a_test_id)
Lookup sequence ids @global type $ilDB.
static lookupRandomTest($a_test_obj_id)
Check if test is a random test.

References ilObject\_lookupObjId(), getObjectives(), ilCourseObjectiveQuestion\lookupQuestionsByObjective(), ilLOUtils\lookupRandomTest(), and ilLORandomTestQuestionPools\lookupSequences().

Referenced by getObjectivesStatus().

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

◆ setCmdClass()

ilLOEditorStatus::setCmdClass (   $a_cmd_class)

Command class.

Parameters
type$a_cmd_class

Definition at line 124 of file class.ilLOEditorStatus.php.

125 {
126 $this->cmd_class = $a_cmd_class;
127 }

◆ setSection()

ilLOEditorStatus::setSection (   $a_section)

Set current section.

Parameters
type$a_section

Definition at line 91 of file class.ilLOEditorStatus.php.

92 {
93 $this->section = $a_section;
94 }

Field Documentation

◆ $assignments

ilLOEditorStatus::$assignments = null
protected

Definition at line 31 of file class.ilLOEditorStatus.php.

Referenced by getAssignments().

◆ $cmd_class

ilLOEditorStatus::$cmd_class = null
protected

Definition at line 33 of file class.ilLOEditorStatus.php.

Referenced by getCmdClass().

◆ $ctrl

ilLOEditorStatus::$ctrl = null
protected

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

◆ $failures_by_section

ilLOEditorStatus::$failures_by_section = array()
protected

Definition at line 26 of file class.ilLOEditorStatus.php.

◆ $html

ilLOEditorStatus::$html = ''
protected

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

◆ $instance

ilLOEditorStatus::$instance = null
staticprotected

Definition at line 21 of file class.ilLOEditorStatus.php.

Referenced by getInstance().

◆ $lng

ilLOEditorStatus::$lng = null
protected

Definition at line 38 of file class.ilLOEditorStatus.php.

◆ $objectives

ilLOEditorStatus::$objectives = array()
protected

Definition at line 28 of file class.ilLOEditorStatus.php.

Referenced by getObjectives().

◆ $parent_obj

ilLOEditorStatus::$parent_obj = null
protected

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

Referenced by getParentObject().

◆ $section

ilLOEditorStatus::$section = null
protected

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

Referenced by getSection().

◆ $settings

ilLOEditorStatus::$settings = null
protected

Definition at line 30 of file class.ilLOEditorStatus.php.

Referenced by getSettings().

◆ $tpl

ilLOEditorStatus::$tpl = null
protected

Definition at line 36 of file class.ilLOEditorStatus.php.

◆ SECTION_ITES

◆ SECTION_MATERIALS

const ilLOEditorStatus::SECTION_MATERIALS = 2

Definition at line 15 of file class.ilLOEditorStatus.php.

Referenced by ilLOEditorGUI\materials().

◆ SECTION_OBJECTIVES

const ilLOEditorStatus::SECTION_OBJECTIVES = 5

◆ SECTION_OBJECTIVES_NEW

const ilLOEditorStatus::SECTION_OBJECTIVES_NEW = 6

Definition at line 19 of file class.ilLOEditorStatus.php.

Referenced by ilLOEditorGUI\showObjectiveCreation().

◆ SECTION_QTEST

◆ SECTION_SETTINGS

const ilLOEditorStatus::SECTION_SETTINGS = 1

Definition at line 14 of file class.ilLOEditorStatus.php.

Referenced by ilLOEditorGUI\settings().


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