ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLearningProgressGUI Class Reference
+ Inheritance diagram for ilLearningProgressGUI:
+ Collaboration diagram for ilLearningProgressGUI:

Public Member Functions

 ilLearningProgressGUI ($a_mode, $a_ref_id=0, $a_user_id=0)
executeCommand ()
 execute command
 __setCmdClass ($a_class)
 __getNextClass ()
- Public Member Functions inherited from ilLearningProgressBaseGUI
 ilLearningProgressBaseGUI ($a_mode, $a_ref_id=0, $a_usr_id=0)
 activePDF ()
 __checkPDF ()
 isAnonymized ()
 isObjectAnonymized ()
 getMode ()
 getRefId ()
 getObjId ()
 getUserId ()
 activateStatistics ($a_act=true)
 __getDefaultCommand ()
 __setSubTabs ($a_active)
 __buildFooter ()
 __buildHeader ()
 __insertPath (&$a_tpl, $a_ref_id)
 insert path
 __showImageByStatus (&$tpl, $a_status, $tpl_prefix="")
__initTableGUI ()
 __showObjectDetails (&$info, $item_id=0)
 show details about current object.
 __appendLPDetails (&$info, $item_id, $user_id)
 __readStatus ($a_obj_id, $user_id)
 __showButton ($a_link, $a_text, $a_target= '')
 __sort ($a_ids, $a_table, $a_field, $a_id_name)
 Function that sorts ids by a given table field using WHERE IN E.g: __sort(array(6,7),'usr_data','lastname','usr_id') => sorts by lastname.
 __getPercent ($max, $reached)
 __readItemStatusInfo ($a_items)
 __getLegendHTML ()

Additional Inherited Members

- Data Fields inherited from ilLearningProgressBaseGUI
 $tpl = null
 $ctrl = null
 $lng = null
 $ref_id = 0
 $mode = 0
 $statistics_activated = false

Detailed Description

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

Member Function Documentation

ilLearningProgressGUI::__getNextClass ( )

Definition at line 125 of file class.ilLearningProgressGUI.php.

References $_SESSION, ilLearningProgressBaseGUI\getMode(), ilLearningProgressBaseGUI\getRefId(), ilLearningProgressBaseGUI\isObjectAnonymized(), LP_MODE_ADMINISTRATION, LP_MODE_PERSONAL_DESKTOP, LP_MODE_REPOSITORY, and LP_MODE_USER_FOLDER.

Referenced by executeCommand().

{
global $ilAccess;
if(strlen($next_class = $this->ctrl->getNextClass()))
{
{
$_SESSION['il_lp_history'] = $next_class;
}
return $next_class;
}
switch($this->getMode())
{
return 'illplistofobjectsgui';
if(!$this->anonymized and
!$this->isObjectAnonymized() and
$ilAccess->checkAccess('edit_learning_progress','',$this->getRefId()))
{
return 'illplistofobjectsgui';
}
return 'illplistofprogressgui';
if(strlen($_SESSION['il_lp_history']))
{
return $_SESSION['il_lp_history'];
}
return 'illplistofprogressgui';
return 'illplistofprogressgui';
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLearningProgressGUI::__setCmdClass (   $a_class)

Definition at line 113 of file class.ilLearningProgressGUI.php.

Referenced by executeCommand().

{
// If cmd class == 'illearningprogressgui' the cmd class is set to the the new forwarded class
// otherwise e.g illplistofprogressgui tries to forward (back) to illearningprogressgui.
if($this->ctrl->getCmdClass() == strtolower(get_class($this)))
{
$this->ctrl->setCmdClass(strtolower($a_class));
}
return true;
}

+ Here is the caller graph for this function:

& ilLearningProgressGUI::executeCommand ( )

execute command

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

References $ilBench, ilLearningProgressBaseGUI\__buildFooter(), ilLearningProgressBaseGUI\__buildHeader(), __getNextClass(), __setCmdClass(), ilLearningProgressBaseGUI\__setSubTabs(), ilLearningProgressBaseGUI\getMode(), ilLearningProgressBaseGUI\getRefId(), ilLearningProgressBaseGUI\getUserId(), LP_ACTIVE_LM_STATISTICS, LP_ACTIVE_OBJECTS, LP_ACTIVE_PROGRESS, and LP_ACTIVE_SETTINGS.

{
global $ilBench;
$ilBench->start('LearningProgress','0000_Start');
$this->ctrl->setReturn($this, "");
// E.g personal desktop mode needs locator header icon ...
$this->__buildHeader();
switch($this->__getNextClass())
{
case 'illplistofprogressgui':
include_once 'Services/Tracking/classes/class.ilLPListOfProgressGUI.php';
$this->__setCmdClass('illplistofprogressgui');
$lop_gui = new ilLPListOfProgressGUI($this->getMode(),$this->getRefId(),$this->getUserId());
$this->ctrl->forwardCommand($lop_gui);
break;
case 'illplistofobjectsgui':
include_once 'Services/Tracking/classes/class.ilLPListOfObjectsGUI.php';
$loo_gui = new ilLPListOfObjectsGUI($this->getMode(),$this->getRefId());
$this->__setCmdClass('illplistofobjectsgui');
$this->ctrl->forwardCommand($loo_gui);
break;
case 'illplistofsettingsgui':
include_once 'Services/Tracking/classes/class.ilLPListOfSettingsGUI.php';
$los_gui = new ilLPListOfSettingsGUI($this->getMode(),$this->getRefId());
$this->__setCmdClass('illplistofsettingsgui');
$this->ctrl->forwardCommand($los_gui);
break;
case 'illmstatisticsgui':
include_once 'Services/Tracking/classes/class.ilLMStatisticsGUI.php';
$los_gui = new ilLMStatisticsGUI($this->getMode(),$this->getRefId());
$this->__setCmdClass('illmstatisticsgui');
$this->ctrl->forwardCommand($los_gui);
break;
default:
die("No mode given");
}
// E.G personal desktop mode needs $tpl->show();
$this->__buildFooter();
$ilBench->stop('LearningProgress','0000_Start');
return true;
}

+ Here is the call graph for this function:

ilLearningProgressGUI::ilLearningProgressGUI (   $a_mode,
  $a_ref_id = 0,
  $a_user_id = 0 
)

Definition at line 42 of file class.ilLearningProgressGUI.php.

References ilLearningProgressBaseGUI\ilLearningProgressBaseGUI().

{
parent::ilLearningProgressBaseGUI($a_mode,$a_ref_id,$a_user_id);
}

+ Here is the call graph for this function:


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