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

Public Member Functions

 ilLPObjectStatisticsGUI ($a_mode, $a_ref_id=0)
 executeCommand ()
 execute command
 applyAccessFilter ()
 resetAccessFilter ()
 access ()
 showAccessGraph ()
 applyTypesFilter ()
 resetTypesFilter ()
 types ()
 showTypesGraph ()
 applyDailyFilter ()
 resetDailyFilter ()
 daily ()
 showDailyGraph ()
 admin ()
 adminSync ()
 confirmDeleteData ()
 deleteData ()
- 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)

Protected Member Functions

 setTabs ()

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

Definition at line 19 of file class.ilLPObjectStatisticsGUI.php.

Member Function Documentation

ilLPObjectStatisticsGUI::access ( )

Definition at line 79 of file class.ilLPObjectStatisticsGUI.php.

References ilLearningProgressBaseGUI\$tpl.

Referenced by applyAccessFilter(), resetAccessFilter(), and showAccessGraph().

{
global $tpl;
$this->tabs_gui->activateSubTab('trac_object_stat_access');
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsTableGUI.php");
$lp_table = new ilLPObjectStatisticsTableGUI($this, "access");
$tpl->setContent($lp_table->getHTML());
}

+ Here is the caller graph for this function:

ilLPObjectStatisticsGUI::admin ( )

Definition at line 205 of file class.ilLPObjectStatisticsGUI.php.

References $ilCtrl, ilLearningProgressBaseGUI\$lng, and ilLearningProgressBaseGUI\$tpl.

Referenced by confirmDeleteData(), and deleteData().

{
global $tpl, $ilToolbar, $lng, $ilCtrl;
$this->tabs_gui->activateSubTab('trac_object_stat_admin');
$ilToolbar->addButton($lng->txt("trac_sync_obj_stats"),
$ilCtrl->getLinkTarget($this, "adminSync"));
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsAdminTableGUI.php");
$lp_table = new ilLPObjectStatisticsAdminTableGUI($this, "admin");
$tpl->setContent($lp_table->getHTML());
}

+ Here is the caller graph for this function:

ilLPObjectStatisticsGUI::adminSync ( )

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

References $ilCtrl, ilLearningProgressBaseGUI\$lng, ilChangeEvent\_syncObjectStats(), and ilUtil\sendSuccess().

{
global $ilCtrl, $lng;
include_once "Services/Tracking/classes/class.ilChangeEvent.php";
ilUtil::sendSuccess($lng->txt("trac_sync_obj_stats_success"), true);
$ilCtrl->redirect($this, "admin");
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::applyAccessFilter ( )

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

References access().

{
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsTableGUI.php");
$lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, false);
$lp_table->resetOffset();
$lp_table->writeFilterToSession();
$this->access();
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::applyDailyFilter ( )

Definition at line 157 of file class.ilLPObjectStatisticsGUI.php.

References daily().

{
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsDailyTableGUI.php");
$lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, false);
$lp_table->resetOffset();
$lp_table->writeFilterToSession();
$this->daily();
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::applyTypesFilter ( )

Definition at line 109 of file class.ilLPObjectStatisticsGUI.php.

References types().

{
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsTypesTableGUI.php");
$lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, false);
$lp_table->resetOffset();
$lp_table->writeFilterToSession();
$this->types();
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::confirmDeleteData ( )

Definition at line 231 of file class.ilLPObjectStatisticsGUI.php.

References $_POST, $ilCtrl, ilLearningProgressBaseGUI\$lng, ilLearningProgressBaseGUI\$tpl, admin(), and ilUtil\sendFailure().

{
global $lng, $tpl, $ilTabs, $ilCtrl;
if(!$_POST["item_id"])
{
ilUtil::sendFailure($lng->txt("no_checkbox"));
return $this->admin();
}
$ilTabs->setBackTarget($lng->txt("back"),
$ilCtrl->getLinkTarget($this, "admin"));
// display confirmation message
include_once("./Services/Utilities/classes/class.ilConfirmationGUI.php");
$cgui = new ilConfirmationGUI();
$cgui->setFormAction($ilCtrl->getFormAction($this));
$cgui->setHeaderText($lng->txt("trac_sure_delete_data"));
$cgui->setCancel($lng->txt("cancel"), "admin");
$cgui->setConfirm($lng->txt("delete"), "deleteData");
// list objects that should be deleted
foreach ($_POST["item_id"] as $i)
{
$caption = $lng->txt("month_".str_pad(substr($i, 5), 2, "0", STR_PAD_LEFT)."_long").
" ".substr($i, 0, 4);
$cgui->addItem("item_id[]", $i, $caption);
}
$tpl->setContent($cgui->getHTML());
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::daily ( )

Definition at line 175 of file class.ilLPObjectStatisticsGUI.php.

References ilLearningProgressBaseGUI\$tpl.

Referenced by applyDailyFilter(), resetDailyFilter(), and showDailyGraph().

{
global $tpl;
$this->tabs_gui->activateSubTab('trac_object_stat_daily');
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsDailyTableGUI.php");
$lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily");
$tpl->setContent($lp_table->getHTML());
}

+ Here is the caller graph for this function:

ilLPObjectStatisticsGUI::deleteData ( )

Definition at line 264 of file class.ilLPObjectStatisticsGUI.php.

References $_POST, ilLearningProgressBaseGUI\$lng, admin(), ilTrQuery\deleteObjectStatistics(), ilUtil\sendFailure(), and ilUtil\sendSuccess().

{
global $lng;
if(!$_POST["item_id"])
{
ilUtil::sendFailure($lng->txt("no_checkbox"));
return $this->admin();
}
include_once "Services/Tracking/classes/class.ilTrQuery.php";
ilUtil::sendSuccess($lng->txt("trac_data_deleted"));
$this->admin();
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::executeCommand ( )

execute command

Definition at line 45 of file class.ilLPObjectStatisticsGUI.php.

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

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

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::ilLPObjectStatisticsGUI (   $a_mode,
  $a_ref_id = 0 
)

Definition at line 21 of file class.ilLPObjectStatisticsGUI.php.

References ilLearningProgressBaseGUI\ilLearningProgressBaseGUI().

{
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::resetAccessFilter ( )

Definition at line 70 of file class.ilLPObjectStatisticsGUI.php.

References access().

{
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsTableGUI.php");
$lp_table = new ilLPObjectStatisticsTableGUI($this, "access", null, false);
$lp_table->resetOffset();
$lp_table->resetFilter();
$this->access();
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::resetDailyFilter ( )

Definition at line 166 of file class.ilLPObjectStatisticsGUI.php.

References daily().

{
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsDailyTableGUI.php");
$lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", null, false);
$lp_table->resetOffset();
$lp_table->resetFilter();
$this->daily();
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::resetTypesFilter ( )

Definition at line 118 of file class.ilLPObjectStatisticsGUI.php.

References types().

{
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsTypesTableGUI.php");
$lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", null, false);
$lp_table->resetOffset();
$lp_table->resetFilter();
$this->types();
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::setTabs ( )
protected

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

Referenced by executeCommand().

{
$this->tabs_gui->addSubTab('trac_object_stat_access',
$this->lng->txt('trac_object_stat_access'),
$this->ctrl->getLinkTarget($this, 'access'));
$this->tabs_gui->addSubTab('trac_object_stat_daily',
$this->lng->txt('trac_object_stat_daily'),
$this->ctrl->getLinkTarget($this, 'daily'));
$this->tabs_gui->addSubTab('trac_object_stat_types',
$this->lng->txt('trac_object_stat_types'),
$this->ctrl->getLinkTarget($this, 'types'));
$this->tabs_gui->addSubTab('trac_object_stat_admin',
$this->lng->txt('trac_object_stat_admin'),
$this->ctrl->getLinkTarget($this, 'admin'));
}

+ Here is the caller graph for this function:

ilLPObjectStatisticsGUI::showAccessGraph ( )

Definition at line 91 of file class.ilLPObjectStatisticsGUI.php.

References $_POST, ilLearningProgressBaseGUI\$lng, ilLearningProgressBaseGUI\$tpl, access(), and ilUtil\sendFailure().

{
global $lng, $tpl;
if(!$_POST["item_id"])
{
ilUtil::sendFailure($lng->txt("no_checkbox"));
return $this->access();
}
$this->tabs_gui->activateSubTab('trac_object_stat_access');
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsTableGUI.php");
$lp_table = new ilLPObjectStatisticsTableGUI($this, "access", $_POST["item_id"]);
$tpl->setContent($lp_table->getGraph($_POST["item_id"]).$lp_table->getHTML());
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::showDailyGraph ( )

Definition at line 187 of file class.ilLPObjectStatisticsGUI.php.

References $_POST, ilLearningProgressBaseGUI\$lng, ilLearningProgressBaseGUI\$tpl, daily(), and ilUtil\sendFailure().

{
global $lng, $tpl;
if(!$_POST["item_id"])
{
ilUtil::sendFailure($lng->txt("no_checkbox"));
return $this->daily();
}
$this->tabs_gui->activateSubTab('trac_object_stat_daily');
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsDailyTableGUI.php");
$lp_table = new ilLPObjectStatisticsDailyTableGUI($this, "daily", $_POST["item_id"]);
$tpl->setContent($lp_table->getGraph($_POST["item_id"]).$lp_table->getHTML());
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::showTypesGraph ( )

Definition at line 139 of file class.ilLPObjectStatisticsGUI.php.

References $_POST, ilLearningProgressBaseGUI\$lng, ilLearningProgressBaseGUI\$tpl, ilUtil\sendFailure(), and types().

{
global $lng, $tpl;
if(!$_POST["item_id"])
{
ilUtil::sendFailure($lng->txt("no_checkbox"));
return $this->types();
}
$this->tabs_gui->activateSubTab('trac_object_stat_types');
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsTypesTableGUI.php");
$lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types", $_POST["item_id"]);
$tpl->setContent($lp_table->getGraph($_POST["item_id"]).$lp_table->getHTML());
}

+ Here is the call graph for this function:

ilLPObjectStatisticsGUI::types ( )

Definition at line 127 of file class.ilLPObjectStatisticsGUI.php.

References ilLearningProgressBaseGUI\$tpl.

Referenced by applyTypesFilter(), resetTypesFilter(), and showTypesGraph().

{
global $tpl;
$this->tabs_gui->activateSubTab('trac_object_stat_types');
include_once("./Services/Tracking/classes/class.ilLPObjectStatisticsTypesTableGUI.php");
$lp_table = new ilLPObjectStatisticsTypesTableGUI($this, "types");
$tpl->setContent($lp_table->getHTML());
}

+ Here is the caller graph for this function:


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