Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00036 include_once 'Services/Tracking/classes/ItemList/class.ilLPObjectItemListGUI.php';
00037
00038 class ilLPSAHSItemListGUI extends ilLPObjectItemListGUI
00039 {
00040 var $child_id = null;
00041
00042 function ilLPSAHSItemListGUI($a_obj_id)
00043 {
00044 parent::ilLPObjectItemListGUI($a_obj_id,'sahs_item');
00045 }
00046
00047 function hasDetails()
00048 {
00049 return false;
00050 }
00051 function setChildId($a_obj_id)
00052 {
00053 $this->child_id = $a_obj_id;
00054 }
00055 function getChildId()
00056 {
00057 return $this->child_id;
00058 }
00059
00060 function __readTitle()
00061 {
00062 return $this->title = $this->status_info['scos_title'][$this->getChildId()];
00063 }
00064 function __readDescription()
00065 {
00066 return $this->description = '';
00067 }
00068
00069 function renderTypeImage()
00070 {
00071 $this->tpl->setCurrentBlock("row_type_image");
00072 $this->tpl->setVariable("TYPE_IMG",ilUtil::getImagePath('icon_'.'sahs'.'.gif'));
00073 $this->tpl->setVariable("TYPE_ALT_IMG",$this->lng->txt('obj_sahs'));
00074 $this->tpl->parseCurrentBlock();
00075 }
00076
00077 function __readUserStatus()
00078 {
00079 include_once 'Services/Tracking/classes/class.ilLPStatusWrapper.php';
00080
00081 if(in_array($this->getCurrentUser(),$this->status_info['failed'][$this->getChildId()]))
00082 {
00083 return $this->status = LP_STATUS_FAILED;
00084 }
00085 if(in_array($this->getCurrentUser(),$this->status_info['completed'][$this->getChildId()]))
00086 {
00087 return $this->status = LP_STATUS_COMPLETED;
00088 }
00089 if(in_array($this->getCurrentUser(),$this->status_info['in_progress'][$this->getChildId()]))
00090 {
00091 return $this->status = LP_STATUS_IN_PROGRESS;
00092 }
00093 else
00094 {
00095 return $this->status = LP_STATUS_NOT_ATTEMPTED;
00096 }
00097 }
00098
00099 function __readUserStatusInfo()
00100 {
00101 return true;
00102 }
00103
00104 function __readMark()
00105 {
00106 return true;
00107 }
00108 function __readComment()
00109 {
00110 return true;
00111 }
00112
00113
00114 }
00115 ?>