ILIAS  Release_3_10_x_branch Revision 61812
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLPItemListGUI Class Reference
+ Inheritance diagram for ilLPItemListGUI:
+ Collaboration diagram for ilLPItemListGUI:

Public Member Functions

 ilLPItemListGUI ($a_id, $a_type)
 isAnonymized ()
 setCmdClass ($a_class)
 getCmdClass ()
 setRefId ($a_ref_id)
 getRefId ()
 getId ()
 getType ()
 setCurrentUser ($a_user)
 getCurrentUser ()
 getMode ()
 getTitle ()
 getDescription ()
 getMark ()
 getComment ()
 getTypicalLearningTime ()
 hasDetails ()
 enabled ($a_key)
 enable ($a_key)
 disable ($a_key)
 setIndentLevel ($a_level)
 getUserStatus ()
 getEditingTime ()
 showTimingWarning ()
 addCheckBox ($a_check)
 __readMode ()
 __readStatusInfo ()
 __readUserStatus ()
 __readTypicalLearningTime ()
 __readTimings ()
 getHTML ()
 read ()
 Read all necassary data for output.
 readUserInfo ()
 readTimings ()
 renderTypeImage ()
 renderContainerProgress ()
 renderSimpleProgress ()
 renderSimpleProgressFO ()
 renderObjectList ()
 renderObjectListFO ()
 renderObjectDetails ()
 renderObjectDetailsXML (&$writer)
renderObjectInfo ($enable_details=false)
 renderObjectInfoXML (&$writer, $a_enable_progress=false, $a_enable_user_info=false)
 __readEditingTime ()
 __getPercent ($max, $reached)

Data Fields

 $db = null
 $anonymized = false

Detailed Description

Definition at line 40 of file class.ilLPItemListGUI.php.

Member Function Documentation

ilLPItemListGUI::__getPercent (   $max,
  $reached 
)

Definition at line 774 of file class.ilLPItemListGUI.php.

Referenced by ilLPObjectItemListGUI\__readUserStatusInfo().

{
if(!$max)
{
return "0%";
}
return sprintf("%.2f%%",$reached / $max * 100);
}

+ Here is the caller graph for this function:

ilLPItemListGUI::__readEditingTime ( )

Definition at line 755 of file class.ilLPItemListGUI.php.

References enabled(), and getCurrentUser().

Referenced by readUserInfo().

{
if(!$this->enabled('timings'))
{
return false;
}
if($this->timings['item']['changeable'] and $this->timings['user'][$this->getCurrentUser()]['end'])
{
$end = $this->timings['user'][$this->getCurrentUser()]['end'];
}
else
{
$end = $this->timings['item']['suggestion_end'];
}
$this->editing_time = $end;
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPItemListGUI::__readMode ( )

Reimplemented in ilLPEventListGUI.

Definition at line 181 of file class.ilLPItemListGUI.php.

References ilLPObjSettings\_lookupMode(), and getId().

Referenced by read().

{
include_once 'Services/Tracking/classes/class.ilLPObjSettings.php';
$this->mode = ilLPObjSettings::_lookupMode($this->getId());
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPItemListGUI::__readStatusInfo ( )

Reimplemented in ilLPObjectItemListGUI, and ilLPEventListGUI.

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

Referenced by read().

{
}

+ Here is the caller graph for this function:

ilLPItemListGUI::__readTimings ( )

Definition at line 196 of file class.ilLPItemListGUI.php.

{
$this->timings = array();
}
ilLPItemListGUI::__readTypicalLearningTime ( )

Reimplemented in ilLPObjectItemListGUI, and ilLPEventListGUI.

Definition at line 193 of file class.ilLPItemListGUI.php.

Referenced by read().

{
}

+ Here is the caller graph for this function:

ilLPItemListGUI::__readUserStatus ( )

Reimplemented in ilLPEventListGUI, ilLPObjectItemListGUI, ilLPObjectiveItemListGUI, and ilLPSAHSItemListGUI.

Definition at line 190 of file class.ilLPItemListGUI.php.

Referenced by readUserInfo().

{
}

+ Here is the caller graph for this function:

ilLPItemListGUI::addCheckBox (   $a_check)

Definition at line 176 of file class.ilLPItemListGUI.php.

{
$this->checkbox = $a_check;
}
ilLPItemListGUI::disable (   $a_key)

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

References enabled().

{
$this->enabled[$key] = false;
}

+ Here is the call graph for this function:

ilLPItemListGUI::enable (   $a_key)

Definition at line 135 of file class.ilLPItemListGUI.php.

References enabled().

{
$this->enabled[$key] = true;
}

+ Here is the call graph for this function:

ilLPItemListGUI::enabled (   $a_key)

Definition at line 130 of file class.ilLPItemListGUI.php.

Referenced by __readEditingTime(), disable(), enable(), renderObjectDetailsXML(), renderObjectList(), and renderSimpleProgress().

{
return $this->enabled[$key];
}

+ Here is the caller graph for this function:

ilLPItemListGUI::getCmdClass ( )

Definition at line 69 of file class.ilLPItemListGUI.php.

Referenced by ilLPObjectItemListGUI\renderPath().

{
return $this->cmd_class;
}

+ Here is the caller graph for this function:

ilLPItemListGUI::getComment ( )

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

References $comment.

Referenced by renderObjectDetails(), renderObjectDetailsXML(), and renderObjectInfoXML().

{
}

+ Here is the caller graph for this function:

ilLPItemListGUI::getDescription ( )
ilLPItemListGUI::getEditingTime ( )

Definition at line 154 of file class.ilLPItemListGUI.php.

{
return $this->editing_time;
}
ilLPItemListGUI::getHTML ( )

Definition at line 201 of file class.ilLPItemListGUI.php.

{
return $this->html;
}
ilLPItemListGUI::getMark ( )

Definition at line 114 of file class.ilLPItemListGUI.php.

Referenced by renderObjectDetailsXML(), and renderObjectInfoXML().

{
return $this->mark;
}

+ Here is the caller graph for this function:

ilLPItemListGUI::getMode ( )

Definition at line 100 of file class.ilLPItemListGUI.php.

Referenced by ilLPObjectItemListGUI\__readUserStatusInfo(), renderObjectInfo(), and renderObjectInfoXML().

{
return $this->mode;
}

+ Here is the caller graph for this function:

ilLPItemListGUI::getRefId ( )

Definition at line 78 of file class.ilLPItemListGUI.php.

References $ref_id.

Referenced by readTimings().

{
return $this->ref_id;
}

+ Here is the caller graph for this function:

ilLPItemListGUI::getType ( )

Definition at line 86 of file class.ilLPItemListGUI.php.

Referenced by renderObjectInfoXML(), and renderTypeImage().

{
return $this->type;
}

+ Here is the caller graph for this function:

ilLPItemListGUI::getTypicalLearningTime ( )

Definition at line 122 of file class.ilLPItemListGUI.php.

Referenced by renderObjectInfo(), and renderObjectInfoXML().

{
return $this->tlt ? $this->tlt : 0;
}

+ Here is the caller graph for this function:

ilLPItemListGUI::getUserStatus ( )

Definition at line 149 of file class.ilLPItemListGUI.php.

{
return $this->status;
}
ilLPItemListGUI::hasDetails ( )

Reimplemented in ilLPEventListGUI, ilLPObjectiveItemListGUI, and ilLPSAHSItemListGUI.

Definition at line 126 of file class.ilLPItemListGUI.php.

{
return true;
}
ilLPItemListGUI::ilLPItemListGUI (   $a_id,
  $a_type 
)

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

References $ilCtrl, $ilErr, and $lng.

Referenced by ilLPObjectItemListGUI\ilLPObjectItemListGUI().

{
global $ilDB,$lng,$ilErr,$tree,$ilObjDataCache,$ilCtrl;
$this->db =& $ilDB;
$this->lng =& $lng;
$this->err =& $ilErr;
$this->tree =& $tree;
$this->obj_cache = $ilObjDataCache;
$this->ctrl =& $ilCtrl;
$this->id = $a_id;
$this->type = $a_type;
}

+ Here is the caller graph for this function:

ilLPItemListGUI::isAnonymized ( )

Definition at line 60 of file class.ilLPItemListGUI.php.

References $anonymized.

Referenced by ilLPObjectItemListGUI\renderPath().

{
}

+ Here is the caller graph for this function:

ilLPItemListGUI::read ( )

Read all necassary data for output.

public

Definition at line 211 of file class.ilLPItemListGUI.php.

References __readMode(), __readStatusInfo(), and __readTypicalLearningTime().

{
$this->__readMode();
$this->__readStatusInfo();
$this->__readTitle();
$this->__readDescription();
}

+ Here is the call graph for this function:

ilLPItemListGUI::readTimings ( )

Definition at line 232 of file class.ilLPItemListGUI.php.

References ilTimingCache\_getTimings(), and getRefId().

{
if($this->getRefId())
{
include_once 'Modules/Course/classes/Timings/class.ilTimingCache.php';
$this->timings =& ilTimingCache::_getTimings($this->getRefId());
}
}

+ Here is the call graph for this function:

ilLPItemListGUI::readUserInfo ( )

Reimplemented in ilLPUserItemListGUI.

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

References __readEditingTime(), __readUserStatus(), and getCurrentUser().

{
if($this->getCurrentUser())
{
$this->__readMark();
$this->__readComment();
$this->__readUserStatus();
$this->__readUserStatusInfo();
}
}

+ Here is the call graph for this function:

ilLPItemListGUI::renderContainerProgress ( )

Definition at line 250 of file class.ilLPItemListGUI.php.

References getDescription(), getTitle(), and renderTypeImage().

{
$this->tpl = new ilTemplate('tpl.lp_item_list_row.html',true,true,'Services/Tracking');
$this->renderTypeImage();
$this->tpl->setVariable("TXT_TITLE",$this->getTitle());
if(strlen($this->getDescription()))
{
$this->tpl->setVariable("TXT_DESC",$this->getDescription());
}
// Status info
if($this->user_status_info)
{
$this->tpl->setCurrentBlock("status_info");
$this->tpl->setVariable("STATUS_PROP",$this->user_status_info[0]);
$this->tpl->setVariable("STATUS_VAL",$this->user_status_info[1]);
$this->tpl->parseCurrentBlock();
}
// Status
$this->tpl->setCurrentBlock("item_property");
$this->tpl->setVariable("TXT_PROP",$this->lng->txt('trac_status'));
$this->tpl->setVariable("VAL_PROP",$this->lng->txt($this->getUserStatus()));
$this->tpl->parseCurrentBlock();
for($i = 0;$i < $this->level;$i++)
{
$this->tpl->touchBlock('start_indent');
$this->tpl->touchBlock('end_indent');
}
$this->html = $this->tpl->get();
}

+ Here is the call graph for this function:

ilLPItemListGUI::renderObjectDetails ( )

Definition at line 464 of file class.ilLPItemListGUI.php.

References getComment(), getDescription(), getTitle(), and renderTypeImage().

{
$this->tpl = new ilTemplate('tpl.lp_item_list_row.html',true,true,'Services/Tracking');
$this->renderTypeImage();
if(is_array($this->checkbox))
{
$this->tpl->setVariable("CHECK_NAME",$this->checkbox[0]);
$this->tpl->setVariable("CHECK_VALUE",$this->checkbox[1]);
if($this->checkbox[2])
{
$this->tpl->setVariable("CHECK_CHECKED",'checked="checked"');
}
}
$this->tpl->setVariable("TXT_TITLE",$this->getTitle());
if(strlen($this->getDescription()))
{
$this->tpl->setVariable("TXT_DESC",$this->getDescription());
}
// Status info
if($this->user_status_info)
{
$this->tpl->setCurrentBlock("status_info");
$this->tpl->setVariable("STATUS_PROP",$this->user_status_info[0]);
$this->tpl->setVariable("STATUS_VAL",$this->user_status_info[1]);
$this->tpl->parseCurrentBlock();
}
// Status
$this->tpl->setCurrentBlock("item_property");
$this->tpl->setVariable("TXT_PROP",$this->lng->txt('trac_status'));
$this->tpl->setVariable("VAL_PROP",$this->lng->txt($this->getUserStatus()));
$this->tpl->parseCurrentBlock();
// Comment
if(strlen($this->getComment()))
{
$this->tpl->setCurrentBlock("info_property");
$this->tpl->setVariable("INFO_TXT_PROP",$this->lng->txt('trac_comment'));
$this->tpl->setVariable("INFO_VAL_PROP",$this->getComment());
$this->tpl->parseCurrentBlock();
}
for($i = 0;$i < $this->level;$i++)
{
$this->tpl->touchBlock('start_indent');
$this->tpl->touchBlock('end_indent');
}
$this->html = $this->tpl->get();
}

+ Here is the call graph for this function:

ilLPItemListGUI::renderObjectDetailsXML ( $writer)

Definition at line 519 of file class.ilLPItemListGUI.php.

References enabled(), ilDatePresentation\formatDate(), getComment(), getDescription(), getMark(), getTitle(), IL_CAL_UNIX, and showTimingWarning().

{
$writer->xmlElement('ItemText',array('Style' => 'title'),$this->getTitle());
if(strlen($this->getDescription()))
{
$writer->xmlElement('ItemText',array('Style' => 'description'),$this->getDescription());
}
// User status
$writer->xmlStartTag('ItemInfo',array('Style' => 'alert'));
$writer->xmlElement('ItemInfoName',null,$this->lng->txt('trac_status').': ');
$writer->xmlElement('ItemInfoValue',null,$this->lng->txt($this->getUserStatus()));
$writer->xmlEndTag('ItemInfo');
// Status info
if($this->user_status_info)
{
$writer->xmlStartTag('ItemInfo',array('Style' => 'text'));
$writer->xmlElement('ItemInfoName',null,$this->user_status_info[0].': ');
$writer->xmlElement('ItemInfoValue',null,$this->user_status_info[1]);
$writer->xmlEndTag('ItemInfo');
}
// Comment
if(strlen($this->getComment()))
{
$writer->xmlStartTag('ItemInfo',array('Style' => 'text'));
$writer->xmlElement('ItemInfoName',null,$this->lng->txt('trac_comment').': ');
$writer->xmlElement('ItemInfoValue',null,$this->getComment());
$writer->xmlEndTag('ItemInfo');
}
if(strlen($this->getMark()))
{
$writer->xmlStartTag('ItemInfo',array('Style' => 'text'));
$writer->xmlElement('ItemInfoName',null,$this->lng->txt('trac_mark').': ');
$writer->xmlElement('ItemInfoValue',null,$this->getMark());
$writer->xmlEndTag('ItemInfo');
}
if($this->enabled('timings') and $this->editing_time)
{
$writer->xmlStartTag('ItemInfo',array('Style' => $this->showTimingWarning() ?
'alert' :
'text'));
$writer->xmlElement('ItemInfoName',null,$this->lng->txt('trac_head_timing').": ");
$writer->xmlElement('ItemInfoValue',null,ilDatePresentation::formatDate(new ilDateTime($this->editing_time,IL_CAL_UNIX)));
$writer->xmlEndTag('ItemInfo');
}
}

+ Here is the call graph for this function:

& ilLPItemListGUI::renderObjectInfo (   $enable_details = false)

Definition at line 569 of file class.ilLPItemListGUI.php.

References ilLPObjSettings\_mode2Text(), ilFormat\_secondsToString(), getDescription(), getMode(), getTitle(), getTypicalLearningTime(), and LP_MODE_VISITS.

{
include_once("./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
$info = new ilInfoScreenGUI($this);
$info->setFormAction($this->ctrl->getFormActionByClass('illplistofprogressgui'));
$info->addSection($this->lng->txt('details'));
// Title
$info->addProperty($this->lng->txt('title'),$this->getTitle());
// Description
if(strlen($desc = $this->getDescription()))
{
$info->addProperty($this->lng->txt('description'),$desc);
}
// Mode
$info->addProperty($this->lng->txt('trac_mode'),ilLPObjSettings::_mode2Text($this->getMode()));
// Visits
if($this->getMode() == LP_MODE_VISITS)
{
$info->addProperty($this->lng->txt('trac_required_visits'),$this->status_info['visits']);
}
// TLT
{
$info->addProperty($this->lng->txt('meta_typical_learning_time'),ilFormat::_secondsToString($this->getTypicalLearningTime()));
}
return $info;
}

+ Here is the call graph for this function:

ilLPItemListGUI::renderObjectInfoXML ( $writer,
  $a_enable_progress = false,
  $a_enable_user_info = false 
)

Definition at line 604 of file class.ilLPItemListGUI.php.

References ilOnlineTracking\_getOnlineTime(), ilLearningProgress\_getProgress(), ilObjUser\_lookupLastLogin(), ilObjUser\_lookupLogin(), ilLPObjSettings\_mode2Text(), ilFormat\_secondsToString(), ilDatePresentation\formatDate(), getComment(), getCurrentUser(), getDescription(), getId(), getMark(), getMode(), getTitle(), getType(), getTypicalLearningTime(), IL_CAL_DATETIME, and LP_MODE_VISITS.

{
global $ilObjDataCache;
$writer->xmlStartTag('Info');
$writer->xmlStartTag('InfoBody');
if($a_enable_user_info)
{
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'title','Colspan' => '2'),$this->lng->txt('trac_user_data'));
$writer->xmlEndTag('InfoRow');
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('username'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),ilObjUser::_lookupLogin($this->getCurrentUser()));
$writer->xmlEndTag('InfoRow');
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('name'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),$ilObjDataCache->lookupTitle($this->getCurrentUser()));
$writer->xmlEndTag('InfoRow');
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('last_login'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),
$writer->xmlEndTag('InfoRow');
include_once 'Services/Tracking/classes/class.ilOnlineTracking.php';
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('trac_total_online'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),
$writer->xmlEndTag('InfoRow');
}
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'title','Colspan' => 2),$this->lng->txt('details'));
$writer->xmlEndTag('InfoRow');
// Title
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('title'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),$this->getTitle());
$writer->xmlEndTag('InfoRow');
// Description
if(strlen($desc = $this->getDescription()))
{
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('description'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),$this->getDescription());
$writer->xmlEndTag('InfoRow');
}
// Mode
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('trac_mode'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),ilLPObjSettings::_mode2Text($this->getMode()));
$writer->xmlEndTag('InfoRow');
// Visits
if($this->getMode() == LP_MODE_VISITS)
{
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('trac_required_visits'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),$this->status_info['visits']);
$writer->xmlEndTag('InfoRow');
}
// Tlt
{
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('meta_typical_learning_time'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),
$writer->xmlEndTag('InfoRow');
}
if($a_enable_progress)
{
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'title','Colspan' => 2),$this->lng->txt('trac_learning_progress'));
$writer->xmlEndTag('InfoRow');
switch($this->getType())
{
case 'lm':
case 'htlm':
include_once 'Services/Tracking/classes/class.ilLearningProgress.php';
$progress = ilLearningProgress::_getProgress($this->getCurrentUser(),$this->getId());
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('last_access'));
if($progress['access_time'])
{
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),
}
else
{
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),
$this->lng->txt('trac_not_accessed'));
}
$writer->xmlEndTag('InfoRow');
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('trac_visits'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),$progress['visits']);
$writer->xmlEndTag('InfoRow');
break;
}
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('trac_status'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),$this->lng->txt($this->getUserStatus()));
$writer->xmlEndTag('InfoRow');
// Status info
if($this->user_status_info)
{
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->user_status_info[0]);
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),$this->user_status_info[1]);
$writer->xmlEndTag('InfoRow');
}
// Mark
if($this->getMark())
{
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('trac_mark'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),$this->getMark());
$writer->xmlEndTag('InfoRow');
}
// Comment
if($this->getComment())
{
$writer->xmlStartTag('InfoRow');
$writer->xmlElement('InfoColumn',array('Style' => 'option'),$this->lng->txt('trac_comment'));
$writer->xmlElement('InfoColumn',array('Style' => 'option_value'),$this->getComment());
$writer->xmlEndTag('InfoRow');
}
}
$writer->xmlEndTag('InfoBody');
$writer->xmlEndTag('Info');
}

+ Here is the call graph for this function:

ilLPItemListGUI::renderObjectList ( )

Definition at line 361 of file class.ilLPItemListGUI.php.

References ilLPStatusWrapper\_getCountCompleted(), ilLPStatusWrapper\_getCountFailed(), ilLPStatusWrapper\_getCountInProgress(), ilLPStatusWrapper\_getCountNotAttempted(), enabled(), getDescription(), getId(), and getTitle().

{
$this->tpl = new ilTemplate('tpl.lp_item_list_row.html',true,true,'Services/Tracking');
if(is_array($this->checkbox))
{
$this->tpl->setVariable("CHECK_NAME",$this->checkbox[0]);
$this->tpl->setVariable("CHECK_VALUE",$this->checkbox[1]);
if($this->checkbox[2])
{
$this->tpl->setVariable("CHECK_CHECKED",'checked="checked"');
}
}
$this->tpl->setVariable("TXT_TITLE",$this->getTitle());
if(strlen($this->getDescription()))
{
$this->tpl->setVariable("TXT_DESC",$this->getDescription());
}
// Status info
include_once 'Services/Tracking/classes/class.ilLPStatusWrapper.php';
{
$this->tpl->setCurrentBlock("item_property");
$this->tpl->setVariable("TXT_PROP",$this->lng->txt('trac_not_attempted'));
$this->tpl->setVariable("VAL_PROP",$num_na);
$this->tpl->parseCurrentBlock();
$this->tpl->touchBlock('newline_prop');
}
$this->tpl->setCurrentBlock("item_property");
$this->tpl->setVariable("TXT_PROP",$this->lng->txt('trac_in_progress'));
$this->tpl->setVariable("VAL_PROP",ilLPStatusWrapper::_getCountInProgress($this->getId()));
$this->tpl->parseCurrentBlock();
$this->tpl->touchBlock('newline_prop');
$this->tpl->setCurrentBlock("item_property");
$this->tpl->setVariable("TXT_PROP",$this->lng->txt('trac_completed'));
$this->tpl->setVariable("VAL_PROP",ilLPStatusWrapper::_getCountCompleted($this->getId()));
$this->tpl->parseCurrentBlock();
if($num_failed = ilLPStatusWrapper::_getCountFailed($this->getId()))
{
$this->tpl->touchBlock('newline_prop');
$this->tpl->setCurrentBlock("item_property");
$this->tpl->setVariable("TXT_PROP",$this->lng->txt('trac_failed'));
$this->tpl->setVariable("VAL_PROP",ilLPStatusWrapper::_getCountFailed($this->getId()));
$this->tpl->parseCurrentBlock();
}
// Path
if($this->enabled('path'))
{
$this->renderPath(false);
}
$this->html = $this->tpl->get();
}

+ Here is the call graph for this function:

ilLPItemListGUI::renderObjectListFO ( )

Definition at line 421 of file class.ilLPItemListGUI.php.

References $tpl, ilLPStatusWrapper\_getCountCompleted(), ilLPStatusWrapper\_getCountFailed(), ilLPStatusWrapper\_getCountInProgress(), ilLPStatusWrapper\_getCountNotAttempted(), ilXmlWriter\_xmlEscapeData(), getDescription(), getId(), and getTitle().

{
global $tpl;
$this->tpl =& $tpl;
if(strlen($this->getDescription()))
{
$this->tpl->setCurrentBlock("description");
$this->tpl->setVariable("OBJ_DESC",ilXmlWriter::_xmlEscapeData($this->getDescription()));
$this->tpl->parseCurrentBlock();
}
include_once 'Services/Tracking/classes/class.ilLPStatusWrapper.php';
{
$this->tpl->setCurrentBlock("status_row");
$this->tpl->setVariable("STATUS_PROP",ilXmlWriter::_xmlEscapeData($this->lng->txt('trac_not_attempted')));
$this->tpl->setVariable("STATUS_VAL",ilLPStatusWrapper::_getCountNotAttempted($this->getId()));
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("status_row");
$this->tpl->setVariable("STATUS_PROP",ilXmlWriter::_xmlEscapeData($this->lng->txt('trac_in_progress')));
$this->tpl->setVariable("STATUS_VAL",ilLPStatusWrapper::_getCountInProgress($this->getId()));
$this->tpl->parseCurrentBlock();
$this->tpl->setCurrentBlock("status_row");
$this->tpl->setVariable("STATUS_PROP",ilXmlWriter::_xmlEscapeData($this->lng->txt('trac_completed')));
$this->tpl->setVariable("STATUS_VAL",ilLPStatusWrapper::_getCountCompleted($this->getId()));
$this->tpl->parseCurrentBlock();
if($num_failed = ilLPStatusWrapper::_getCountFailed($this->getId()))
{
$this->tpl->setCurrentBlock("status_row");
$this->tpl->setVariable("STATUS_PROP",$this->lng->txt('trac_failed'));
$this->tpl->setVariable("STATUS_VAL",ilLPStatusWrapper::_getCountFailed($this->getId()));
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("item");
$this->tpl->setVariable("OBJ_TITLE",ilXmlWriter::_xmlEscapeData($this->getTitle()));
$this->tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

ilLPItemListGUI::renderSimpleProgress ( )

Definition at line 285 of file class.ilLPItemListGUI.php.

References enabled(), getDescription(), and getTitle().

{
$this->tpl = new ilTemplate('tpl.lp_item_list_row.html',true,true,'Services/Tracking');
if(is_array($this->checkbox))
{
$this->tpl->setVariable("CHECK_NAME",$this->checkbox[0]);
$this->tpl->setVariable("CHECK_VALUE",$this->checkbox[1]);
if($this->checkbox[2])
{
$this->tpl->setVariable("CHECK_CHECKED",'checked="checked"');
}
}
$this->tpl->setVariable("TXT_TITLE",$this->getTitle());
if(strlen($this->getDescription()))
{
$this->tpl->setVariable("TXT_DESC",$this->getDescription());
}
// Status info
if($this->user_status_info)
{
$this->tpl->setCurrentBlock("status_info");
$this->tpl->setVariable("STATUS_PROP",$this->user_status_info[0]);
$this->tpl->setVariable("STATUS_VAL",$this->user_status_info[1]);
$this->tpl->parseCurrentBlock();
}
// Status
$this->tpl->setCurrentBlock("item_property");
$this->tpl->setVariable("TXT_PROP",$this->lng->txt('trac_status'));
$this->tpl->setVariable("VAL_PROP",$this->lng->txt($this->getUserStatus()));
$this->tpl->parseCurrentBlock();
// Path
if($this->enabled('path'))
{
$this->renderPath(true);
}
$this->html = $this->tpl->get();
}

+ Here is the call graph for this function:

ilLPItemListGUI::renderSimpleProgressFO ( )

Definition at line 329 of file class.ilLPItemListGUI.php.

References $tpl, ilXmlWriter\_xmlEscapeData(), getDescription(), and getTitle().

{
global $tpl;
$this->tpl =& $tpl;
if(strlen($this->getDescription()))
{
$this->tpl->setCurrentBlock("description");
$this->tpl->setVariable("OBJ_DESC",ilXmlWriter::_xmlEscapeData($this->getDescription()));
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("status_row");
$this->tpl->setVariable("STATUS_PROP",ilXmlWriter::_xmlEscapeData($this->lng->txt('trac_status')));
$this->tpl->setVariable("STATUS_VAL",ilXmlWriter::_xmlEscapeData($this->lng->txt($this->getUserStatus())));
$this->tpl->parseCurrentBlock();
if($this->user_status_info)
{
$this->tpl->setCurrentBlock("status_row");
$this->tpl->setVariable("STATUS_PROP",ilXmlWriter::_xmlEscapeData($this->user_status_info[0]));
$this->tpl->setVariable("STATUS_VAL",ilXmlWriter::_xmlEscapeData($this->user_status_info[1]));
$this->tpl->parseCurrentBlock();
}
$this->tpl->setCurrentBlock("item");
$this->tpl->setVariable("OBJ_TITLE",ilXmlWriter::_xmlEscapeData($this->getTitle()));
$this->tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

ilLPItemListGUI::renderTypeImage ( )

Reimplemented in ilLPEventListGUI, ilLPUserItemListGUI, ilLPObjectiveItemListGUI, and ilLPSAHSItemListGUI.

Definition at line 240 of file class.ilLPItemListGUI.php.

References getId(), getType(), and ilUtil\getTypeIconPath().

Referenced by renderContainerProgress(), and renderObjectDetails().

{
$this->tpl->setCurrentBlock("row_type_image");
$this->tpl->setVariable('TYPE_IMG',ilUtil::getTypeIconPath($this->getType(),$this->getId(),'small'));
#$this->tpl->setVariable("TYPE_IMG",ilUtil::getImagePath('icon_'.$this->getType().'.gif'));
$this->tpl->setVariable("TYPE_ALT_IMG",$this->lng->txt('obj_'.$this->getType()));
$this->tpl->parseCurrentBlock();
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

ilLPItemListGUI::setCmdClass (   $a_class)

Definition at line 65 of file class.ilLPItemListGUI.php.

{
$this->cmd_class = $a_class;
}
ilLPItemListGUI::setCurrentUser (   $a_user)

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

{
$this->user = $a_user;
}
ilLPItemListGUI::setIndentLevel (   $a_level)

Definition at line 144 of file class.ilLPItemListGUI.php.

{
$this->level = $a_level;
}
ilLPItemListGUI::setRefId (   $a_ref_id)

Definition at line 74 of file class.ilLPItemListGUI.php.

{
$this->ref_id = $a_ref_id;
}
ilLPItemListGUI::showTimingWarning ( )

Definition at line 159 of file class.ilLPItemListGUI.php.

References LP_STATUS_COMPLETED.

Referenced by renderObjectDetailsXML().

{
if(!$this->editing_time)
{
return false;
}
if($this->status == LP_STATUS_COMPLETED)
{
return false;
}
#print_r('<br>');
#print_r(date('Y-m-d H:i',$this->editing_time));
#print_r('<br>');
#print_r(date('Y-m-d H:i',time()));
return $this->editing_time < time();
}

+ Here is the caller graph for this function:

Field Documentation

ilLPItemListGUI::$anonymized = false

Definition at line 43 of file class.ilLPItemListGUI.php.

Referenced by isAnonymized().

ilLPItemListGUI::$db = null

Definition at line 42 of file class.ilLPItemListGUI.php.


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