ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLPStatusFactory Class Reference
+ Collaboration diagram for ilLPStatusFactory:

Public Member Functions

 _getClassById ($a_obj_id)
 _getClassByIdAndType ($a_obj_id, $a_type)
_getInstance ($a_obj_id)

Detailed Description

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

Member Function Documentation

ilLPStatusFactory::_getClassById (   $a_obj_id)

Definition at line 40 of file class.ilLPStatusFactory.php.

References ilLPObjSettings\_lookupMode(), exit, LP_MODE_COLLECTION, LP_MODE_DEACTIVATED, LP_MODE_EVENT, LP_MODE_EXERCISE_RETURNED, LP_MODE_MANUAL, LP_MODE_MANUAL_BY_TUTOR, LP_MODE_OBJECTIVES, LP_MODE_SCORM, LP_MODE_SCORM_PACKAGE, LP_MODE_TEST_FINISHED, LP_MODE_TEST_PASSED, LP_MODE_TLT, and LP_MODE_VISITS.

Referenced by ilLPStatusWrapper\_getCompleted(), ilLPStatusWrapper\_getFailed(), ilLPStatusWrapper\_getInProgress(), ilLPStatusWrapper\_getNotAttempted(), ilLPStatusWrapper\_getStatusInfo(), and ilLPStatusWrapper\_getTypicalLearningTime().

{
include_once 'Services/Tracking/classes/class.ilLPObjSettings.php';
switch(ilLPObjSettings::_lookupMode($a_obj_id))
{
include_once 'Services/Tracking/classes/class.ilLPStatusVisits.php';
return 'ilLPStatusVisits';
include_once 'Services/Tracking/classes/class.ilLPStatusCollection.php';
return 'ilLPStatusCollection';
include_once 'Services/Tracking/classes/class.ilLPStatusTypicalLearningTime.php';
return 'ilLPStatusTypicalLearningTime';
include_once 'Services/Tracking/classes/class.ilLPStatusSCORM.php';
return 'ilLPStatusSCORM';
include_once 'Services/Tracking/classes/class.ilLPStatus.php';
return 'ilLPStatus';
include_once 'Services/Tracking/classes/class.ilLPStatusTestFinished.php';
return 'ilLPStatusTestFinished';
include_once 'Services/Tracking/classes/class.ilLPStatusTestPassed.php';
return 'ilLPStatusTestPassed';
include_once 'Services/Tracking/classes/class.ilLPStatusManual.php';
return 'ilLPStatusManual';
include_once 'Services/Tracking/classes/class.ilLPStatusManualByTutor.php';
return 'ilLPStatusManualByTutor';
include_once 'Services/Tracking/classes/class.ilLPStatusExerciseReturned.php';
return 'ilLPStatusExerciseReturned';
include_once 'Services/Tracking/classes/class.ilLPStatusObjectives.php';
return 'ilLPStatusObjectives';
include_once 'Services/Tracking/classes/class.ilLPStatusSCORMPackage.php';
return 'ilLPStatusSCORMPackage';
include_once('./Services/Tracking/classes/class.ilLPStatusEvent.php');
return 'ilLPStatusEvent';
default:
echo "ilLPStatusFactory: unknown type ".ilLPObjSettings::_lookupMode($a_obj_id);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPStatusFactory::_getClassByIdAndType (   $a_obj_id,
  $a_type 
)

Definition at line 104 of file class.ilLPStatusFactory.php.

References exit.

Referenced by ilLPStatusWrapper\_getCompletedByType(), ilLPStatusWrapper\_getFailedByType(), ilLPStatusWrapper\_getInProgressByType(), ilLPStatusWrapper\_getNotAttemptedByType(), and ilLPStatusWrapper\_getStatusInfoByType().

{
// id is ignored in the moment
switch($a_type)
{
case 'event':
include_once 'Services/Tracking/classes/class.ilLPStatusEvent.php';
return 'ilLPStatusEvent';
default:
echo "ilLPStatusFactory: unknown type: ".$a_type;
}
}

+ Here is the caller graph for this function:

& ilLPStatusFactory::_getInstance (   $a_obj_id)

Definition at line 119 of file class.ilLPStatusFactory.php.

References ilLPObjSettings\_lookupMode(), exit, LP_MODE_COLLECTION, LP_MODE_EVENT, LP_MODE_EXERCISE_RETURNED, LP_MODE_MANUAL, LP_MODE_MANUAL_BY_TUTOR, LP_MODE_OBJECTIVES, LP_MODE_SCORM, LP_MODE_TEST_FINISHED, LP_MODE_TEST_PASSED, LP_MODE_TLT, and LP_MODE_VISITS.

{
include_once 'Services/Tracking/classes/class.ilLPObjSettings.php';
switch(ilLPObjSettings::_lookupMode($a_obj_id))
{
include_once 'Services/Tracking/classes/class.ilLPStatusVisits.php';
return new ilLPStatusVisits($a_obj_id);
include_once 'Services/Tracking/classes/class.ilLPStatusCollection.php';
return new ilLPStatusCollection($a_obj_id);
include_once 'Services/Tracking/classes/class.ilLPStatusTypicalLearningTime.php';
return new ilLPStatusTypicalLearningTime($a_obj_id);
include_once 'Services/Tracking/classes/class.ilLPStatusSCORM.php';
return new ilLPStatusSCORM($a_obj_id);
include_once 'Services/Tracking/classes/class.ilLPStatusTestFinished.php';
return new ilLPStatusTestFinished($a_obj_id);
include_once 'Services/Tracking/classes/class.ilLPStatusTestPassed.php';
return new ilLPStatusTestPassed($a_obj_id);
include_once 'Services/Tracking/classes/class.ilLPStatusManual.php';
return new ilLPStatusManual($a_obj_id);
include_once 'Services/Tracking/classes/class.ilLPStatusManualByTutor.php';
return new ilLPStatusManualByTutor($a_obj_id);
include_once 'Services/Tracking/classes/class.ilLPStatusExerciseReturned.php';
return new ilLPStatusExerciseReturned($a_obj_id);
include_once 'Services/Tracking/classes/class.ilLPStatusObjectives.php';
return new ilLPStatusObjectives($a_obj_id);
include_once 'Services/Tracking/classes/class.ilLPStatusEvent.php';
return new ilLPStatusEvent($a_obj_id);
default:
echo "ilLPStatusFactory: unknown type ".ilLPObjSettings::_lookupMode($a_obj_id);
}
}

+ Here is the call graph for this function:


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