ILIAS
release_8 Revision v8.19
|
Calendar blocks, displayed in different contexts, e.g. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
getShowWeeksColumn () | |
Show weeks column. More... | |
getBlockType () | |
setParentGUI (string $a_val) | |
getParentGUI () | |
setForceMonthView (bool $a_val) | |
getForceMonthView () | |
executeCommand () | |
fillDataSection () | |
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... | |
![]() | |
__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 () | |
getViewControl () | |
initCategories () | |
setSubTabs () | |
initCommands () | |
getViewControls () | |
getLegacyContent () | |
getListItemForData (array $data) | |
addSubscriptionButton (ilTemplate $panel_template) | |
Add subscription button. More... | |
![]() | |
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 | |
![]() | |
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.
Definition at line 64 of file class.ilCalendarBlockGUI.php.
References $DIC, $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().
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(), getViewControl(), IL_CAL_DATE, IL_CAL_FKT_DATE, IL_CAL_MONTH, initBookingUserFromQuery(), ILIAS\Repository\int(), ILIAS\Repository\lng(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), ilCalendarSchedule\TYPE_MONTH, and ILIAS\Repository\user().
Referenced by fillDataSection(), and getLegacyContent().
|
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().
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().
ilCalendarBlockGUI::fillDataSection | ( | ) |
Definition at line 271 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\$tpl, addMiniMonth(), ilBlockGUI\fillDataSection(), ilTemplate\get(), ilBlockGUI\setDataSection(), and ilBlockGUI\setRowTemplate().
ilCalendarBlockGUI::getBlockType | ( | ) |
Definition at line 167 of file class.ilCalendarBlockGUI.php.
Referenced by __construct(), and setSeed().
ilCalendarBlockGUI::getData | ( | ) |
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().
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().
ilCalendarBlockGUI::getEventByAppointmentId | ( | int | $a_appointment_id | ) |
Definition at line 716 of file class.ilCalendarBlockGUI.php.
References getEvents().
Referenced by executeCommand().
ilCalendarBlockGUI::getEvents | ( | ) |
Definition at line 730 of file class.ilCalendarBlockGUI.php.
References IL_CAL_DATE, and ilCalendarSchedule\TYPE_PD_UPCOMING.
Referenced by getData(), getEventByAppointmentId(), and getModalForApp().
ilCalendarBlockGUI::getForceMonthView | ( | ) |
Definition at line 199 of file class.ilCalendarBlockGUI.php.
References $force_month_view.
Referenced by getHTML(), ilPDCalendarBlockGUI\initCategories(), initCategories(), and initCommands().
ilCalendarBlockGUI::getHTML | ( | ) |
Get bloch HTML code.
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().
|
protected |
Definition at line 862 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\$tpl, addMiniMonth(), addSubscriptionButton(), and ilTemplate\get().
|
protected |
Definition at line 888 of file class.ilCalendarBlockGUI.php.
References $factory, and ILIAS\Repository\ui().
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().
ilCalendarBlockGUI::getNoItemFoundContent | ( | ) |
No item entry.
Definition at line 905 of file class.ilCalendarBlockGUI.php.
References ILIAS\Repository\lng().
ilCalendarBlockGUI::getOverview | ( | ) |
Definition at line 591 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\$lng, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ilCalendarSchedule\TYPE_INBOX.
ilCalendarBlockGUI::getParentGUI | ( | ) |
Definition at line 185 of file class.ilCalendarBlockGUI.php.
References $parent_gui.
Referenced by getHTML().
|
static |
Get Screen Mode for current command.
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().
ilCalendarBlockGUI::getTargetGUIClassPath | ( | ) |
Definition at line 290 of file class.ilCalendarBlockGUI.php.
References ilObject\_lookupType(), and ilBlockGUI\getRepositoryMode().
Referenced by addMiniMonth(), addSubscriptionButton(), and getHTML().
|
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(), ilDateTime\MONTH, and ILIAS\UI\Implementation\Component\withOnLoadCode().
Referenced by addMiniMonth(), and getViewControls().
|
protected |
Definition at line 851 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\getPresentation(), getViewControl(), and ILIAS\UI\Implementation\Component\ViewControl\getViewControls().
|
protected |
Definition at line 134 of file class.ilCalendarBlockGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by executeCommand(), getData(), and getModalForApp().
|
protected |
Definition at line 112 of file class.ilCalendarBlockGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by addMiniMonth(), and getHTML().
|
protected |
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().
|
protected |
Definition at line 646 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\$lng, ILIAS\Repository\access(), ilBlockGUI\addBlockCommand(), ILIAS\Repository\ctrl(), getForceMonthView(), ilBlockGUI\getRepositoryMode(), and ILIAS\Repository\lng().
|
protected |
Definition at line 145 of file class.ilCalendarBlockGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by getData(), and getModalForApp().
|
protected |
Definition at line 123 of file class.ilCalendarBlockGUI.php.
References ILIAS\FileDelivery\http(), and ILIAS\Repository\refinery().
Referenced by __construct(), and setSeed().
|
protected |
Definition at line 175 of file class.ilCalendarBlockGUI.php.
ilCalendarBlockGUI::returnToUpperContext | ( | ) |
Definition at line 641 of file class.ilCalendarBlockGUI.php.
References ILIAS\Repository\ctrl().
Referenced by setSeed().
ilCalendarBlockGUI::setForceMonthView | ( | bool | $a_val | ) |
Definition at line 190 of file class.ilCalendarBlockGUI.php.
References ilBlockGUI\setPresentation().
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().
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().
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().
|
protected |
Definition at line 622 of file class.ilCalendarBlockGUI.php.
References ILIAS\Repository\tabs().
Referenced by executeCommand().
|
static |
Definition at line 43 of file class.ilCalendarBlockGUI.php.
|
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.
|
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.
|
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.