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 ilLPObjectiveItemListGUI extends ilLPObjectItemListGUI
00039 {
00040 var $child_id = null;
00041
00042 function ilLPObjectiveItemListGUI($a_obj_id)
00043 {
00044 parent::ilLPObjectItemListGUI($a_obj_id,'objective');
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['objective_title'][$this->getChildId()];
00063 }
00064 function __readDescription()
00065 {
00066 return $this->description = $this->status_info['objective_description'][$this->getChildId()];
00067 }
00068
00069 function renderTypeImage()
00070 {
00071 $this->tpl->setCurrentBlock("row_type_image");
00072 $this->tpl->setVariable("TYPE_IMG",ilUtil::getImagePath('icon_'.'crs'.'.gif'));
00073 $this->tpl->setVariable("TYPE_ALT_IMG",$this->lng->txt('obj_crs'));
00074 $this->tpl->parseCurrentBlock();
00075 }
00076
00077 function __readUserStatus()
00078 {
00079 include_once 'Services/Tracking/classes/class.ilLPStatusWrapper.php';
00080
00081 if(!is_array($this->status_info['completed'][$this->getChildId()]))
00082 {
00083 return $this->status = LP_STATUS_NOT_ATTEMPTED;
00084 }
00085 if(in_array($this->getCurrentUser(),$this->status_info['completed'][$this->getChildId()]))
00086 {
00087 return $this->status = LP_STATUS_COMPLETED;
00088 }
00089 else
00090 {
00091 #if(in_array($this->getCurrentUser(),ilLPStatusWrapper::_getInProgress($this->getId())))
00092 # {
00093 return $this->status = LP_STATUS_NOT_ATTEMPTED;
00094 }
00095 }
00096
00097 function __readUserStatusInfo()
00098 {
00099 return true;
00100 }
00101 function __readMark()
00102 {
00103 return true;
00104 }
00105 function __readComment()
00106 {
00107 return true;
00108 }
00109 }
00110 ?>