Public Member Functions | |
ilLPEventListGUI ($a_obj_id) | |
hasDetails () | |
__readMode () | |
__readStatusInfo () | |
__readTypicalLearningTime () | |
__readTitle () | |
__readDescription () | |
renderTypeImage () | |
__readMark () | |
__readComment () | |
__readUserStatus () | |
Data Fields | |
$child_id = null |
Definition at line 38 of file class.ilLPEventListGUI.php.
ilLPEventListGUI::__readComment | ( | ) |
Reimplemented from ilLPObjectItemListGUI.
Definition at line 91 of file class.ilLPEventListGUI.php.
References ilEventParticipants::_lookupComment(), ilLPItemListGUI::getCurrentUser(), and ilLPItemListGUI::getId().
{ include_once './course/classes/Event/class.ilEventParticipants.php'; $this->comment = ilEventParticipants::_lookupComment($this->getId(),$this->getCurrentUser()); }
ilLPEventListGUI::__readDescription | ( | ) |
Reimplemented from ilLPObjectItemListGUI.
Definition at line 73 of file class.ilLPEventListGUI.php.
{ return $this->description = $this->status_info['description']; }
ilLPEventListGUI::__readMark | ( | ) |
Reimplemented from ilLPObjectItemListGUI.
Definition at line 86 of file class.ilLPEventListGUI.php.
References ilEventParticipants::_lookupMark(), ilLPItemListGUI::getCurrentUser(), and ilLPItemListGUI::getId().
{ include_once './course/classes/Event/class.ilEventParticipants.php'; $this->mark = ilEventParticipants::_lookupMark($this->getId(),$this->getCurrentUser()); }
ilLPEventListGUI::__readMode | ( | ) |
Reimplemented from ilLPItemListGUI.
Definition at line 52 of file class.ilLPEventListGUI.php.
{
include_once 'Services/Tracking/classes/class.ilLPObjSettings.php';
$this->mode = LP_MODE_EVENT;
}
ilLPEventListGUI::__readStatusInfo | ( | ) |
Reimplemented from ilLPObjectItemListGUI.
Definition at line 58 of file class.ilLPEventListGUI.php.
References ilLPStatusWrapper::_getStatusInfoByType(), and ilLPItemListGUI::getId().
{ include_once 'Services/Tracking/classes/class.ilLPStatusWrapper.php'; $this->status_info = ilLPStatusWrapper::_getStatusInfoByType($this->getId(),'event'); }
ilLPEventListGUI::__readTitle | ( | ) |
Reimplemented from ilLPObjectItemListGUI.
Definition at line 69 of file class.ilLPEventListGUI.php.
{ return $this->title = $this->status_info['title']; }
ilLPEventListGUI::__readTypicalLearningTime | ( | ) |
Reimplemented from ilLPObjectItemListGUI.
Definition at line 64 of file class.ilLPEventListGUI.php.
{ $this->tlt = 0; }
ilLPEventListGUI::__readUserStatus | ( | ) |
Reimplemented from ilLPObjectItemListGUI.
Definition at line 97 of file class.ilLPEventListGUI.php.
References ilLPStatusWrapper::_getCompletedByType(), ilLPStatusWrapper::_getInProgressByType(), ilLPItemListGUI::getCurrentUser(), and ilLPItemListGUI::getId().
{ include_once 'Services/Tracking/classes/class.ilLPStatusWrapper.php'; if($this->status_info['starting_time'] < time()) { if(in_array($this->getCurrentUser(),ilLPStatusWrapper::_getCompletedByType($this->getId(),'event'))) { return $this->status = LP_STATUS_PARTICIPATED; } else { return $this->status = LP_STATUS_NOT_PARTICIPATED; } } if(in_array($this->getCurrentUser(),ilLPStatusWrapper::_getCompletedByType($this->getId(),'event'))) { return $this->status = LP_STATUS_PARTICIPATED; } if($this->status_info['registration']) { if(in_array($this->getCurrentUser(),ilLPStatusWrapper::_getInProgressByType($this->getId(),'event'))) { return $this->status = LP_STATUS_REGISTERED; } else { return $this->status = LP_STATUS_NOT_REGISTERED; } } else { return $this->status = LP_STATUS_NOT_ATTEMPTED; } }
ilLPEventListGUI::hasDetails | ( | ) |
Reimplemented from ilLPItemListGUI.
Definition at line 47 of file class.ilLPEventListGUI.php.
{ return false; }
ilLPEventListGUI::ilLPEventListGUI | ( | $ | a_obj_id | ) |
Definition at line 42 of file class.ilLPEventListGUI.php.
References ilLPObjectItemListGUI::ilLPObjectItemListGUI().
{ parent::ilLPObjectItemListGUI($a_obj_id,'objective'); }
ilLPEventListGUI::renderTypeImage | ( | ) |
Reimplemented from ilLPItemListGUI.
Definition at line 78 of file class.ilLPEventListGUI.php.
References ilUtil::getImagePath().
{ $this->tpl->setCurrentBlock("row_type_image"); $this->tpl->setVariable("TYPE_IMG",ilUtil::getImagePath('icon_'.'event'.'.gif')); $this->tpl->setVariable("TYPE_ALT_IMG",$this->lng->txt('event')); $this->tpl->parseCurrentBlock(); }
ilLPEventListGUI::$child_id = null |
Definition at line 40 of file class.ilLPEventListGUI.php.