ILIAS  Release_4_4_x_branch Revision 61816
 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)
 isAnonymized ()
 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
const LP_CONTEXT_PERSONAL_DESKTOP = 1
const LP_CONTEXT_ADMINISTRATION = 2
const LP_CONTEXT_REPOSITORY = 3
const LP_CONTEXT_USER_FOLDER = 4
const LP_CONTEXT_ORG_UNIT = 5
const LP_ACTIVE_SETTINGS = 1
const LP_ACTIVE_OBJECTS = 2
const LP_ACTIVE_PROGRESS = 3
const LP_ACTIVE_LM_STATISTICS = 4
const LP_ACTIVE_USERS = 5
const LP_ACTIVE_SUMMARY = 6
const LP_ACTIVE_OBJSTATACCESS = 7
const LP_ACTIVE_OBJSTATTYPES = 8
const LP_ACTIVE_OBJSTATDAILY = 9
const LP_ACTIVE_OBJSTATADMIN = 10
const LP_ACTIVE_MATRIX = 11

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)
- Protected Attributes inherited from ilLearningProgressBaseGUI
 $anonymized

Detailed Description

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

Member Function Documentation

ilLPListOfObjectsGUI::__initDetails (   $a_details_id)

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

References $_GET, ilObjectLP\getInstance(), 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);
include_once 'Services/Object/classes/class.ilObjectLP.php';
$olp = ilObjectLP::getInstance($this->details_obj_id);
$this->details_mode = $olp->getCurrentMode();
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPListOfObjectsGUI::__listObjects ( )

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

References $ilUser, and ilLearningProgressBaseGUI\__getLegendHTML().

Referenced by show().

{
global $ilUser,$ilObjDataCache;
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.lp_list_objects.html','Services/Tracking');
include_once("./Services/Tracking/classes/repository_statistics/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 181 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/repository_statistics/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 143 of file class.ilLPListOfObjectsGUI.php.

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

Referenced by show(), and updateUser().

{
global $ilToolbar;
$this->tpl->addBlockFile('ADM_CONTENT','adm_content','tpl.lp_loo.html','Services/Tracking');
// Show back button
if($this->getMode() == self::LP_CONTEXT_PERSONAL_DESKTOP or
$this->getMode() == self::LP_CONTEXT_ADMINISTRATION)
{
$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', '');
}
}
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 116 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 40 of file class.ilLPListOfObjectsGUI.php.

References $_GET, $cmd, $ilUser, 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/repository_statistics/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 'iltrsummarytablegui':
$cmd = "showObjectSummary";
if(!$this->details_id)
{
$this->details_id = ROOT_FOLDER_ID;
$cmd = "show";
}
include_once './Services/Tracking/classes/repository_statistics/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/repository_statistics/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/repository_statistics/class.ilTrObjectUsersPropsTableGUI.php';
$table_gui = new ilTrObjectUsersPropsTableGUI($this, "details", $this->details_obj_id, $this->details_id);
$this->ctrl->forwardCommand($table_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 28 of file class.ilLPListOfObjectsGUI.php.

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

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

+ Here is the call graph for this function:

ilLPListOfObjectsGUI::show ( )

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

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

{
// Clear table offset
$this->ctrl->saveParameter($this,'offset',0);
// Show only detail of current repository item if called from repository
switch($this->getMode())
{
case self::LP_CONTEXT_REPOSITORY:
$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 310 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/repository_statistics/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 340 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/repository_statistics/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 94 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 204 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/repository_statistics/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 24 of file class.ilLPListOfObjectsGUI.php.

Referenced by editUser(), and updateUser().

ilLPListOfObjectsGUI::$details_mode = 0

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

ilLPListOfObjectsGUI::$details_type = ''

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


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