4include_once 
'./Services/Table/classes/class.ilTable2GUI.php';
 
   16        public function __construct($a_parent_obj, $a_parent_cmd, $a_crs_ref_id, array $a_members)
 
   18                $this->
setId(
'sessov');
 
   20                parent::__construct($a_parent_obj,$a_parent_cmd);
 
   22                $this->
setTitle($this->lng->txt(
'event_overview'));
 
   24                $this->
addColumn($this->lng->txt(
'name'),
'name');
 
   25                $this->
addColumn($this->lng->txt(
'login'),
'login');
 
   28                foreach($this->events as $idx => $event_obj)
 
   32                        if(trim($event_obj->getTitle()))
 
   34                                $tt[] = $event_obj->getTitle();                                         
 
   36                        if(trim($event_obj->getDescription()))
 
   38                                $tt[] = $event_obj->getDescription();
 
   40                        if(trim($event_obj->getLocation()))
 
   42                                $tt[] = $this->lng->txt(
"event_location").
': '.$event_obj->getLocation();
 
   44                        $tt[] = $this->lng->txt(
"event_date_time").
': '.$event_obj->getFirstAppointment()->appointmentToString();                       
 
   47                        if(
sizeof($this->events) <= 4)
 
   49                                $caption = $event_obj->getFirstAppointment()->appointmentToString();                    
 
   60                        $tt = implode(
"<br />\n", $tt);
 
   62                        $this->
addColumn($caption,
'event_'.$event_obj->getId(), 
'', 
false, 
'', $tt, 
true);
 
   70                $this->
getItems($this->events, $a_members);
 
   75                global $tree, $ilAccess;
 
   78                foreach($tree->getSubtree($tree->getNodeData($a_crs_ref_id),
false,
'sess') as $event_id)
 
   81                        if(!is_object($tmp_event) ||
 
   82                                !$ilAccess->checkAccess(
'write',
'',$event_id)) 
 
   87                        $events[$tmp_event->getFirstAppointment()->getStartingTime().
'_'.$tmp_event->getId()] = $tmp_event;
 
   94        protected function getItems(array $a_events, array $a_members)
 
   98                include_once 
'Modules/Session/classes/class.ilEventParticipants.php';
 
  100                foreach($a_members as $user_id)
 
  103                        $data[$user_id] = array(
 
  104                                'name' => $name[
'lastname'].
', '.$name[
'firstname'],
 
  105                                'login' => $name[
'login']                               
 
  108                        foreach($a_events as $event_obj)
 
  111                                $data[$user_id][
'event_'.$event_obj->getId()] = $event_part->hasParticipated($user_id);                                                                                                                         
 
  120                $this->tpl->setVariable(
'NAME', $a_set[
'name']);
 
  121                $this->tpl->setVariable(
'LOGIN', $a_set[
'login']);
 
  123                $this->tpl->setCurrentBlock(
'eventcols');
 
  124                foreach($this->events as $event_obj)
 
  126                        if((
bool)$a_set[
'event_'.$event_obj->getId()])
 
  129                                $this->tpl->setVariable(
"PARTICIPATED", $this->lng->txt(
'event_participated'));
 
  134                                $this->tpl->setVariable(
"PARTICIPATED", $this->lng->txt(
'event_not_participated'));
 
  136                        $this->tpl->parseCurrentBlock();
 
An exception for terminatinating execution or to throw for unit testing.
static _lookupName($a_user_id)
lookup user name
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
Table presentation for session overview.
gatherEvents($a_crs_ref_id)
__construct($a_parent_obj, $a_parent_cmd, $a_crs_ref_id, array $a_members)
fillRow($a_set)
Standard Version of Fill Row.
getItems(array $a_events, array $a_members)
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)