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');
 
   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) {
 
   31            if (trim($event_obj->getTitle())) {
 
   32                $tt[] = $event_obj->getTitle();
 
   34            if (trim($event_obj->getDescription())) {
 
   35                $tt[] = $event_obj->getDescription();
 
   37            if (trim($event_obj->getLocation())) {
 
   38                $tt[] = $this->lng->txt(
"event_location") . 
': ' . $event_obj->getLocation();
 
   40            $tt[] = $this->lng->txt(
"event_date_time") . 
': ' . $event_obj->getFirstAppointment()->appointmentToString();
 
   43            if (
sizeof($this->events) <= 4) {
 
   44                $caption = $event_obj->getFirstAppointment()->appointmentToString();
 
   45                if (
sizeof($tt) == 1) {
 
   53            $tt = implode(
"<br />\n", $tt);
 
   55            $this->
addColumn($caption, 
'event_' . $event_obj->getId(), 
'', 
false, 
'', $tt, 
true);
 
   61        $this->
setRowTemplate(
'tpl.sess_list_row.html', 
'Modules/Session');
 
   63        $this->
getItems($this->events, $a_members);
 
   71        $ilAccess = 
$DIC[
'ilAccess'];
 
   74        foreach ($tree->getSubtree($tree->getNodeData($a_crs_ref_id), 
false, 
'sess') as $event_id) {
 
   76            if (!is_object($tmp_event) ||
 
   77                !$ilAccess->checkAccess(
'manage_members', 
'', $event_id)) {
 
   81            $events[$tmp_event->getFirstAppointment()->getStartingTime() . 
'_' . $tmp_event->getId()] = $tmp_event;
 
   88    protected function getItems(array $a_events, array $a_members)
 
   92        foreach ($a_members as $user_id) {
 
   94            $data[$user_id] = array(
 
   95                'name' => 
$name[
'lastname'] . 
', ' . 
$name[
'firstname'],
 
   96                'login' => 
$name[
'login']
 
   99            include_once 
'Modules/Session/classes/class.ilEventParticipants.php';
 
  100            foreach ($a_events as $event_obj) {
 
  102                foreach ($a_members as $user_id) {
 
  103                    if (array_key_exists($user_id, $users_of_event)) {
 
  104                        $data[$user_id][
'event_' . $event_obj->getId()] = 
true;
 
  106                        $data[$user_id][
'event_' . $event_obj->getId()] = 
false;
 
  115        $this->tpl->setVariable(
'NAME', $a_set[
'name']);
 
  116        $this->tpl->setVariable(
'LOGIN', $a_set[
'login']);
 
  118        $this->tpl->setCurrentBlock(
'eventcols');
 
  119        foreach ($this->events as $event_obj) {
 
  120            if ((
bool) $a_set[
'event_' . $event_obj->getId()]) {
 
  122                $this->tpl->setVariable(
"PARTICIPATED", $this->lng->txt(
'event_participated'));
 
  125                $this->tpl->setVariable(
"PARTICIPATED", $this->lng->txt(
'event_not_participated'));
 
  127            $this->tpl->parseCurrentBlock();
 
An exception for terminatinating execution or to throw for unit testing.
static _getParticipated($a_event_id)
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)
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.
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.
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)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc