ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilLPEventListGUI Class Reference
+ Inheritance diagram for ilLPEventListGUI:
+ Collaboration diagram for ilLPEventListGUI:

Public Member Functions

 ilLPEventListGUI ($a_obj_id)
 hasDetails ()
 __readMode ()
 __readStatusInfo ()
 __readTypicalLearningTime ()
 __readTitle ()
 __readDescription ()
 renderTypeImage ()
 __readMark ()
 __readComment ()
 __readUserStatus ()
- Public Member Functions inherited from ilLPObjectItemListGUI
 ilLPObjectItemListGUI ($a_id, $a_type)
 addReferences ($a_references)
 __readUserStatusInfo ()
 renderPath ($a_force_details=true)
- Public Member Functions inherited from ilLPItemListGUI
 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 ()
 enabled ($a_key)
 enable ($a_key)
 disable ($a_key)
 setIndentLevel ($a_level)
 getUserStatus ()
 getEditingTime ()
 showTimingWarning ()
 addCheckBox ($a_check)
 __readTimings ()
 getHTML ()
 read ()
 Read all necassary data for output.
 readUserInfo ()
 readTimings ()
 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

 $child_id = null
- Data Fields inherited from ilLPObjectItemListGUI
 $references = array()
- Data Fields inherited from ilLPItemListGUI
 $db = null
 $anonymized = false

Detailed Description

Definition at line 38 of file class.ilLPEventListGUI.php.

Member Function Documentation

ilLPEventListGUI::__readComment ( )

Reimplemented from ilLPObjectItemListGUI.

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

References ilEventParticipants\_lookupComment(), ilLPItemListGUI\getCurrentUser(), and ilLPItemListGUI\getId().

{
include_once './Modules/Session/classes/class.ilEventParticipants.php';
$this->comment = ilEventParticipants::_lookupComment($this->getId(),$this->getCurrentUser());
}

+ Here is the call graph for this function:

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 './Modules/Session/classes/class.ilEventParticipants.php';
$this->mark = ilEventParticipants::_lookupMark($this->getId(),$this->getCurrentUser());
}

+ Here is the call graph for this function:

ilLPEventListGUI::__readMode ( )

Reimplemented from ilLPItemListGUI.

Definition at line 52 of file class.ilLPEventListGUI.php.

References LP_MODE_EVENT.

{
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');
}

+ Here is the call graph for this function:

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\_getCompleted(), ilLPStatusWrapper\_getInProgress(), ilLPItemListGUI\getCurrentUser(), ilLPItemListGUI\getId(), LP_STATUS_NOT_ATTEMPTED, LP_STATUS_NOT_PARTICIPATED, LP_STATUS_NOT_REGISTERED, LP_STATUS_PARTICIPATED, and LP_STATUS_REGISTERED.

{
include_once 'Services/Tracking/classes/class.ilLPStatusWrapper.php';
if($this->status_info['starting_time'] < time())
{
if(in_array($this->getCurrentUser(),ilLPStatusWrapper::_getCompleted($this->getId())))
{
return $this->status = LP_STATUS_PARTICIPATED;
}
else
{
return $this->status = LP_STATUS_NOT_PARTICIPATED;
}
}
if(in_array($this->getCurrentUser(),ilLPStatusWrapper::_getCompleted($this->getId())))
{
return $this->status = LP_STATUS_PARTICIPATED;
}
if($this->status_info['registration'])
{
if(in_array($this->getCurrentUser(),ilLPStatusWrapper::_getInProgress($this->getId())))
{
return $this->status = LP_STATUS_REGISTERED;
}
else
{
return $this->status = LP_STATUS_NOT_REGISTERED;
}
}
else
{
return $this->status = LP_STATUS_NOT_ATTEMPTED;
}
}

+ Here is the call graph for this function:

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');
}

+ Here is the call graph for this function:

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();
}

+ Here is the call graph for this function:

Field Documentation

ilLPEventListGUI::$child_id = null

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


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