|
ILIAS
release_8 Revision v8.24
|
Calendar blocks, displayed in different contexts, e.g. More...
Inheritance diagram for ilCalendarBlockGUI:
Collaboration diagram for ilCalendarBlockGUI:Public Member Functions | |
| __construct () | |
| Constructor. More... | |
| getShowWeeksColumn () | |
| Show weeks column. More... | |
| getBlockType () | |
| setParentGUI (string $a_val) | |
| getParentGUI () | |
| setForceMonthView (bool $a_val) | |
| getForceMonthView () | |
| executeCommand () | |
| fillDataSection () | |
| Standard implementation for row based data. More... | |
| getTargetGUIClassPath () | |
| addMiniMonth (ilTemplate $a_tpl, bool $a_include_view_ctrl=false) | |
| Add mini version of monthly overview (Maybe extracted to another class, if used in pd calendar tab. More... | |
| getHTML () | |
| Get bloch HTML code. More... | |
| getOverview () | |
| setSeed () | |
| returnToUpperContext () | |
| setPdModeEvents () | |
| setPdModeMonth () | |
| getEventByAppointmentId (int $a_appointment_id) | |
| getEvents () | |
| getData () | |
| getDatesForItem (array $item) | |
| Get start/end date for item. More... | |
| getModalForApp () | |
| Get modal for appointment (see similar code in ilCalendarAgendaListGUI) todo use all this methods from ilcalendarviewgui.php. More... | |
| getNoItemFoundContent () | |
| No item entry. More... | |
Public Member Functions inherited from ilBlockGUI | |
| __construct () | |
| getBlockType () | |
| setData (array $a_data) | |
| getData () | |
| setPresentation (int $type) | |
| getPresentation () | |
| setBlockId (string $a_block_id="0") | |
| getBlockId () | |
| setGuiObject (object $a_gui_object) | |
| Set GuiObject. More... | |
| getGuiObject () | |
| setTitle (string $a_title) | |
| getTitle () | |
| setOffset (int $a_offset) | |
| getOffset () | |
| correctOffset () | |
| setLimit (int $a_limit) | |
| getLimit () | |
| setEnableEdit (bool $a_enableedit) | |
| getEnableEdit () | |
| setRepositoryMode (bool $a_repositorymode) | |
| getRepositoryMode () | |
| setSubtitle (string $a_subtitle) | |
| getSubtitle () | |
| setRefId (int $a_refid) | |
| Set Ref Id (only used if isRepositoryObject() is true). More... | |
| getRefId () | |
| setAdminCommands (bool $a_admincommands) | |
| getAdminCommands () | |
| setEnableNumInfo (bool $a_enablenuminfo) | |
| getEnableNumInfo () | |
| setProperties (array $a_properties) | |
| This function is supposed to be used for block type specific properties, that should be inherited through ilColumnGUI->setBlockProperties. More... | |
| getProperty (string $a_property) | |
| setProperty (string $a_property, string $a_value) | |
| setRowTemplate (string $a_rowtemplatename, string $a_rowtemplatedir="") | |
| Set Row Template Name. More... | |
| getNavParameter () | |
| getConfigParameter () | |
| getMoveParameter () | |
| getRowTemplateName () | |
| getRowTemplateDir () | |
| addBlockCommand (string $a_href, string $a_text, string $a_onclick="") | |
| getBlockCommands () | |
| getHTML () | |
| fillHeaderCommands () | |
| fillHeaderTitleBlock () | |
| setDataSection (string $a_content) | |
| Call this from overwritten fillDataSection(), if standard row based data is not used. More... | |
| fillDataSection () | |
| Standard implementation for row based data. More... | |
| fillRow (array $a_set) | |
| fillFooter () | |
| fillPreviousNext () | |
| setPreviousNextLinks () | |
| getAsynch () | |
| Use this for final get before sending asynchronous output (ajax) per echo to output. More... | |
| getPaginationViewControl () | |
| Fill previous/next row. More... | |
| getHTMLNew () | |
| getNoItemFoundContent () | |
Static Public Member Functions | |
| static | getScreenMode () |
| Get Screen Mode for current command. More... | |
| static | getScreenMode () |
Static Public Attributes | |
| static string | $block_type = "cal" |
Protected Member Functions | ||||
| initBookingUserFromQuery () | ||||
| initSeedFromQuery () | ||||
| initAppointmentIdFromQuery () | ||||
| initInitialDateQuery () | ||||
| isRepositoryObject () | ||||
| Returns whether block has a corresponding repository object. More... | ||||
| getViewControl () | ||||
| initCategories () | ||||
| setSubTabs () | ||||
| initCommands () | ||||
| getViewControls () | ||||
Get view controls.
| ||||
| getLegacyContent () | ||||
Get legacy content.
| ||||
| getListItemForData (array $data) | ||||
Get list item for data array.
| ||||
| addSubscriptionButton (ilTemplate $panel_template) | ||||
| Add subscription button. More... | ||||
Protected Member Functions inherited from ilBlockGUI | ||||
| isRepositoryObject () | ||||
| Returns whether block has a corresponding repository object. More... | ||||
| specialCharsAsEntities (string $string) | ||||
| initCommands () | ||||
| fillRowColor (string $a_placeholder="CSS_ROW") | ||||
| preloadData (array $data) | ||||
| Can be overwritten in subclasses. More... | ||||
| getLegacyContent () | ||||
| Get legacy content. More... | ||||
| getViewControls () | ||||
| Get view controls. More... | ||||
| getListItemForData (array $data) | ||||
| Get list item for data array. More... | ||||
| handleNavigation () | ||||
| Handle navigation. More... | ||||
| loadData () | ||||
| Load data for current page. More... | ||||
| getListItemGroups () | ||||
| Get items. More... | ||||
| addRepoCommands () | ||||
| Add repo commands. More... | ||||
| send (string $output) | ||||
| Send. More... | ||||
Additional Inherited Members | |
Data Fields inherited from ilBlockGUI | |
| const | PRES_MAIN_LEG = 0 |
| const | PRES_SEC_LEG = 1 |
| const | PRES_SEC_LIST = 2 |
| const | PRES_MAIN_LIST = 3 |
| const | PRES_MAIN_TILE = 4 |
Calendar blocks, displayed in different contexts, e.g.
groups and courses
Definition at line 33 of file class.ilCalendarBlockGUI.php.
| ilCalendarBlockGUI::__construct | ( | ) |
Constructor.
Reimplemented from ilBlockGUI.
Reimplemented in ilPDCalendarBlockGUI.
Definition at line 64 of file class.ilCalendarBlockGUI.php.
References $DIC, $mode, $params, ilBlockGUI\$title, ILIAS\GlobalScreen\Provider\__construct(), ilCalendarSettings\_getInstance(), ilCalendarUserSettings\_getInstanceByUserId(), ILIAS\Repository\ctrl(), ilSession\get(), ilBlockGUI\getBlockId(), getBlockType(), ilSession\has(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), IL_CAL_DATE, initSeedFromQuery(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), ILIAS\Repository\refinery(), ilSession\set(), ilBlockGUI\setBlockId(), ilBlockGUI\setEnableNumInfo(), ilBlockGUI\setLimit(), ilBlockGUI\setPresentation(), ILIAS\Repository\settings(), ilBlockGUI\setTitle(), ILIAS\Repository\tabs(), ILIAS\Repository\ui(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilCalendarBlockGUI::addMiniMonth | ( | ilTemplate | $a_tpl, |
| bool | $a_include_view_ctrl = false |
||
| ) |
Add mini version of monthly overview (Maybe extracted to another class, if used in pd calendar tab.
Definition at line 313 of file class.ilCalendarBlockGUI.php.
References $i, $ilUser, ilBlockGUI\$lng, $path, ilBlockGUI\$ui, ilBlockGUI\$user, ilDateTime\_before(), ilCalendarUtil\_buildMonthDayList(), ilDateTime\_equals(), ilCalendarUtil\_isToday(), ilCalendarUtil\_numericDayToString(), ILIAS\Repository\ctrl(), getShowWeeksColumn(), getTargetGUIClassPath(), IL_CAL_DATE, IL_CAL_FKT_DATE, IL_CAL_MONTH, initBookingUserFromQuery(), ILIAS\Repository\lng(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), ilCalendarSchedule\TYPE_MONTH, and ILIAS\Repository\user().
Referenced by fillDataSection(), and getLegacyContent().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Add subscription button.
Definition at line 913 of file class.ilCalendarBlockGUI.php.
References $DIC, ilBlockGUI\$presentation, $url, ILIAS\Repository\ctrl(), getTargetGUIClassPath(), ILIAS\Repository\lng(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by getLegacyContent().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarBlockGUI::executeCommand | ( | ) |
Definition at line 224 of file class.ilCalendarBlockGUI.php.
References $app, ilBlockGUI\$presentation, ilCalendarAppointmentPresentationGUI\_getInstance(), ILIAS\Repository\ctrl(), getEventByAppointmentId(), getHTML(), initAppointmentIdFromQuery(), initCategories(), ILIAS\Repository\logger(), setSubTabs(), and ILIAS\Repository\tabs().
Here is the call graph for this function:| ilCalendarBlockGUI::fillDataSection | ( | ) |
Standard implementation for row based data.
Overwrite this and call setContent for other data.
Reimplemented from ilBlockGUI.
Definition at line 271 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\$tpl, addMiniMonth(), ilBlockGUI\fillDataSection(), ilTemplate\get(), ilBlockGUI\setDataSection(), and ilBlockGUI\setRowTemplate().
Here is the call graph for this function:| ilCalendarBlockGUI::getBlockType | ( | ) |
Reimplemented from ilBlockGUI.
Reimplemented in ilPDCalendarBlockGUI.
Definition at line 167 of file class.ilCalendarBlockGUI.php.
References $block_type.
Referenced by __construct(), and setSeed().
Here is the caller graph for this function:| ilCalendarBlockGUI::getData | ( | ) |
Reimplemented from ilBlockGUI.
Definition at line 742 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\$data, Vendor\Package\$f, ilBlockGUI\$lng, ilBlockGUI\$ui, $url, ILIAS\Repository\ctrl(), ilDatePresentation\formatPeriod(), getDatesForItem(), getEvents(), initAppointmentIdFromQuery(), initInitialDateQuery(), and ilBlockGUI\setEnableNumInfo().
Here is the call graph for this function:| ilCalendarBlockGUI::getDatesForItem | ( | array | $item | ) |
Get start/end date for item.
| array | $item | item |
Definition at line 796 of file class.ilCalendarBlockGUI.php.
References IL_CAL_UNIX.
Referenced by getData(), and getModalForApp().
Here is the caller graph for this function:| ilCalendarBlockGUI::getEventByAppointmentId | ( | int | $a_appointment_id | ) |
Definition at line 716 of file class.ilCalendarBlockGUI.php.
References getEvents().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarBlockGUI::getEvents | ( | ) |
Definition at line 730 of file class.ilCalendarBlockGUI.php.
References $seed, IL_CAL_DATE, and ilCalendarSchedule\TYPE_PD_UPCOMING.
Referenced by getData(), getEventByAppointmentId(), and getModalForApp().
Here is the caller graph for this function:| ilCalendarBlockGUI::getForceMonthView | ( | ) |
Definition at line 199 of file class.ilCalendarBlockGUI.php.
References $force_month_view.
Referenced by getHTML(), initCategories(), ilPDCalendarBlockGUI\initCategories(), and initCommands().
Here is the caller graph for this function:| ilCalendarBlockGUI::getHTML | ( | ) |
Get bloch HTML code.
Reimplemented from ilBlockGUI.
Definition at line 491 of file class.ilCalendarBlockGUI.php.
References Vendor\Package\$f, ilBlockGUI\$lng, $obj_data_cache, $path, ilBlockGUI\$user, ilDateTime\_before(), ilCourseParticipants\_getInstanceByObjId(), ilObjUser\_lookupFullname(), ilBlockGUI\addBlockCommand(), ILIAS\Repository\ctrl(), ilConsultationHourAppointments\getAppointments(), getForceMonthView(), ilObject\getId(), getParentGUI(), ilBlockGUI\getProperty(), getTargetGUIClassPath(), IL_CAL_DATE, IL_CAL_DAY, IL_CAL_UNIX, initBookingUserFromQuery(), initCategories(), ILIAS\Repository\lng(), ilBookingEntry\lookupBookableUsersForObject(), ilCalendarCategories\MODE_REPOSITORY, and ILIAS\Repository\ui().
Referenced by executeCommand(), setPdModeEvents(), setPdModeMonth(), and setSeed().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get legacy content.
Reimplemented from ilBlockGUI.
Definition at line 862 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\$tpl, addMiniMonth(), addSubscriptionButton(), and ilTemplate\get().
Here is the call graph for this function:
|
protected |
Get list item for data array.
| array | $data |
Reimplemented from ilBlockGUI.
Definition at line 888 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\$data, $factory, and ILIAS\Repository\ui().
Here is the call graph for this function:| ilCalendarBlockGUI::getModalForApp | ( | ) |
Get modal for appointment (see similar code in ilCalendarAgendaListGUI) todo use all this methods from ilcalendarviewgui.php.
Definition at line 814 of file class.ilCalendarBlockGUI.php.
References Vendor\Package\$f, ilBlockGUI\$ui, ilCalendarAppointmentPresentationGUI\_getInstance(), ILIAS\Repository\ctrl(), exit, ilDatePresentation\formatPeriod(), getDatesForItem(), getEvents(), initAppointmentIdFromQuery(), initCategories(), and initInitialDateQuery().
Here is the call graph for this function:| ilCalendarBlockGUI::getNoItemFoundContent | ( | ) |
No item entry.
Reimplemented from ilBlockGUI.
Definition at line 905 of file class.ilCalendarBlockGUI.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:| ilCalendarBlockGUI::getOverview | ( | ) |
Definition at line 591 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\$lng, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilCalendarSchedule\TYPE_INBOX.
Here is the call graph for this function:| ilCalendarBlockGUI::getParentGUI | ( | ) |
Definition at line 185 of file class.ilCalendarBlockGUI.php.
References $parent_gui.
Referenced by getHTML().
Here is the caller graph for this function:
|
static |
Get Screen Mode for current command.
Reimplemented from ilBlockGUI.
Definition at line 207 of file class.ilCalendarBlockGUI.php.
References $DIC, and IL_SCREEN_CENTER.
| ilCalendarBlockGUI::getShowWeeksColumn | ( | ) |
Show weeks column.
Definition at line 159 of file class.ilCalendarBlockGUI.php.
References ILIAS\Repository\settings().
Referenced by addMiniMonth().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarBlockGUI::getTargetGUIClassPath | ( | ) |
Definition at line 290 of file class.ilCalendarBlockGUI.php.
References ilObject\_lookupType(), and ilBlockGUI\getRepositoryMode().
Referenced by addMiniMonth(), addSubscriptionButton(), and getHTML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 432 of file class.ilCalendarBlockGUI.php.
References $id, ilBlockGUI\$lng, ilBlockGUI\$ui, ILIAS\Repository\ctrl(), IL_CAL_DATE, ILIAS\Repository\lng(), and ilDateTime\MONTH.
Referenced by getViewControls().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Get view controls.
Reimplemented from ilBlockGUI.
Definition at line 851 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\getPresentation(), getViewControl(), and ILIAS\UI\Implementation\Component\ViewControl\getViewControls().
Here is the call graph for this function:
|
protected |
Definition at line 134 of file class.ilCalendarBlockGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by executeCommand(), getData(), and getModalForApp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 112 of file class.ilCalendarBlockGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by addMiniMonth(), and getHTML().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reimplemented in ilPDCalendarBlockGUI.
Definition at line 607 of file class.ilCalendarBlockGUI.php.
References ilCalendarCategories\_getInstance(), getForceMonthView(), ilCalendarCategories\MODE_REPOSITORY, and ilCalendarCategories\MODE_REPOSITORY_CONTAINER_ONLY.
Referenced by executeCommand(), getHTML(), and getModalForApp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reimplemented from ilBlockGUI.
Definition at line 646 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\$lng, ILIAS\Repository\access(), ilBlockGUI\addBlockCommand(), ILIAS\Repository\ctrl(), getForceMonthView(), and ilBlockGUI\getRepositoryMode().
Here is the call graph for this function:
|
protected |
Definition at line 145 of file class.ilCalendarBlockGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by getData(), and getModalForApp().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 123 of file class.ilCalendarBlockGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by __construct(), and setSeed().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Returns whether block has a corresponding repository object.
Reimplemented from ilBlockGUI.
Definition at line 175 of file class.ilCalendarBlockGUI.php.
| ilCalendarBlockGUI::returnToUpperContext | ( | ) |
Reimplemented in ilPDCalendarBlockGUI.
Definition at line 641 of file class.ilCalendarBlockGUI.php.
References ILIAS\Repository\ctrl().
Referenced by setSeed().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCalendarBlockGUI::setForceMonthView | ( | bool | $a_val | ) |
Definition at line 190 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\setPresentation().
Here is the call graph for this function:| ilCalendarBlockGUI::setParentGUI | ( | string | $a_val | ) |
Definition at line 180 of file class.ilCalendarBlockGUI.php.
| ilCalendarBlockGUI::setPdModeEvents | ( | ) |
Definition at line 686 of file class.ilCalendarBlockGUI.php.
References $ilUser, ilBlockGUI\$user, ILIAS\Repository\ctrl(), exit, getHTML(), ilBlockGUI\setPresentation(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilCalendarBlockGUI::setPdModeMonth | ( | ) |
Definition at line 701 of file class.ilCalendarBlockGUI.php.
References $ilUser, ilBlockGUI\$user, ILIAS\Repository\ctrl(), exit, getHTML(), ilBlockGUI\setPresentation(), and ILIAS\Repository\user().
Here is the call graph for this function:| ilCalendarBlockGUI::setSeed | ( | ) |
Definition at line 627 of file class.ilCalendarBlockGUI.php.
References ILIAS\Repository\ctrl(), exit, ilBlockGUI\getBlockId(), getBlockType(), getHTML(), initSeedFromQuery(), returnToUpperContext(), and ilSession\set().
Here is the call graph for this function:
|
protected |
Definition at line 622 of file class.ilCalendarBlockGUI.php.
References ILIAS\Repository\tabs().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 43 of file class.ilCalendarBlockGUI.php.
Referenced by getBlockType().
|
protected |
Definition at line 35 of file class.ilCalendarBlockGUI.php.
|
protected |
Definition at line 40 of file class.ilCalendarBlockGUI.php.
|
protected |
Definition at line 55 of file class.ilCalendarBlockGUI.php.
Referenced by getForceMonthView().
|
protected |
Definition at line 47 of file class.ilCalendarBlockGUI.php.
|
protected |
Definition at line 38 of file class.ilCalendarBlockGUI.php.
|
protected |
Definition at line 41 of file class.ilCalendarBlockGUI.php.
|
protected |
Definition at line 58 of file class.ilCalendarBlockGUI.php.
|
protected |
Definition at line 39 of file class.ilCalendarBlockGUI.php.
Referenced by __construct().
|
protected |
Definition at line 846 of file class.ilCalendarBlockGUI.php.
|
protected |
Definition at line 46 of file class.ilCalendarBlockGUI.php.
Referenced by getHTML().
|
protected |
Definition at line 54 of file class.ilCalendarBlockGUI.php.
Referenced by getParentGUI().
|
protected |
Definition at line 37 of file class.ilCalendarBlockGUI.php.
|
protected |
Definition at line 57 of file class.ilCalendarBlockGUI.php.
|
protected |
Definition at line 36 of file class.ilCalendarBlockGUI.php.
|
protected |
Definition at line 50 of file class.ilCalendarBlockGUI.php.
Referenced by getEvents().
|
protected |
Definition at line 51 of file class.ilCalendarBlockGUI.php.
|
protected |
Definition at line 45 of file class.ilCalendarBlockGUI.php.
|
protected |
Definition at line 52 of file class.ilCalendarBlockGUI.php.