ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLearningProgressGUI Class Reference

Class ilObjUserTrackingGUI. More...

+ 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="")
 _getImagePathForStatus ($a_status)
 Get image path for status.
 _getStatusText ($a_status)
 Get status alt text.
__initTableGUI ()
 __showObjectDetails (&$info, $item_id=0)
 show details about current object.
 __appendUserInfo (&$info, $a_user)
 __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 ()
 __showEditUser ($a_user_id, $a_ref_id, $a_cancel, $a_sub_id=false)
 __updateUser ($user_id, $obj_id)

Additional Inherited Members

- Static Public Member Functions inherited from ilLearningProgressBaseGUI
static _showImageByStatus (&$tpl, $a_status, $tpl_prefix="")
static isObjectOffline ($a_obj_id, $a_type=null)
- Data Fields inherited from ilLearningProgressBaseGUI
 $tpl = null
 $ctrl = null
 $lng = null
 $ref_id = 0
 $mode = 0
 $statistics_activated = false

Detailed Description

Member Function Documentation

ilLearningProgressGUI::__getNextClass ( )

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

References $_SESSION, ilUtil\_getObjectsByOperations(), 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, $ilUser;
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']))
{
if($_SESSION['il_lp_history'] == "illplistofobjectsgui")
{
// see __setSubTabs()
$types = array("crs", "grp", "exc", "tst", "lm", "sahs", "htlm", "dbk");
if(!ilUtil::_getObjectsByOperations($types, "edit_learning_progress", $ilUser->getId(), 1))
{
$_SESSION['il_lp_history'] = null;
return 'illplistofprogressgui';
}
}
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 122 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 27 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_OBJSTATACCESS, LP_ACTIVE_OBJSTATADMIN, LP_ACTIVE_OBJSTATDAILY, LP_ACTIVE_OBJSTATTYPES, LP_ACTIVE_PROGRESS, LP_ACTIVE_SETTINGS, and LP_ACTIVE_SUMMARY.

{
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';
if(stristr($this->ctrl->getCmd(), "matrix"))
{
$this->__setSubTabs(LP_ACTIVE_MATRIX);
}
else if(stristr($this->ctrl->getCmd(), "summary"))
{
}
else
{
}
$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;
case 'illpobjectstatisticsgui':
include_once 'Services/Tracking/classes/class.ilLPObjectStatisticsGUI.php';
if(stristr($this->ctrl->getCmd(), "access"))
{
}
else if(stristr($this->ctrl->getCmd(), "types"))
{
}
else if(stristr($this->ctrl->getCmd(), "daily"))
{
}
else
{
}
$this->__setCmdClass('illpobjectstatisticsgui');
$ost_gui = new ilLPObjectStatisticsGUI($this->getMode(),$this->getRefId());
$this->ctrl->forwardCommand($ost_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 19 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: