ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLPListOfObjectsGUI Class Reference
+ Inheritance diagram for ilLPListOfObjectsGUI:
+ Collaboration diagram for ilLPListOfObjectsGUI:

Public Member Functions

 ilLPListOfObjectsGUI ($a_mode, $a_ref_id)
executeCommand ()
 execute command
 updateUser ()
 editUser ()
 details ()
 __showUsersList ($a_print_view=false)
 userDetails ()
 show ()
 __listObjects ()
 __initDetails ($a_details_id)
 showObjectSummary ()
 Show object-based summarized tracking data.
 showUserObjectMatrix ()
 Show object user matrix.
- 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)

Data Fields

 $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

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)

Detailed Description

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

Member Function Documentation

ilLPListOfObjectsGUI::__initDetails (   $a_details_id)

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

References $_GET, ilLPObjSettings\_lookupMode(), and ilLearningProgressBaseGUI\getRefId().

Referenced by editUser(), ilLPListOfObjectsGUI(), show(), and updateUser().

{
global $ilObjDataCache;
if(!$a_details_id)
{
$a_details_id = $this->getRefId();
}
if($a_details_id)
{
$_GET['details_id'] = $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:

ilLPListOfObjectsGUI::__listObjects ( )

Definition at line 299 of file class.ilLPListOfObjectsGUI.php.

References ilLearningProgressBaseGUI\__getLegendHTML().

Referenced by show().

{
global $ilUser,$ilObjDataCache;
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.lp_list_objects.html','Services/Tracking');
/*
if($this->activePDF())
{
$this->__showButton($this->ctrl->getLinkTargetByClass('ilpdfpresentation','createList'),$this->lng->txt('pdf_export'));
}
*/
/*
// Limit info
if($this->filter->limitReached())
{
$info = sprintf($this->lng->txt('trac_filter_limit_reached'),$this->filter->getLimit());
$this->tpl->setVariable("LIMIT_REACHED",$info);
}
*/
/*
include_once("./Services/Tracking/classes/class.ilLPProgressTableGUI.php");
$lp_table = new ilLPObjectsTableGUI($this, "");
*/
include_once("./Services/Tracking/classes/class.ilTrSummaryTableGUI.php");
$lp_table = new ilTrSummaryTableGUI($this, "", ROOT_FOLDER_ID);
$this->tpl->setVariable("LP_OBJECTS", $lp_table->getHTML());
$this->tpl->setVariable('LEGEND', $this->__getLegendHTML());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPListOfObjectsGUI::__showUsersList (   $a_print_view = false)

Definition at line 207 of file class.ilLPListOfObjectsGUI.php.

References ilLearningProgressBaseGUI\__getLegendHTML(), exit, ilLearningProgressBaseGUI\isAnonymized(), and ilUtil\sendFailure().

Referenced by details().

{
if($this->isAnonymized())
{
ilUtil::sendFailure($this->lng->txt('permission_denied'));
return;
}
$this->ctrl->setParameter($this, "details_id", $this->details_id);
include_once "Services/Tracking/classes/class.ilTrObjectUsersPropsTableGUI.php";
$gui = new ilTrObjectUsersPropsTableGUI($this, "details", $this->details_obj_id, $this->details_id, $a_print_view);
$this->tpl->setVariable("LP_OBJECTS", $gui->getHTML());
$this->tpl->setVariable("LEGEND", $this->__getLegendHTML());
if($a_print_view)
{
echo $this->tpl->get("DEFAULT", false, false, false, false, false, false);
exit();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPListOfObjectsGUI::details ( )

Definition at line 162 of file class.ilLPListOfObjectsGUI.php.

References $_GET, ilLearningProgressBaseGUI\__showButton(), ilLearningProgressBaseGUI\__showObjectDetails(), __showUsersList(), ilLearningProgressBaseGUI\getMode(), LP_MODE_ADMINISTRATION, and LP_MODE_PERSONAL_DESKTOP.

Referenced by show(), and updateUser().

{
global $ilToolbar;
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.lp_loo.html','Services/Tracking');
// Show back button
{
$print_view = false;
$this->__showButton($this->ctrl->getLinkTarget($this,'show'),$this->lng->txt('trac_view_list'));
}
else
{
$print_view = (bool)$_GET['prt'];
if(!$print_view)
{
$ilToolbar->setFormAction($this->ctrl->getFormAction($this));
$this->ctrl->setParameter($this, 'prt', 1);
$ilToolbar->addButton($this->lng->txt('print_view'),$this->ctrl->getLinkTarget($this,'details'), '_blank');
$this->ctrl->setParameter($this, 'prt', '');
}
}
/*
if($this->activePDF())
{
$this->__showButton($this->ctrl->getLinkTargetByClass('ilpdfpresentation','createDetails'),$this->lng->txt('pdf_export'));
}
*/
include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
$info = new ilInfoScreenGUI($this);
$info->setFormAction($this->ctrl->getFormAction($this));
if($this->__showObjectDetails($info, $this->details_obj_id))
{
$this->tpl->setCurrentBlock("info");
$this->tpl->setVariable("INFO_TABLE",$info->getHTML());
$this->tpl->parseCurrentBlock();
}
$this->__showUsersList($print_view);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPListOfObjectsGUI::editUser ( )

Definition at line 135 of file class.ilLPListOfObjectsGUI.php.

References $_GET, $details_id, ilLearningProgressBaseGUI\__appendUserInfo(), __initDetails(), ilLearningProgressBaseGUI\__showEditUser(), and ilLearningProgressBaseGUI\__showObjectDetails().

{
global $ilObjDataCache;
$parent_id = $this->details_id;
if(isset($_GET["userdetails_id"]))
{
$this->__initDetails((int)$_GET["userdetails_id"]);
$sub_id = $this->details_id;
$cancel = "userdetails";
}
else
{
$sub_id = NULL;
$cancel = "details";
}
include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
$info = new ilInfoScreenGUI($this);
$info->setFormAction($this->ctrl->getFormAction($this));
$this->__showObjectDetails($info, $this->details_obj_id);
$this->__appendUserInfo($info, (int)$_GET['user_id']);
// $this->__appendLPDetails($info,$this->details_obj_id,(int)$_GET['user_id']);
$this->tpl->setVariable("ADM_CONTENT", $this->__showEditUser((int)$_GET['user_id'], $parent_id, $cancel, $sub_id)."<br />".$info->getHTML());
}

+ Here is the call graph for this function:

& ilLPListOfObjectsGUI::executeCommand ( )

execute command

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

References $_GET, $cmd, and ilLearningProgressBaseGUI\__getDefaultCommand().

{
global $ilUser;
$this->ctrl->setReturn($this, "");
switch($this->ctrl->getNextClass())
{
case 'iltruserobjectspropstablegui':
$user_id = (int)$_GET["user_id"];
$this->ctrl->setParameter($this, "user_id", $user_id);
$this->ctrl->setParameter($this, "details_id", $this->details_id);
include_once("./Services/Tracking/classes/class.ilTrUserObjectsPropsTableGUI.php");
$table_gui = new ilTrUserObjectsPropsTableGUI($this, "userDetails",
$user_id, $this->details_obj_id, $this->details_id);
$this->ctrl->forwardCommand($table_gui);
break;
case 'illpobjectstablegui':
include_once './Services/Tracking/classes/class.ilLPObjectsTableGUI.php';
$table_gui = new ilLPObjectsTableGUI($this, "", $this->tracked_user);
$this->ctrl->forwardCommand($table_gui);
break;
case 'iltrsummarytablegui':
$cmd = "showObjectSummary";
if(!$this->details_id)
{
$this->details_id = ROOT_FOLDER_ID;
$cmd = "show";
}
include_once './Services/Tracking/classes/class.ilTrSummaryTableGUI.php';
$table_gui = new ilTrSummaryTableGUI($this, $cmd, $this->details_id);
$this->ctrl->forwardCommand($table_gui);
break;
case 'iltrmatrixtablegui':
include_once './Services/Tracking/classes/class.ilTrMatrixTableGUI.php';
$table_gui = new ilTrMatrixTableGUI($this, "showUserObjectMatrix", $this->details_id);
$this->ctrl->forwardCommand($table_gui);
break;
case 'iltrobjectuserspropstablegui':
$this->ctrl->setParameter($this, "details_id", $this->details_id);
include_once './Services/Tracking/classes/class.ilTrObjectUsersPropsTableGUI.php';
$table_gui = new ilTrObjectUsersPropsTableGUI($this, "details", $this->details_obj_id, $this->details_id);
$this->ctrl->forwardCommand($table_gui);
break;
/*
case 'ilpdfpresentation':
include_once './Services/Tracking/classes/class.ilPDFPresentation.php';
$pdf_gui = new ilPDFPresentation($this->getMode(),$this->details_id,$this->getUserId());
$pdf_gui->setType(LP_ACTIVE_OBJECTS);
$this->ctrl->setReturn($this,'show');
$this->ctrl->forwardCommand($pdf_gui);
break;
*/
default:
$this->$cmd();
}
return true;
}

+ Here is the call graph for this function:

ilLPListOfObjectsGUI::ilLPListOfObjectsGUI (   $a_mode,
  $a_ref_id 
)

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

References $_REQUEST, __initDetails(), and ilLearningProgressBaseGUI\ilLearningProgressBaseGUI().

{
global $ilUser,$ilObjDataCache;
// $this->__checkPDF();
// Set item id for details
$this->__initDetails((int) $_REQUEST['details_id']);
}

+ Here is the call graph for this function:

ilLPListOfObjectsGUI::show ( )

Definition at line 282 of file class.ilLPListOfObjectsGUI.php.

References __initDetails(), __listObjects(), details(), ilLearningProgressBaseGUI\getMode(), ilLearningProgressBaseGUI\getRefId(), and LP_MODE_REPOSITORY.

{
// Clear table offset
$this->ctrl->saveParameter($this,'offset',0);
// Show only detail of current repository item if called from repository
switch($this->getMode())
{
$this->__initDetails($this->getRefId());
$this->details();
return true;
}
$this->__listObjects();
}

+ Here is the call graph for this function:

ilLPListOfObjectsGUI::showObjectSummary ( )

Show object-based summarized tracking data.

Definition at line 354 of file class.ilLPListOfObjectsGUI.php.

References $_GET, ilLearningProgressBaseGUI\$tpl, exit, and ilLearningProgressBaseGUI\getRefId().

{
global $tpl, $ilToolbar;
$print_view = (bool)$_GET['prt'];
if(!$print_view)
{
$ilToolbar->setFormAction($this->ctrl->getFormAction($this));
$this->ctrl->setParameter($this, 'prt', 1);
$ilToolbar->addButton($this->lng->txt('print_view'),$this->ctrl->getLinkTarget($this,'showObjectSummary'), '_blank');
$this->ctrl->setParameter($this, 'prt', '');
}
include_once("./Services/Tracking/classes/class.ilTrSummaryTableGUI.php");
$table = new ilTrSummaryTableGUI($this, "showObjectSummary", $this->getRefId(), $print_view);
if(!$print_view)
{
$tpl->setContent($table->getHTML());
}
else
{
$tpl->setVariable("ADM_CONTENT", $table->getHTML());
echo $tpl->get("DEFAULT", false, false, false, false, false, false);
exit();
}
}

+ Here is the call graph for this function:

ilLPListOfObjectsGUI::showUserObjectMatrix ( )

Show object user matrix.

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

References ilLearningProgressBaseGUI\$tpl, ilLearningProgressBaseGUI\__getLegendHTML(), ilLearningProgressBaseGUI\__showObjectDetails(), ilLearningProgressBaseGUI\getRefId(), ilLearningProgressBaseGUI\isAnonymized(), and ilUtil\sendFailure().

{
global $tpl;
if($this->isAnonymized())
{
ilUtil::sendFailure($this->lng->txt('permission_denied'));
return;
}
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.lp_loo.html','Services/Tracking');
include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
$info = new ilInfoScreenGUI($this);
$info->setFormAction($this->ctrl->getFormAction($this));
if($this->__showObjectDetails($info, $this->details_obj_id))
{
$this->tpl->setCurrentBlock("info");
$this->tpl->setVariable("INFO_TABLE",$info->getHTML());
$this->tpl->parseCurrentBlock();
}
include_once("./Services/Tracking/classes/class.ilTrMatrixTableGUI.php");
$table = new ilTrMatrixTableGUI($this, "showUserObjectMatrix", $this->getRefId());
$this->tpl->setVariable('LP_OBJECTS', $table->getHTML());
$this->tpl->setVariable('LEGEND', $this->__getLegendHTML());
}

+ Here is the call graph for this function:

ilLPListOfObjectsGUI::updateUser ( )

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

References $_GET, $_REQUEST, $details_id, __initDetails(), ilLearningProgressBaseGUI\__updateUser(), details(), ilUtil\sendSuccess(), and userDetails().

{
if(isset($_GET["userdetails_id"]))
{
$parent = $this->details_id;
$this->__initDetails((int)$_GET["userdetails_id"]);
}
$this->__updateUser($_REQUEST['user_id'], $this->details_obj_id);
ilUtil::sendSuccess($this->lng->txt('trac_update_edit_user'));
if(!isset($_GET["userdetails_id"]))
{
$this->details();
}
else
{
$this->__initDetails($parent);
$this->userDetails();
}
}

+ Here is the call graph for this function:

ilLPListOfObjectsGUI::userDetails ( )

Definition at line 230 of file class.ilLPListOfObjectsGUI.php.

References $_GET, ilLearningProgressBaseGUI\__appendUserInfo(), ilLearningProgressBaseGUI\__getLegendHTML(), ilLearningProgressBaseGUI\__showObjectDetails(), exit, ilLearningProgressBaseGUI\isAnonymized(), and ilUtil\sendFailure().

Referenced by updateUser().

{
global $ilObjDataCache, $ilToolbar;
if($this->isAnonymized())
{
ilUtil::sendFailure($this->lng->txt('permission_denied'));
return;
}
$this->ctrl->setParameter($this, "details_id", $this->details_id);
$print_view = (bool)$_GET['prt'];
if(!$print_view)
{
// Show back button
$ilToolbar->addButton($this->lng->txt('trac_view_list'), $this->ctrl->getLinkTarget($this,'details'));
}
$user_id = (int)$_GET["user_id"];
$this->ctrl->setParameter($this, "user_id", $user_id);
if(!$print_view)
{
$this->ctrl->setParameter($this, 'prt', 1);
$ilToolbar->addButton($this->lng->txt('print_view'),$this->ctrl->getLinkTarget($this,'userDetails'), '_blank');
$this->ctrl->setParameter($this, 'prt', '');
};
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.lp_loo.html','Services/Tracking');
include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
$info = new ilInfoScreenGUI($this);
$info->setFormAction($this->ctrl->getFormAction($this));
$this->__showObjectDetails($info, $this->details_obj_id);
$this->__appendUserInfo($info, $user_id);
// $this->__appendLPDetails($info,$this->details_obj_id,$user_id);
$this->tpl->setVariable("INFO_TABLE",$info->getHTML());
include_once("./Services/Tracking/classes/class.ilTrUserObjectsPropsTableGUI.php");
$table = new ilTrUserObjectsPropsTableGUI($this, "userDetails", $user_id,
$this->details_obj_id, $this->details_id, $print_view);
$this->tpl->setVariable('LP_OBJECTS', $table->getHTML());
$this->tpl->setVariable('LEGEND', $this->__getLegendHTML());
if($print_view)
{
echo $this->tpl->get("DEFAULT", false, false, false, false, false, false);
exit();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

ilLPListOfObjectsGUI::$details_id = 0

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

Referenced by editUser(), and updateUser().

ilLPListOfObjectsGUI::$details_mode = 0

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

ilLPListOfObjectsGUI::$details_type = ''

Definition at line 27 of file class.ilLPListOfObjectsGUI.php.


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