• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

Services/Tracking/classes/ItemList/class.ilLPSAHSItemListGUI.php

Go to the documentation of this file.
00001 <?php
00002 /*
00003         +-----------------------------------------------------------------------------+
00004         | ILIAS open source                                                           |
00005         +-----------------------------------------------------------------------------+
00006         | Copyright (c) 1998-2001 ILIAS open source, University of Cologne            |
00007         |                                                                             |
00008         | This program is free software; you can redistribute it and/or               |
00009         | modify it under the terms of the GNU General Public License                 |
00010         | as published by the Free Software Foundation; either version 2              |
00011         | of the License, or (at your option) any later version.                      |
00012         |                                                                             |
00013         | This program is distributed in the hope that it will be useful,             |
00014         | but WITHOUT ANY WARRANTY; without even the implied warranty of              |
00015         | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               |
00016         | GNU General Public License for more details.                                |
00017         |                                                                             |
00018         | You should have received a copy of the GNU General Public License           |
00019         | along with this program; if not, write to the Free Software                 |
00020         | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. |
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 ?>

Generated on Fri Dec 13 2013 13:52:12 for ILIAS Release_3_7_x_branch .rev 46817 by  doxygen 1.7.1