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

Public Member Functions

 ilLPListOfProgressGUI ($a_mode, $a_ref_id)
executeCommand ()
 execute command
 show ()
 ilLPListOfProgressGUI ($a_mode, $a_ref_id, $a_user_id=0)
executeCommand ()
 execute command
 show ()
 details ()
 __showDetails ()
 __showContainerList ()
 __renderContainerRow ($parent_id, $item_id, $type, $level)
 __appendUserInfo (&$info)
 __showFilter ()
 __showProgressList ()
 __initUser ($a_usr_id=0)
 __initFilterGUI ()
 __initFilter ()
 __initDetails ($a_details_id)
 showDetails ()
 hideDetails ()
 __detailsShown ($item_id)
- 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 ()

Data Fields

 $tracked_user = null
 $show_user_info = false
 $filter_gui = null
 $details_id = 0
 $details_type = ''
 $details_mode = 0
- Data Fields inherited from ilLearningProgressBaseGUI
 $tpl = null
 $ctrl = null
 $lng = null
 $ref_id = 0
 $mode = 0
 $statistics_activated = false

Detailed Description

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

Member Function Documentation

ilLPListOfProgressGUI::__appendUserInfo ( $info)

Definition at line 331 of file class.ilLPListOfProgressGUI.php.

References ilOnlineTracking\_getOnlineTime(), ilFormat\_secondsToString(), ilDatePresentation\formatDate(), and IL_CAL_DATETIME.

Referenced by __showContainerList(), __showDetails(), and __showProgressList().

{
if($this->show_user_info)
{
$info->addSection($this->lng->txt("trac_user_data"));
$info->addProperty($this->lng->txt('username'),$this->tracked_user->getLogin());
$info->addProperty($this->lng->txt('name'),$this->tracked_user->getFullname());
$info->addProperty($this->lng->txt('last_login'),
ilDatePresentation::formatDate(new ilDateTime($this->tracked_user->getLastLogin(),IL_CAL_DATETIME)));
$info->addProperty($this->lng->txt('trac_total_online'),
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPListOfProgressGUI::__detailsShown (   $item_id)

Definition at line 551 of file class.ilLPListOfProgressGUI.php.

References $_SESSION, and $details_id.

Referenced by __renderContainerRow().

{
return $_SESSION['lp_show_progress'][$this->details_id][$item_id] ? true : false;
}

+ Here is the caller graph for this function:

ilLPListOfProgressGUI::__initDetails (   $a_details_id)

Definition at line 500 of file class.ilLPListOfProgressGUI.php.

References ilObject\_getAllReferences(), ilLPObjSettings\_lookupMode(), and ilLearningProgressBaseGUI\getRefId().

Referenced by ilLPListOfProgressGUI(), and show().

{
global $ilObjDataCache;
if(!$a_details_id)
{
$a_details_id = $this->getRefId();
}
if($a_details_id)
{
$ref_ids = ilObject::_getAllReferences($a_details_id);
$this->details_id = $a_details_id;
$this->details_obj_id = $ilObjDataCache->lookupObjId($this->details_id);
$this->details_type = $ilObjDataCache->lookupType($this->details_obj_id);
$this->details_mode = ilLPObjSettings::_lookupMode($this->details_obj_id);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPListOfProgressGUI::__initFilter ( )

Definition at line 487 of file class.ilLPListOfProgressGUI.php.

References ilLPFilter\toggleAnonymizedCheck().

Referenced by __showProgressList().

{
global $ilUser;
include_once './Services/Tracking/classes/class.ilLPFilter.php';
$this->filter = new ilLPFilter($ilUser->getId());
if($this->tracked_user->getId() != $ilUser->getId())
{
$this->filter->toggleAnonymizedCheck(true);
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPListOfProgressGUI::__initFilterGUI ( )

Definition at line 478 of file class.ilLPListOfProgressGUI.php.

Referenced by ilLPListOfProgressGUI().

{
global $ilUser;
include_once './Services/Tracking/classes/class.ilLPFilterGUI.php';
$this->filter_gui = new ilLPFilterGUI($ilUser->getId());
}

+ Here is the caller graph for this function:

ilLPListOfProgressGUI::__initUser (   $a_usr_id = 0)

Definition at line 448 of file class.ilLPListOfProgressGUI.php.

References ilObjectFactory\getInstanceByObjId().

Referenced by ilLPListOfProgressGUI(), and show().

{
global $ilUser,$rbacreview;
if($_POST['user_id'])
{
$a_usr_id = $_POST['user_id'];
$this->ctrl->setParameter($this,'user_id',$_POST['user_id']);
}
if($a_usr_id)
{
$this->tracked_user = ilObjectFactory::getInstanceByObjId($a_usr_id);
}
else
{
$this->tracked_user = $ilUser;
}
// Check access
if(!$rbacreview->isAssigned($ilUser->getId(),SYSTEM_ROLE_ID))
{
$this->tracked_user = $ilUser;
}
$this->show_user_info = ($this->tracked_user->getId() != $ilUser->getId());
return true;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPListOfProgressGUI::__renderContainerRow (   $parent_id,
  $item_id,
  $type,
  $level 
)

Definition at line 220 of file class.ilLPListOfProgressGUI.php.

References __detailsShown(), ilLearningProgressBaseGUI\__showImageByStatus(), ilLPItemListFactory\_getInstanceByRefId(), ilLPCollectionCache\_getItems(), ilLPObjSettings\_isContainer(), ilTimingCache\_showWarning(), ilDatePresentation\formatDate(), ilUtil\getImagePath(), IL_CAL_UNIX, LP_MODE_OBJECTIVES, LP_MODE_SCORM, and ilUtil\switchColor().

Referenced by __showContainerList().

{
global $ilObjDataCache,$ilUser,$ilAccess;
include_once 'Services/Tracking/classes/ItemList/class.ilLPItemListFactory.php';
include_once 'Modules/Course/classes/Timings/class.ilTimingCache.php';
$item_list =& ilLPItemListFactory::_getInstanceByRefId($parent_id,$item_id,$type);
if($this->has_timings)
{
$item_list->readTimings();
$item_list->enable('timings');
}
$item_list->setCurrentUser($this->tracked_user->getId());
$item_list->readUserInfo();
$item_list->setIndentLevel($level);
$item_list->renderContainerProgress();
// Details link
if($type != 'sahs_item' and
$type != 'objective')
{
if(!$ilAccess->checkAccess('read','',$item_id))
{
return false;
}
if(ilLPObjSettings::_isContainer($item_list->getMode()))
{
$this->tpl->setCurrentBlock("item_command");
$this->ctrl->setParameter($this,'details_id',$this->details_id);
$this->ctrl->setParameter($this,'item_id',$item_id);
if($this->__detailsShown($item_id))
{
$this->tpl->setVariable('HREF_COMMAND',$this->ctrl->getLinkTarget($this,'hideDetails'));
$this->tpl->setVariable("TXT_COMMAND",$this->lng->txt('hide_details'));
}
else
{
$this->tpl->setVariable('HREF_COMMAND',$this->ctrl->getLinkTarget($this,'showDetails'));
$this->tpl->setVariable("TXT_COMMAND",$this->lng->txt('show_details'));
}
$this->tpl->parseCurrentBlock();
}
#$this->tpl->setCurrentBlock("item_command");
#$this->ctrl->setParameter($this,'details_id',$item_id);
#$this->ctrl->setParameter($this,'crs_id',$this->details_id);
#$this->tpl->setVariable("HREF_COMMAND",$this->ctrl->getLinkTarget($this,'details'));
#$this->tpl->setVariable("TXT_COMMAND",$this->lng->txt('details'));
#$this->tpl->parseCurrentBlock();
if($this->has_timings and ilTimingCache::_showWarning($item_id,$this->tracked_user->getId()))
{
$this->tpl->setCurrentBlock('warning_img');
$this->tpl->setVariable('WARNING_IMG',ilUtil::getImagePath('warning.gif'));
$this->tpl->setVariable('WARNING_ALT',$this->lng->txt('trac_editing_time_passed'));
$this->tpl->parseCurrentBlock();
}
}
if($this->has_timings)
{
$this->tpl->setCurrentBlock('timing');
$this->tpl->setVariable('END_EDITING_TIME',$item_list->getEditingTime() ?
ilDatePresentation::formatDate(new ilDateTime($item_list->getEditingTime(),IL_CAL_UNIX)) :
'');
$this->tpl->parseCurrentBlock();
}
// Status image
$this->tpl->setCurrentBlock("container_standard_row");
$this->tpl->setVariable("ITEM_HTML",$item_list->getHTML());
$this->__showImageByStatus($this->tpl,$item_list->getUserStatus());
$this->tpl->setVariable("TBLROW",ilUtil::switchColor($this->container_row_counter++,'tblrow1','tblrow2'));
$this->tpl->parseCurrentBlock();
if($type == 'sahs_item' or
$type == 'objective')
{
return true;
}
if(!$this->__detailsShown($item_id))
{
return true;
}
include_once './Services/Tracking/classes/class.ilLPCollectionCache.php';
foreach(ilLPCollectionCache::_getItems($ilObjDataCache->lookupObjId($item_id)) as $child_id)
{
switch($item_list->getMode())
{
$this->__renderContainerRow($child_id,'objective',$level + 1);
break;
$this->__renderContainerRow($item_id,$child_id,'sahs_item',$level + 1);
break;
default:
$this->__renderContainerRow($item_id,
$child_id,
$ilObjDataCache->lookupType($ilObjDataCache->lookupObjId($child_id)),$level + 1);
break;
}
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPListOfProgressGUI::__showContainerList ( )

Definition at line 164 of file class.ilLPListOfProgressGUI.php.

References $ilCtrl, ilLearningProgressBaseGUI\__appendLPDetails(), __appendUserInfo(), ilLearningProgressBaseGUI\__getLegendHTML(), __renderContainerRow(), ilLearningProgressBaseGUI\__showObjectDetails(), ilLPCollectionCache\_getItems(), ilCourseItems\_hasCollectionTimings(), ilUtil\getImagePath(), LP_MODE_OBJECTIVES, and LP_MODE_SCORM.

Referenced by details().

{
global $ilObjDataCache,$ilCtrl;
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.lp_progress_container.html','Services/Tracking');
include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
$info = new ilInfoScreenGUI($this);
$info->setFormAction($ilCtrl->getFormAction($this));
$this->__appendUserInfo($info);
$this->__showObjectDetails($info,$this->details_obj_id);
$this->__appendLPDetails($info,$this->details_obj_id,$this->tracked_user->getId());
// Finally set template variable
$this->tpl->setVariable("LM_INFO",$info->getHTML());
$this->tpl->setVariable("FORMACTION",$this->ctrl->getFormAction($this));
$this->tpl->setVariable("HEADER_IMG",ilUtil::getImagePath('icon_'.$this->details_type.'.gif'));
$this->tpl->setVariable("HEADER_ALT",$this->lng->txt('objs_'.$this->details_type));
$this->tpl->setVariable("BLOCK_HEADER_CONTENT",$this->lng->txt('trac_'.$this->details_type.'_relevant_items'));
// Show table header
$this->tpl->setVariable("HEAD_STATUS",$this->lng->txt('trac_status'));
$this->tpl->setVariable("HEAD_OPTIONS",$this->lng->txt('actions'));
// Show timings header
include_once 'Modules/Course/classes/class.ilCourseItems.php';
if($this->has_timings = ilCourseItems::_hasCollectionTimings($this->details_id))
{
$this->tpl->setVariable('HEAD_TIMING',$this->lng->txt('trac_head_timing'));
$this->tpl->setVariable('HEAD_TIME_PASSED',$this->lng->txt('trac_time_passed'));
}
$this->container_row_counter = 0;
include_once './Services/Tracking/classes/class.ilLPCollectionCache.php';
foreach(ilLPCollectionCache::_getItems($this->details_obj_id) as $item_id)
{
switch($this->details_mode)
{
$type = 'sahs_item';
break;
$type = 'objective';
break;
default:
$type = $ilObjDataCache->lookupType($ilObjDataCache->lookupObjId($item_id));
break;
}
$this->__renderContainerRow($this->details_id,$item_id,$type,0);
}
$this->tpl->setVariable("LEGEND",$this->__getLegendHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPListOfProgressGUI::__showDetails ( )

Definition at line 146 of file class.ilLPListOfProgressGUI.php.

References $ilCtrl, ilLearningProgressBaseGUI\__appendLPDetails(), __appendUserInfo(), and ilLearningProgressBaseGUI\__showObjectDetails().

Referenced by details().

{
global $ilObjDataCache,$ilCtrl;
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.lp_lm_details.html','Services/Tracking');
include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
$info = new ilInfoScreenGUI($this);
$info->setFormAction($ilCtrl->getFormAction($this));
$this->__appendUserInfo($info);
$this->__showObjectDetails($info,$this->details_obj_id);
$this->__appendLPDetails($info,$this->details_obj_id,$this->tracked_user->getId());
// Finally set template variable
$this->tpl->setVariable("LM_INFO",$info->getHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPListOfProgressGUI::__showFilter ( )

Definition at line 347 of file class.ilLPListOfProgressGUI.php.

Referenced by __showProgressList().

{
$this->tpl->setVariable("FILTER",$this->filter_gui->getHTML());
}

+ Here is the caller graph for this function:

ilLPListOfProgressGUI::__showProgressList ( )

Definition at line 352 of file class.ilLPListOfProgressGUI.php.

References $ilCtrl, ilLearningProgressBaseGUI\$tpl, __appendUserInfo(), ilLearningProgressBaseGUI\__getLegendHTML(), __initFilter(), ilLearningProgressBaseGUI\__showButton(), __showFilter(), ilLearningProgressBaseGUI\__showImageByStatus(), ilLearningProgressBaseGUI\__sort(), ilLPItemListFactory\_getInstance(), ilLearningProgressBaseGUI\activePDF(), ilUtil\getImagePath(), ilUtil\sendInfo(), and ilUtil\switchColor().

Referenced by show().

{
global $ilUser,$ilObjDataCache,$ilCtrl;
include_once './Services/Tracking/classes/ItemList/class.ilLPItemListFactory.php';
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.lp_list_progress.html','Services/Tracking');
$this->__showFilter();
// User info
include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
$info = new ilInfoScreenGUI($this);
$info->setFormAction($ilCtrl->getFormAction($this));
$this->__appendUserInfo($info);
$this->tpl->setVariable("USER_INFO",$info->getHTML());
if($this->activePDF())
{
$this->__showButton($this->ctrl->getLinkTargetByClass('ilpdfpresentation','createList'),$this->lng->txt('pdf_export'));
}
$this->__initFilter();
$tpl = new ilTemplate('tpl.lp_progress_list.html',true,true,'Services/Tracking');
$this->filter->setRequiredPermission('read');
if(!count($objs = $this->filter->getObjects()))
{
ilUtil::sendInfo($this->lng->txt('trac_filter_no_access'));
return true;
}
// Output filter limit info
if($this->filter->limitReached())
{
$info = sprintf($this->lng->txt('trac_filter_limit_reached'),$this->filter->getLimit());
$tpl->setVariable("LIMIT_REACHED",$info);
}
$type = $this->filter->getFilterType();
$tpl->setVariable("HEADER_IMG",ilUtil::getImagePath('icon_'.$type.'.gif'));
$tpl->setVariable("HEADER_ALT",$this->lng->txt('objs_'.$type));
$tpl->setVariable("BLOCK_HEADER_CONTENT",$this->lng->txt('objs_'.$type));
// Show table header
$tpl->setVariable("HEAD_STATUS",$this->lng->txt('trac_status'));
$tpl->setVariable("HEAD_OPTIONS",$this->lng->txt('actions'));
// Sort objects by title
$sorted_objs = $this->__sort(array_keys($objs),'object_data','title','obj_id');
// Render item list
$counter = 0;
foreach($sorted_objs as $object_id)
{
$item_list =& ilLPItemListFactory::_getInstance(0,$object_id,$ilObjDataCache->lookupType($object_id));
$item_list->setCurrentUser($this->tracked_user->getId());
$item_list->readUserInfo();
$item_list->addCheckbox(array('item_id[]',$object_id,false));
$item_list->setCmdClass(get_class($this));
$item_list->addReferences($objs[$object_id]['ref_ids']);
$item_list->enable('path');
$item_list->renderSimpleProgress();
// Details link
#$tpl->setCurrentBlock("item_command");
#$this->ctrl->setParameter($this,'details_id',$object_id);
#$tpl->setVariable("HREF_COMMAND",$this->ctrl->getLinkTarget($this,'details'));
#$tpl->setVariable("TXT_COMMAND",$this->lng->txt('details'));
#$tpl->parseCurrentBlock();
// Hide link
$tpl->setCurrentBlock("item_command");
$this->ctrl->setParameterByClass('illpfiltergui','hide',$object_id);
$tpl->setVariable("HREF_COMMAND",$this->ctrl->getLinkTargetByClass('illpfiltergui','hide'));
$tpl->setVariable("TXT_COMMAND",$this->lng->txt('trac_hide'));
$tpl->parseCurrentBlock();
$tpl->setCurrentBlock("container_standard_row");
$tpl->setVariable("ITEM_HTML",$item_list->getHTML());
$this->__showImageByStatus($tpl,$item_list->getUserStatus());
$tpl->setVariable("TBLROW",ilUtil::switchColor($counter++,'tblrow1','tblrow2'));
$tpl->parseCurrentBlock();
}
// Hide button
$tpl->setVariable("DOWNRIGHT",ilUtil::getImagePath('arrow_downright.gif'));
$tpl->setVariable("BTN_HIDE_SELECTED",$this->lng->txt('trac_hide'));
$tpl->setVariable("FORMACTION",$this->ctrl->getFormActionByClass('illpfiltergui'));
$this->tpl->setVariable("LP_OBJECTS",$tpl->get());
$this->tpl->setVariable("LEGEND", $this->__getLegendHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPListOfProgressGUI::details ( )

Definition at line 114 of file class.ilLPListOfProgressGUI.php.

References $_GET, ilLearningProgressBaseGUI\__showButton(), __showContainerList(), __showDetails(), ilLPObjSettings\_isContainer(), ilLearningProgressBaseGUI\activePDF(), ilLearningProgressBaseGUI\getMode(), LP_MODE_ADMINISTRATION, LP_MODE_PERSONAL_DESKTOP, and LP_MODE_USER_FOLDER.

Referenced by hideDetails(), show(), and showDetails().

{
// Show back button to crs if called from crs. Otherwise if called from personal desktop or administration
// show back to list
if((int) $_GET['crs_id'])
{
$this->ctrl->setParameter($this,'details_id',(int) $_GET['crs_id']);
$this->__showButton($this->ctrl->getLinkTarget($this,'details'),$this->lng->txt('trac_view_crs'));
}
elseif($this->getMode() == LP_MODE_PERSONAL_DESKTOP or
{
$this->__showButton($this->ctrl->getLinkTarget($this,'show'),$this->lng->txt('trac_view_list'));
}
if($this->activePDF())
{
$this->__showButton($this->ctrl->getLinkTargetByClass('ilpdfpresentation','createDetails'),$this->lng->txt('pdf_export'));
}
if(!ilLPObjSettings::_isContainer($this->details_mode))
{
return $this->__showDetails();
}
else
{
return $this->__showContainerList();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

& ilLPListOfProgressGUI::executeCommand ( )

execute command

Definition at line 47 of file class.ilLPListOfProgress.php.

References $cmd, and ilLearningProgressBaseGUI\__getDefaultCommand().

{
$this->ctrl->setReturn($this, "");
switch($this->ctrl->getNextClass())
{
default:
$this->$cmd();
}
return true;
}

+ Here is the call graph for this function:

& ilLPListOfProgressGUI::executeCommand ( )

execute command

Definition at line 67 of file class.ilLPListOfProgressGUI.php.

References $cmd, ilLearningProgressBaseGUI\__getDefaultCommand(), ilLearningProgressBaseGUI\getMode(), ilLearningProgressBaseGUI\getUserId(), LP_ACTIVE_PROGRESS, and ilPDFPresentation\setType().

{
$this->ctrl->setReturn($this, "show");
$this->ctrl->saveParameter($this,'user_id',$this->getUserId());
switch($this->ctrl->getNextClass())
{
case 'illpfiltergui':
$this->ctrl->forwardCommand($this->filter_gui);
break;
case 'ilpdfpresentation':
include_once './Services/Tracking/classes/class.ilPDFPresentation.php';
$pdf_gui = new ilPDFPresentation($this->getMode(),$this->details_id,$this->getUserId(),$this->tracked_user->getId());
$this->ctrl->setReturn($this,'show');
$this->ctrl->forwardCommand($pdf_gui);
break;
default:
$this->$cmd();
}
return true;
}

+ Here is the call graph for this function:

ilLPListOfProgressGUI::hideDetails ( )

Definition at line 540 of file class.ilLPListOfProgressGUI.php.

References $_GET, $_SESSION, and details().

{
if(isset($_GET['item_id']))
{
unset($_SESSION['lp_show_progress'][$this->details_id]["$_GET[item_id]"]);
$this->details();
return true;
}
}

+ Here is the call graph for this function:

ilLPListOfProgressGUI::ilLPListOfProgressGUI (   $a_mode,
  $a_ref_id 
)

Definition at line 39 of file class.ilLPListOfProgress.php.

References ilLearningProgressBaseGUI\ilLearningProgressBaseGUI().

{
}

+ Here is the call graph for this function:

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

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

References $_GET, ilLearningProgressBaseGUI\__checkPDF(), __initDetails(), __initFilterGUI(), __initUser(), and ilLearningProgressBaseGUI\ilLearningProgressBaseGUI().

{
parent::ilLearningProgressBaseGUI($a_mode,$a_ref_id,$a_user_id);
$this->__checkPDF();
$this->__initFilterGUI();
$this->__initUser($a_user_id);
// Set item id for details
$this->__initDetails((int) $_GET['details_id']);
$this->ctrl->saveParameter($this,'details_id',$_REQUEST['details_id']);
}

+ Here is the call graph for this function:

ilLPListOfProgressGUI::show ( )

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

References ilLearningProgressBaseGUI\__setSubTabs(), and LP_ACTIVE_PROGRESS.

{
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.lp_list_progress.html','Services/Tracking');
}

+ Here is the call graph for this function:

ilLPListOfProgressGUI::show ( )

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

References __initDetails(), __initUser(), __showProgressList(), details(), ilLearningProgressBaseGUI\getMode(), ilLearningProgressBaseGUI\getRefId(), ilLearningProgressBaseGUI\getUserId(), LP_MODE_REPOSITORY, and LP_MODE_USER_FOLDER.

{
global $ilObjDataCache;
switch($this->getMode())
{
// Show only detail of current repository item if called from repository
$this->__initDetails($this->getRefId());
return $this->details();
// if called from user folder obj_id is id of current user
$this->__initUser($this->getUserId());
break;
}
// not called from repository
}

+ Here is the call graph for this function:

ilLPListOfProgressGUI::showDetails ( )

Definition at line 520 of file class.ilLPListOfProgressGUI.php.

References $_GET, $_SESSION, $details_id, and details().

{
if(isset($_GET['item_id']))
{
$ids = array($_GET['item_id']);
}
else
{
unset($_SESSION['lp_show_progress'][$this->details_id]);
$ids = $_POST['item_id'] ? $_POST['item_id'] : array();
}
foreach($ids as $id)
{
$_SESSION['lp_show_progress'][$this->details_id][$id] = true;
}
$this->details();
return true;
}

+ Here is the call graph for this function:

Field Documentation

ilLPListOfProgressGUI::$details_id = 0

Definition at line 46 of file class.ilLPListOfProgressGUI.php.

Referenced by __detailsShown(), and showDetails().

ilLPListOfProgressGUI::$details_mode = 0

Definition at line 48 of file class.ilLPListOfProgressGUI.php.

ilLPListOfProgressGUI::$details_type = ''

Definition at line 47 of file class.ilLPListOfProgressGUI.php.

ilLPListOfProgressGUI::$filter_gui = null

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

ilLPListOfProgressGUI::$show_user_info = false

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

ilLPListOfProgressGUI::$tracked_user = null

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


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