ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilAppointmentPresentationGUI Class Reference
+ Inheritance diagram for ilAppointmentPresentationGUI:
+ Collaboration diagram for ilAppointmentPresentationGUI:

Public Member Functions

 __construct ($a_appointment, $a_info_screen, $a_toolbar, $a_list_item)
 
 getObjIdForAppointment ()
 
 getToolbar ()
 
 getListItem ()
 Get list item. More...
 
 getInfoScreen ()
 
 getCatId ($a_entry_id)
 
 getCatInfo ()
 
 executeCommand ()
 
 getHTML ()
 Get HTML. More...
 
 addContainerInfo ($a_obj_id)
 Add course/group container info. More...
 
 addInfoSection ($a_txt)
 Add info section. More...
 
 addInfoProperty ($a_txt, $a_val)
 Add info property. More...
 
 addListItemProperty ($a_txt, $a_val)
 Add list item property. More...
 
 addAction ($a_txt, $a_link)
 Add action. More...
 
 collectPropertiesAndActions ()
 Collect properties and actions. More...
 
 collectStandardPropertiesAndActions ()
 Collect standard properties and actions. More...
 
 addObjectLinks ($obj_id, $a_appointment=null)
 Add object link. More...
 
 getReadableRefIds ($a_obj_id)
 Get readable ref ids. More...
 
 addEventDescription ($a_app)
 Add event description. More...
 
 addEventLocation ($a_app)
 Add event location. More...
 
 addLastUpdate ($a_app)
 Add last update. More...
 
 addCalendarInfo ($cat_info)
 Add calendar info. More...
 
 addCommonSection ($a_app, $a_obj_id=0, $cat_info=null, $a_container_info=false)
 Add common section. More...
 
 addMetaData ($a_obj_type, $a_obj_id, $a_sub_obj_type=null, $a_sub_obj_id=null)
 Add metadata. More...
 
 getUserName ($a_user_id, $a_force_name=false)
 Get (linked if possible) user name. More...
 
 downloadFiles ()
 Download files from an appointment ( Modals ) More...
 
 getToolbar ()
 
 getInfoScreen ()
 

Static Public Member Functions

static getInstance ($a_appointment, $a_info_screen, $a_toolbar, $a_list_item)
 

Protected Member Functions

 readObjIdForAppointment ()
 read obj_id for appointment More...
 
 buildDirectLinkForAppointment ($a_ref_id, $a_appointment=null)
 Build direct link for appointment. More...
 

Protected Attributes

 $toolbar
 
 $appointment
 
 $infoscreen
 
 $lng
 
 $tree
 
 $ui
 
 $list_item = null
 
 $info_items = array()
 
 $list_properties = array()
 
 $actions = array()
 
 $ctrl
 
 $access
 
 $readable_ref_ids
 
 $has_files = false
 
 $obj_id = 0
 

Static Protected Attributes

static $instance
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilAppointmentPresentationGUI::__construct (   $a_appointment,
  $a_info_screen,
  $a_toolbar,
  $a_list_item 
)
Parameters

Definition at line 98 of file class.ilAppointmentPresentationGUI.php.

99 {
100 global $DIC;
101 $this->appointment = $a_appointment;
102 $this->infoscreen = $a_info_screen;
103 $this->toolbar = $a_toolbar;
104 $this->lng = $DIC->language();
105 $this->lng->loadLanguageModule("dateplaner");
106 $this->tree = $DIC->repositoryTree();
107 $this->ui = $DIC->ui();
108 $this->list_item = $a_list_item;
109 $this->ctrl = $DIC->ctrl();
110 $this->access = $DIC->access();
111 $this->rbacsystem = $DIC->rbac()->system();
112 $this->user = $DIC->user();
113
115 }
user()
Definition: user.php:4
readObjIdForAppointment()
read obj_id for appointment
global $DIC
Definition: saml.php:7

References $DIC, readObjIdForAppointment(), and user().

+ Here is the call graph for this function:

Member Function Documentation

◆ addAction()

ilAppointmentPresentationGUI::addAction (   $a_txt,
  $a_link 
)

◆ addCalendarInfo()

ilAppointmentPresentationGUI::addCalendarInfo (   $cat_info)

Add calendar info.

Parameters
array$cat_info

Definition at line 498 of file class.ilAppointmentPresentationGUI.php.

499 {
500 $this->ctrl->setParameterByClass("ilCalendarPresentationGUI", "category_id", $cat_info["cat_id"]);
501
502 $link = $this->ui->renderer()->render(
503 $this->ui->factory()->button()->shy(
504 $cat_info["title"],
505 $this->ctrl->getLinkTargetByClass(array("ilPersonalDesktopGUI", "ilCalendarPresentationGUI"), "")
506 )
507 );
508
509 $this->ctrl->setParameterByClass("ilCalendarPresentationGUI", "category_id", $_GET["category_id"]);
510
511 $this->addInfoProperty($this->lng->txt("calendar"), $link);
512 $this->addListItemProperty($this->lng->txt("calendar"), $link);
513 }
$_GET["client_id"]
addListItemProperty($a_txt, $a_val)
Add list item property.
addInfoProperty($a_txt, $a_val)
Add info property.

References $_GET, addInfoProperty(), and addListItemProperty().

Referenced by addCommonSection(), ilAppointmentPresentationBookingPoolGUI\collectPropertiesAndActions(), ilAppointmentPresentationPublicGUI\collectPropertiesAndActions(), and ilAppointmentPresentationUserGUI\collectPropertiesAndActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addCommonSection()

ilAppointmentPresentationGUI::addCommonSection (   $a_app,
  $a_obj_id = 0,
  $cat_info = null,
  $a_container_info = false 
)

Add common section.

Parameters
array$a_app
int$a_obj_id

Definition at line 521 of file class.ilAppointmentPresentationGUI.php.

522 {
523 // event title
524 $this->addInfoSection($a_app["event"]->getPresentationTitle(false));
525
526 // event description
527 $this->addEventDescription($a_app);
528
529 // course title (linked of accessible)
530 if ($a_obj_id > 0) {
531 $this->addObjectLinks($a_obj_id, $a_app);
532 }
533
534 // container info (course groups)
535 if ($a_container_info) {
536 $this->addContainerInfo($a_obj_id);
537 }
538
539 // event location
540 $this->addEventLocation($a_app);
541
542 // calendar info
543 if ($cat_info != null) {
544 $this->addCalendarInfo($cat_info);
545 }
546 }
addObjectLinks($obj_id, $a_appointment=null)
Add object link.
addContainerInfo($a_obj_id)
Add course/group container info.
addEventDescription($a_app)
Add event description.

References addCalendarInfo(), addContainerInfo(), addEventDescription(), addEventLocation(), addInfoSection(), and addObjectLinks().

Referenced by ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ilAppointmentPresentationExerciseGUI\collectPropertiesAndActions(), ilAppointmentPresentationGroupGUI\collectPropertiesAndActions(), and ilAppointmentPresentationMilestoneGUI\collectPropertiesAndActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addContainerInfo()

ilAppointmentPresentationGUI::addContainerInfo (   $a_obj_id)

Add course/group container info.

Parameters
int$a_ref_id

Definition at line 282 of file class.ilAppointmentPresentationGUI.php.

283 {
284 $refs = $this->getReadableRefIds($a_obj_id);
285 $ref_id = current($refs);
286 if (count($refs) == 1 && $ref_id > 0) {
288 $f = $this->ui->factory();
289 $r = $this->ui->renderer();
290
291 //parent course or group title
292 $cont_ref_id = $tree->checkForParentType($ref_id, 'grp');
293 if ($cont_ref_id == 0) {
294 $cont_ref_id = $tree->checkForParentType($ref_id, 'crs');
295 }
296
297 if ($cont_ref_id > 0) {
298 $type = ilObject::_lookupType($cont_ref_id, true);
299 $href = ilLink::_getStaticLink($cont_ref_id);
300 $parent_title = ilObject::_lookupTitle(ilObject::_lookupObjectId($cont_ref_id));
301 $this->addInfoProperty($this->lng->txt("obj_" . $type), $r->render($f->button()->shy($parent_title, $href)));
302 $this->addListItemProperty($this->lng->txt("obj_" . $type), $r->render($f->button()->shy($parent_title, $href)));
303 }
304 }
305 }
getReadableRefIds($a_obj_id)
Get readable ref ids.
static _lookupTitle($a_id)
lookup object title
static _lookupObjectId($a_ref_id)
lookup object id
static _lookupType($a_id, $a_reference=false)
lookup object type
$r
Definition: example_031.php:79
$type

References $f, $r, $tree, $type, ilLink\_getStaticLink(), ilObject\_lookupObjectId(), ilObject\_lookupTitle(), ilObject\_lookupType(), addInfoProperty(), addListItemProperty(), and getReadableRefIds().

Referenced by addCommonSection().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addEventDescription()

ilAppointmentPresentationGUI::addEventDescription (   $a_app)

Add event description.

Parameters
array$a_app

Definition at line 462 of file class.ilAppointmentPresentationGUI.php.

463 {
464 if ($a_app['event']->getDescription()) {
465 $this->addInfoProperty($this->lng->txt("description"), ilUtil::makeClickable(nl2br($a_app['event']->getDescription())));
466 }
467 }
static makeClickable($a_text, $detectGotoLinks=false)
makeClickable In Texten enthaltene URLs und Mail-Adressen klickbar machen
static getDescription()
Definition: Php.php:51

References addInfoProperty(), Gettext\Languages\Exporter\getDescription(), and ilUtil\makeClickable().

Referenced by addCommonSection(), ilAppointmentPresentationPublicGUI\collectPropertiesAndActions(), and ilAppointmentPresentationUserGUI\collectPropertiesAndActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addEventLocation()

ilAppointmentPresentationGUI::addEventLocation (   $a_app)

Add event location.

Parameters
array$a_app

Definition at line 474 of file class.ilAppointmentPresentationGUI.php.

475 {
476 if ($a_app['event']->getLocation()) {
477 $this->addInfoProperty($this->lng->txt("cal_where"), $a_app['event']->getLocation());
478 $this->addListItemProperty($this->lng->txt("location"), $a_app['event']->getLocation());
479 }
480 }

References addInfoProperty(), and addListItemProperty().

Referenced by addCommonSection(), ilAppointmentPresentationPublicGUI\collectPropertiesAndActions(), and ilAppointmentPresentationUserGUI\collectPropertiesAndActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addInfoProperty()

◆ addInfoSection()

◆ addLastUpdate()

ilAppointmentPresentationGUI::addLastUpdate (   $a_app)

Add last update.

Parameters
array$a_app

Definition at line 487 of file class.ilAppointmentPresentationGUI.php.

488 {
489 $update = new ilDateTime($a_app["event"]->getLastUpdate()->get(IL_CAL_UNIX), IL_CAL_UNIX, $this->user->getTimeZone());
490 $this->addListItemProperty($this->lng->txt('last_update'), ilDatePresentation::formatDate($update));
491 }
const IL_CAL_UNIX
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date @access public.
@classDescription Date and time handling

References addListItemProperty(), ilDatePresentation\formatDate(), IL_CAL_UNIX, and user().

Referenced by ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ilAppointmentPresentationExerciseGUI\collectPropertiesAndActions(), ilAppointmentPresentationGroupGUI\collectPropertiesAndActions(), and ilAppointmentPresentationMilestoneGUI\collectPropertiesAndActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addListItemProperty()

ilAppointmentPresentationGUI::addListItemProperty (   $a_txt,
  $a_val 
)

◆ addMetaData()

ilAppointmentPresentationGUI::addMetaData (   $a_obj_type,
  $a_obj_id,
  $a_sub_obj_type = null,
  $a_sub_obj_id = null 
)

Add metadata.

Definition at line 551 of file class.ilAppointmentPresentationGUI.php.

552 {
553 //TODO: Remove the hack in ilADTActiveRecordByType.php.
554 include_once('Services/AdvancedMetaData/classes/class.ilAdvancedMDRecordGUI.php');
555 $record_gui = new ilAdvancedMDRecordGUI(
557 $a_obj_type,
558 $a_obj_id,
559 $a_sub_obj_type,
560 $a_sub_obj_id
561 );
562 $md_items = $record_gui->parse();
563 if (count($md_items)) {
564 foreach ($md_items as $md_item) {
565 $this->addInfoProperty($md_item['title'], $md_item['value']);
566 $this->addListItemProperty($md_item['title'], $md_item['value']);
567 }
568 }
569 }

References addInfoProperty(), addListItemProperty(), and ilAdvancedMDRecordGUI\MODE_APP_PRESENTATION.

Referenced by ilAppointmentPresentationBookingPoolGUI\collectPropertiesAndActions(), and ilAppointmentPresentationCourseGUI\collectPropertiesAndActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ addObjectLinks()

ilAppointmentPresentationGUI::addObjectLinks (   $obj_id,
  $a_appointment = null 
)

Add object link.

Parameters
int$obj_id
array$a_appointment

Definition at line 396 of file class.ilAppointmentPresentationGUI.php.

397 {
398 $refs = $this->getReadableRefIds($obj_id);
399 reset($refs);
401 $buttons = array();
402 foreach ($refs as $ref_id) {
403 $link_title = $title;
404 if (count($refs) > 1) {
405 $par_ref = $this->tree->getParentId($ref_id);
406 $link_title .= " (" . ilObject::_lookupTitle(ilObject::_lookupObjId($par_ref)) . ")";
407 }
408
409 $link = $this->buildDirectLinkForAppointment($ref_id, $a_appointment);
410
411 $buttons[] = $this->ui->renderer()->render(
412 $this->ui->factory()->button()->shy($link_title, $link)
413 );
414 }
415 if ($refs == 0) {
416 $prop_value = $title;
417 } else {
418 $prop_value = implode("<br>", $buttons);
419 }
420 if ($prop_value != '') {
421 $this->addInfoProperty($this->lng->txt("obj_" . ilObject::_lookupType($obj_id)), $prop_value);
422 $this->addListItemProperty($this->lng->txt("obj_" . ilObject::_lookupType($obj_id)), $prop_value);
423 }
424 }
buildDirectLinkForAppointment($a_ref_id, $a_appointment=null)
Build direct link for appointment.
static _lookupObjId($a_id)

References $obj_id, $title, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), addInfoProperty(), addListItemProperty(), buildDirectLinkForAppointment(), and getReadableRefIds().

Referenced by addCommonSection(), and ilAppointmentPresentationBookingPoolGUI\collectPropertiesAndActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ buildDirectLinkForAppointment()

ilAppointmentPresentationGUI::buildDirectLinkForAppointment (   $a_ref_id,
  $a_appointment = null 
)
protected

Build direct link for appointment.

Parameters
int$a_ref_id
array  |  null$a_appointment
Returns
string

Reimplemented in ilAppointmentPresentationExerciseGUI.

Definition at line 432 of file class.ilAppointmentPresentationGUI.php.

433 {
434 return ilLink::_getStaticLink($a_ref_id);
435 }

References ilLink\_getStaticLink().

Referenced by addObjectLinks().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ collectPropertiesAndActions()

ilAppointmentPresentationGUI::collectPropertiesAndActions ( )

◆ collectStandardPropertiesAndActions()

ilAppointmentPresentationGUI::collectStandardPropertiesAndActions ( )

Collect standard properties and actions.

Definition at line 362 of file class.ilAppointmentPresentationGUI.php.

363 {
364 $cat_info = $this->getCatInfo();
365
366 //we can move this to the factory.
367 if ($cat_info['editable'] and !$this->appointment['event']->isAutoGenerated()) {
368 $this->ctrl->clearParametersByClass('ilcalendarappointmentgui');
369 // $this->ctrl->setParameterByClass('ilcalendarappointmentgui','seed', $this->getSeed()->get(IL_CAL_DATE));
370 $this->ctrl->setParameterByClass('ilcalendarappointmentgui', 'app_id', $this->appointment['event']->getEntryId());
371 $this->ctrl->setParameterByClass('ilcalendarappointmentgui', 'dt', $this->appointment['dstart']);
372
373 $this->addAction(
374 $this->lng->txt("edit"),
375 $this->ctrl->getLinkTargetByClass(array('ilcalendarappointmentgui'), 'askEdit')
376 );
377
378 $this->ctrl->clearParametersByClass('ilcalendarappointmentgui');
379 // $this->ctrl->setParameterByClass('ilcalendarappointmentgui','seed',$this->getSeed()->get(IL_CAL_DATE));
380 $this->ctrl->setParameterByClass('ilcalendarappointmentgui', 'app_id', $this->appointment['event']->getEntryId());
381 $this->ctrl->setParameterByClass('ilcalendarappointmentgui', 'dt', $this->appointment['dstart']);
382
383 $this->addAction(
384 $this->lng->txt("delete"),
385 $this->ctrl->getLinkTargetByClass(array('ilcalendarappointmentgui'), 'askDelete')
386 );
387 }
388 }

References addAction(), and getCatInfo().

Referenced by getHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ downloadFiles()

ilAppointmentPresentationGUI::downloadFiles ( )

Download files from an appointment ( Modals )

Definition at line 609 of file class.ilAppointmentPresentationGUI.php.

610 {
612
613 //calendar in the sidebar (marginal calendar)
614 if (empty($appointment)) {
615 $entry_id = (int) $_GET['app_id'];
616 $entry = new ilCalendarEntry($entry_id);
617 //if the entry exists
618 if ($entry->getStart()) {
619 $appointment = array(
620 "event" => $entry,
621 "dstart" => $entry->getStart(),
622 "dend" => $entry->getEnd(),
623 "fullday" => $entry->isFullday()
624 );
625 } else {
626 ilUtil::sendFailure($this->lng->txt("obj_not_found"), true);
627 $this->ctrl->returnToParent($this);
628 }
629 }
630
631 include_once './Services/Calendar/classes/BackgroundTasks/class.ilDownloadFilesBackgroundTask.php';
632 $download_job = new ilDownloadFilesBackgroundTask($this->user->getId());
633
634 $download_job->setBucketTitle($this->lng->txt("cal_calendar_download") . " " . $appointment['event']->getTitle());
635 $download_job->setEvents(array($appointment));
636 if ($download_job->run()) {
637 ilUtil::sendSuccess($this->lng->txt('cal_download_files_started'), true);
638 }
639 $this->ctrl->returnToParent($this);
640 }
Model for a calendar entry.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.

References $_GET, $appointment, ilUtil\sendFailure(), and user().

+ Here is the call graph for this function:

◆ executeCommand()

ilAppointmentPresentationGUI::executeCommand ( )

Definition at line 186 of file class.ilAppointmentPresentationGUI.php.

187 {
188 global $DIC;
189
190 $ilCtrl = $DIC['ilCtrl'];
191
192 $next_class = $ilCtrl->getNextClass();
193 $cmd = $ilCtrl->getCmd("getHTML");
194
195 switch ($next_class) {
196 default:
197 return $this->$cmd();
198 }
199 }
global $ilCtrl
Definition: ilias.php:18

References $DIC, and $ilCtrl.

◆ getCatId()

ilAppointmentPresentationGUI::getCatId (   $a_entry_id)

Definition at line 172 of file class.ilAppointmentPresentationGUI.php.

173 {
175 }
static _lookupCategory($a_cal_id)
Lookup category id.

References ilCalendarCategoryAssignments\_lookupCategory().

Referenced by ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), getCatInfo(), and readObjIdForAppointment().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCatInfo()

◆ getHTML()

ilAppointmentPresentationGUI::getHTML ( )

Get HTML.

Definition at line 204 of file class.ilAppointmentPresentationGUI.php.

205 {
208 $ui = $this->ui;
209
210 $infoscreen = $this->getInfoScreen();
211 if ($infoscreen instanceof ilInfoScreenGUI) {
212 foreach ($this->info_items as $i) {
213 switch ($i["type"]) {
214 case "section":
215 $infoscreen->addSection($i["txt"]);
216 break;
217 case "property":
218 $infoscreen->addProperty($i["txt"], $i["val"]);
219 break;
220 }
221 }
222 }
223
224 $toolbar = $this->getToolbar();
225 if ($toolbar instanceof ilToolbarGUI) {
226 //todo: duplicated from ilcalendarviewgui.
228 if ($settings->isBatchFileDownloadsEnabled() && $this->has_files) {
229 // file download
230 $this->ctrl->setParameter($this, "app_id", $this->appointment['event']->getEntryId());
231
232 $download_btn = ilLinkButton::getInstance();
233 $download_btn->setCaption($this->lng->txt("cal_download_files"), false);
234 $download_btn->setUrl(
235 $this->ctrl->getLinkTarget($this, 'downloadFiles')
236 );
237 $this->ctrl->setParameter($this, "app_id", $_GET["app_id"]);
238
239 $toolbar->addButtonInstance($download_btn);
240 $toolbar->addSeparator();
241 }
242
243 foreach ($this->actions as $a) {
245 $btn->setCaption($a["txt"], false);
246 $btn->setUrl($a["link"]);
247 // all buttons are sticky
248 $toolbar->addStickyItem($btn);
249 }
250 }
251
252 $list_item = $this->getListItem();
253 if ($list_item instanceof \ILIAS\UI\Component\Item\Standard) {
254 $dd = $list_item->getActions();
255 if ($dd === null) {
256 $actions = array();
257 $label = "";
258 } else {
259 $actions = $dd->getItems();
260 $label = $dd->getLabel();
261 }
262 $properties = $list_item->getProperties();
263
264 foreach ($this->actions as $a) {
265 $actions[] = $ui->factory()->button()->shy($a["txt"], $a["link"]);
266 }
267 foreach ($this->list_properties as $lp) {
268 $properties[$lp["txt"]] = $lp["val"];
269 }
270
271 $new_dd = $ui->factory()->dropdown()->standard($actions)
272 ->withLabel($label);
273 $this->list_item = $list_item->withActions($new_dd)->withProperties($properties);
274 }
275 }
collectStandardPropertiesAndActions()
Collect standard properties and actions.
collectPropertiesAndActions()
Collect properties and actions.
static _getInstance()
get singleton instance
Class ilInfoScreenGUI.
static getInstance()
Factory.
$i
Definition: disco.tpl.php:19
Class BaseForm.
Class Factory.

References $_GET, $actions, $i, $infoscreen, $list_item, $toolbar, $ui, ilCalendarSettings\_getInstance(), collectPropertiesAndActions(), collectStandardPropertiesAndActions(), getInfoScreen(), ilLinkButton\getInstance(), getListItem(), and getToolbar().

+ Here is the call graph for this function:

◆ getInfoScreen()

ilAppointmentPresentationGUI::getInfoScreen ( )
Returns
ilInfoScreenGUI

Implements ilCalendarAppointmentPresentation.

Definition at line 167 of file class.ilAppointmentPresentationGUI.php.

168 {
169 return $this->infoscreen;
170 }

References $infoscreen.

Referenced by ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), and getHTML().

+ Here is the caller graph for this function:

◆ getInstance()

static ilAppointmentPresentationGUI::getInstance (   $a_appointment,
  $a_info_screen,
  $a_toolbar,
  $a_list_item 
)
static
Returns
self

Definition at line 140 of file class.ilAppointmentPresentationGUI.php.

141 {
142 return new static($a_appointment, $a_info_screen, $a_toolbar, $a_list_item);
143 }

◆ getListItem()

ilAppointmentPresentationGUI::getListItem ( )

Get list item.

Returns
\ILIAS\UI\Component\Item\Standard

Definition at line 158 of file class.ilAppointmentPresentationGUI.php.

159 {
160 return $this->list_item;
161 }

References $list_item.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getObjIdForAppointment()

ilAppointmentPresentationGUI::getObjIdForAppointment ( )
Returns
int

Definition at line 120 of file class.ilAppointmentPresentationGUI.php.

121 {
122 return $this->obj_id;
123 }

References $obj_id.

Referenced by ilAppointmentPresentationExerciseGUI\collectPropertiesAndActions().

+ Here is the caller graph for this function:

◆ getReadableRefIds()

ilAppointmentPresentationGUI::getReadableRefIds (   $a_obj_id)

Get readable ref ids.

Parameters

return

Definition at line 443 of file class.ilAppointmentPresentationGUI.php.

444 {
445 if (!isset($this->readable_ref_ids[$a_obj_id])) {
446 $ref_ids = array();
447 foreach (ilObject::_getAllReferences($a_obj_id) as $ref_id) {
448 if ($this->access->checkAccess("read", "", $ref_id)) {
449 $ref_ids[] = $ref_id;
450 }
451 }
452 $this->readable_ref_ids[$a_obj_id] = $ref_ids;
453 }
454 return $this->readable_ref_ids[$a_obj_id];
455 }
static _getAllReferences($a_id)
get all reference ids of object

References ilObject\_getAllReferences().

Referenced by addContainerInfo(), addObjectLinks(), ilAppointmentPresentationBookingPoolGUI\collectPropertiesAndActions(), ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), and ilAppointmentPresentationExerciseGUI\collectPropertiesAndActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getToolbar()

ilAppointmentPresentationGUI::getToolbar ( )
Returns
ilToolbarGUI

Implements ilCalendarAppointmentPresentation.

Definition at line 148 of file class.ilAppointmentPresentationGUI.php.

149 {
150 return $this->toolbar;
151 }

References $toolbar.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getUserName()

ilAppointmentPresentationGUI::getUserName (   $a_user_id,
  $a_force_name = false 
)

Get (linked if possible) user name.

Parameters
int$a_user_id
Returns
string

Definition at line 577 of file class.ilAppointmentPresentationGUI.php.

578 {
579 $type = ilObject::_lookupType((int) $_GET["ref_id"], true);
580 $ctrl_path = array();
581 if ($type == "crs") {
582 $ctrl_path[] = "ilobjcoursegui";
583 }
584 if ($type == "grp") {
585 $ctrl_path[] = "ilobjgroupgui";
586 }
587 if (strtolower($_GET["baseClass"]) == "ilpersonaldesktopgui") {
588 $ctrl_path[] = "ilpersonaldesktopgui";
589 }
590 $ctrl_path[] = "ilCalendarPresentationGUI";
591 $ctrl_path[] = "ilpublicuserprofilegui";
592
594 $a_user_id,
595 false,
596 true,
597 $this->ctrl->getParentReturn($this),
598 $a_force_name,
599 false,
600 true,
601 false,
602 $ctrl_path
603 );
604 }
static getNamePresentation( $a_user_id, $a_user_image=false, $a_profile_link=false, $a_profile_back_link="", $a_force_first_lastname=false, $a_omit_login=false, $a_sortable=true, $a_return_data_array=false, $a_ctrl_path="ilpublicuserprofilegui")
Default behaviour is:

References $_GET, $type, ilObject\_lookupType(), and ilUserUtil\getNamePresentation().

Referenced by ilAppointmentPresentationConsultationHoursGUI\collectPropertiesAndActions(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ilAppointmentPresentationGroupGUI\collectPropertiesAndActions(), ilAppointmentPresentationMilestoneGUI\collectPropertiesAndActions(), ilAppointmentPresentationPublicGUI\collectPropertiesAndActions(), and ilAppointmentPresentationUserGUI\collectPropertiesAndActions().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readObjIdForAppointment()

ilAppointmentPresentationGUI::readObjIdForAppointment ( )
protected

read obj_id for appointment

Definition at line 128 of file class.ilAppointmentPresentationGUI.php.

129 {
130 $cat_id = $this->getCatId($this->appointment['event']->getEntryId());
132 $this->obj_id = $category->getObjId();
133 }
static getInstanceByCategoryId($a_cat_id)
Get instance by category id.

References getCatId(), and ilCalendarCategory\getInstanceByCategoryId().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilAppointmentPresentationGUI::$access
protected

Definition at line 76 of file class.ilAppointmentPresentationGUI.php.

◆ $actions

ilAppointmentPresentationGUI::$actions = array()
protected

Definition at line 66 of file class.ilAppointmentPresentationGUI.php.

Referenced by getHTML().

◆ $appointment

◆ $ctrl

◆ $has_files

ilAppointmentPresentationGUI::$has_files = false
protected

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

◆ $info_items

ilAppointmentPresentationGUI::$info_items = array()
protected

Definition at line 56 of file class.ilAppointmentPresentationGUI.php.

◆ $infoscreen

ilAppointmentPresentationGUI::$infoscreen
protected

Definition at line 31 of file class.ilAppointmentPresentationGUI.php.

Referenced by getHTML(), and getInfoScreen().

◆ $instance

ilAppointmentPresentationGUI::$instance
staticprotected

Definition at line 15 of file class.ilAppointmentPresentationGUI.php.

◆ $list_item

ilAppointmentPresentationGUI::$list_item = null
protected

Definition at line 51 of file class.ilAppointmentPresentationGUI.php.

Referenced by getHTML(), and getListItem().

◆ $list_properties

ilAppointmentPresentationGUI::$list_properties = array()
protected

Definition at line 61 of file class.ilAppointmentPresentationGUI.php.

◆ $lng

ilAppointmentPresentationGUI::$lng
protected

Definition at line 36 of file class.ilAppointmentPresentationGUI.php.

◆ $obj_id

◆ $readable_ref_ids

ilAppointmentPresentationGUI::$readable_ref_ids
protected

Definition at line 81 of file class.ilAppointmentPresentationGUI.php.

◆ $toolbar

ilAppointmentPresentationGUI::$toolbar
protected

Definition at line 20 of file class.ilAppointmentPresentationGUI.php.

Referenced by getHTML(), and getToolbar().

◆ $tree

ilAppointmentPresentationGUI::$tree
protected

Definition at line 41 of file class.ilAppointmentPresentationGUI.php.

Referenced by addContainerInfo().

◆ $ui

ilAppointmentPresentationGUI::$ui
protected

Definition at line 46 of file class.ilAppointmentPresentationGUI.php.

Referenced by getHTML().


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