ILIAS
Release_4_1_x_branch Revision 61804
|
Class for date presentation. More...
Static Public Member Functions | |
static | setUseRelativeDates ($a_status) |
set use relative dates | |
static | useRelativeDates () |
check if relative dates are used | |
static | setLanguage ($a_lng) |
set language | |
static | getLanguage () |
set language | |
static | resetToDefaults () |
reset to defaults | |
static | formatDate (ilDateTime $date) |
Format a date public. | |
static | formatPeriod (ilDateTime $start, ilDateTime $end) |
Format a period of two date Shows: 14. | |
static | isToday (ilDateTime $date) |
Check if date is "today". | |
static | isYesterday (ilDateTime $date) |
Check if date is yesterday. | |
static | isTomorrow (ilDateTime $date) |
Check if date is tomorrow. |
Static Public Attributes | |
static | $use_relative_dates = true |
static | $today = null |
static | $tomorrow = null |
static | $yesterday = null |
Static Private Attributes | |
static | $lang = null |
Class for date presentation.
Definition at line 35 of file class.ilDatePresentation.php.
|
static |
Format a date public.
object | $date | ilDate or ilDateTime |
Definition at line 113 of file class.ilDatePresentation.php.
References $lng, ilCalendarUtil\_numericMonthToString(), ilDateTime\get(), getLanguage(), IL_CAL_FKT_DATE, IL_CAL_FKT_GETDATE, ilDateTime\isNull(), ilCalendarSettings\TIME_FORMAT_12, and ilCalendarSettings\TIME_FORMAT_24.
Referenced by ilLearningProgressBaseGUI\__appendLPDetails(), ilLearningProgressBaseGUI\__appendUserInfo(), ilAdminUserSearchGUI\__fillUserTable(), ilCourseContentGUI\__renderEvent(), ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilCourseObjectivePresentationGUI\__showLearningMaterials(), ilObjCourseGUI\__showSubscribers(), ilObjCourseGUI\__showWaitingList(), ilObject\_lookupLastUpdate(), ilInfoScreenGUI\addObjectSections(), ilObjBookingPoolGUI\buildDatesBySchedule(), ilObjSurvey\canStartSurvey(), ilConsultationHoursGUI\confirmDelete(), ilMemberExportGUI\confirmDeleteExportFile(), ilSCORM2004ScoGUI\confirmDeleteExportFile(), ilObjSCORM2004LearningModuleGUI\confirmDeleteExportFile(), ilObjSurveyQuestionPoolGUI\confirmDeleteExportFileObject(), ilObjQuestionPoolGUI\confirmDeleteExportFileObject(), ilCalendarAppointmentGUI\confirmRegister(), ilCalendarAppointmentGUI\confirmUnregister(), ilForum\convertDate(), ilShopBoughtObjectsGUI\createBill(), ilObjCourseGUI\deleteSubscribers(), ilTestEvaluationGUI\detailedEvaluation(), ilPaymentStatisticGUI\editStatistic(), ilObjPaymentSettingsGUI\editStatisticObject(), ilCourseContentGUI\editTimings(), ilObjSurveyQuestionPoolGUI\exportObject(), ilObjQuestionPoolGUI\exportObject(), ilObjUserFolderGUI\exportObject(), ilObjCourseGUI\fetchPrintMemberData(), ilObjCourseGUI\fetchPrintSubscriberData(), ilMailFolderTableGUI\fetchTableData(), ilGroupRegistrationGUI\fillRegistrationPeriod(), ilCourseRegistrationGUI\fillRegistrationPeriod(), ilNewsForContextTableGUI\fillRow(), ilSubItemSelectionTableGUI\fillRow(), ilPageHistoryTableGUI\fillRow(), ilPublicSubmissionsTableGUI\fillRow(), ilExportSelectionTableGUI\fillRow(), ilMediaCastTableGUI\fillRow(), ilAssignmentsTableGUI\fillRow(), ilAdvancedMDRecordExportFilesTableGUI\fillRow(), ilExcDeliveredFilesTableGUI\fillRow(), ilECSReleasedContentTableGUI\fillRow(), ilWikiRecentChangesTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), assFileUploadFileTableGUI\fillRow(), ilCalendarInboxSharedTableGUI\fillRow(), ilAssessmentFolderLogTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilTestHistoryTableGUI\fillRow(), ilCalendarChangedAppointmentsTableGUI\fillRow(), ilLanguageTableGUI\fillRow(), ilRbacLogTableGUI\fillRow(), ilCalendarAppointmentsTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), ilExportTableGUI\fillRow(), ilSurveyMaintenanceTableGUI\fillRow(), ilWaitingListTableGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilSubscriberTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilGroupParticipantsTableGUI\fillRow(), ilWikiPagesTableGUI\fillRow(), ilTestQuestionBrowserTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilSurveyQuestionbrowserTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilPDNotesBlockGUI\fillRow(), ilSurveyQuestionsTableGUI\fillRow(), ilPDMailBlockGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilNewsForContextBlockGUI\fillRow(), ilUserTableGUI\fillRow(), ilShopCouponsTableGUI\formatDateField(), ilShopCouponsTableGUI\formatDateTimeField(), formatPeriod(), ilLPTableBaseGUI\getExportMeta(), ilHistoryGUI\getHistoryTable(), ilRegistrationCodesTableGUI\getItems(), ilUserTableGUI\getItems(), ilNoteGUI\getNoteListHTML(), ilExAssignmentGUI\getOverviewBody(), ilExAssignmentGUI\getOverviewHeader(), ilTestServiceGUI\getPassOverview(), ilPDMailGUI\getPDMailHTML(), ilNoteGUI\getPDNoteHTML(), ilObjSession\getPresentationTitle(), ilObjUser\getProfileAsString(), ilObjForumListGUI\getProperties(), ilObjSurvey\getSurveyCodesTableData(), ilObjSCORMLearningModule\getTrackedUsers(), ilObjSCORM2004LearningModule\getTrackedUsers(), ilObjSCORM2004LearningModule\getTrackingDataAgg(), ilHistoryGUI\getVersionsTable(), ilObjCourseGUI\infoScreen(), ilObjMediaCastGUI\infoScreen(), ilObjGroupGUI\infoScreen(), ilObjTestGUI\infoScreen(), ilObjSystemFolderGUI\initCronJobsForm(), ilRegistrationCodesTableGUI\initFilter(), ilObjUserGUI\initForm(), ilPersonalProfileGUI\initPublicProfileForm(), ilObjUserFolderGUI\learningProgressObject(), ilObjiLincCourseGUI\listUsersGroupObject(), ilObjiLincCourseGUI\listUsersRoleObject(), ilTestOutputGUI\outProcessingTime(), ilConsultationHoursTableGUI\parse(), ilAdvancedMDRecordGUI\parseInfoPage(), ilAdvancedMDSubstitution\parseValue(), ilLPTableBaseGUI\parseValue(), ilTrSummaryTableGUI\parseValue(), ilObjTestGUI\participantsObject(), ilLinkCheckerTableGUI\prepareHTML(), ilMailFolderGUI\printMail(), ilObjQuestionPoolGUI\printObject(), ilObjGroupGUI\readMemberData(), ilObjCourseGUI\readMemberData(), ilObjChatGUI\recordingsObject(), ilObjCourseGUI\removeFromWaitingList(), ilPageObjectGUI\rollbackConfirmation(), ilObjiLincCourseGUI\searchObject(), ilObjTest\sendAdvancedNotification(), ilObjTest\sendSimpleNotification(), ilShopNewsGUI\showArchive(), ilShopBoughtObjectsGUI\showBillHistory(), ilSCORM2004ScoGUI\showExportList(), ilObjSCORM2004LearningModuleGUI\showExportList(), ilShopBoughtObjectsGUI\showItems(), ilInfoScreenGUI\showLearningProgress(), ilMailFolderGUI\showMail(), ilShopNewsGUI\showNews(), ilNewsForContextBlockGUI\showNews(), ilPageObjectGUI\showPage(), ilPaymentStatisticGUI\showStatistics(), ilObjPaymentSettingsGUI\statisticObject(), ilObjUser\updateLogin(), ilCourseArchivesGUI\view(), and ilObjObjectFolderGUI\viewObject().
|
static |
Format a period of two date Shows: 14.
Jul 2008 18:00 - 20:00 or: Today 18:00 - 20:00 or: 14. Jul 2008 - 16. Jul 2008 or: 14. Jul 2008, 12:00 - 16. Jul 2008, 14:00
public
@return |
Definition at line 182 of file class.ilDatePresentation.php.
References ilDateTime\_equals(), formatDate(), ilDateTime\get(), IL_CAL_DATE, IL_CAL_DAY, IL_CAL_FKT_DATE, ilCalendarSettings\TIME_FORMAT_12, and ilCalendarSettings\TIME_FORMAT_24.
Referenced by ilCourseContentGUI\__getItemGUI(), ilSessionAppointment\_appointmentToString(), ilObjCourseGUI\_modifyItemGUI(), ilCalendarEntry\appointmentToMailString(), ilObjRemoteCourseGUI\availabilityToString(), ilECSCategoryMappingRule\conditionToString(), ilBookingObjectsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRow(), ilCalendarAppointmentPanelGUI\getHTML(), ilObjUser\getProfileAsString(), ilTrQuery\getSessionData(), ilObjCourseGUI\infoScreen(), ilAdvancedMDSubstitution\parseValue(), ilObjSessionGUI\printAttendanceListObject(), ilObjSessionGUI\printViewMembersObject(), and ilCalendarAppointmentGUI\showInfoScreen().
|
static |
set language
Definition at line 83 of file class.ilDatePresentation.php.
Referenced by formatDate().
|
static |
Check if date is "today".
public
object | ilDateTime DateTime object to check |
Definition at line 241 of file class.ilDatePresentation.php.
References ilDateTime\_equals(), IL_CAL_DAY, and IL_CAL_UNIX.
|
static |
Check if date is tomorrow.
public
object | ilDateTime DateTime object to check |
Definition at line 281 of file class.ilDatePresentation.php.
References ilDateTime\_equals(), IL_CAL_DAY, IL_CAL_UNIX, and ilDateTime\increment().
|
static |
Check if date is yesterday.
public
object | ilDateTime DateTime object to check |
Definition at line 260 of file class.ilDatePresentation.php.
References ilDateTime\_equals(), IL_CAL_DAY, IL_CAL_UNIX, and ilDateTime\increment().
|
static |
reset to defaults
Definition at line 96 of file class.ilDatePresentation.php.
References $lng, setLanguage(), and setUseRelativeDates().
Referenced by ilObjUser\getProfileAsString().
|
static |
set language
Definition at line 72 of file class.ilDatePresentation.php.
References $lang.
Referenced by resetToDefaults().
|
static |
set use relative dates
bool |
Definition at line 50 of file class.ilDatePresentation.php.
Referenced by ilCalendarEntry\appointmentToMailString(), ilObjCourseGUI\fetchPrintMemberData(), assFileUploadFileTableGUI\fillRow(), ilLPTableBaseGUI\getExportMeta(), ilTable2GUI\getHTML(), ilObjUser\getProfileAsString(), ilAdvancedMDSubstitution\parseValue(), ilObjSessionGUI\printAttendanceListObject(), ilObjSessionGUI\printViewMembersObject(), resetToDefaults(), ilObjTest\sendAdvancedNotification(), and ilObjTest\sendSimpleNotification().
|
static |
check if relative dates are used
Definition at line 61 of file class.ilDatePresentation.php.
References $use_relative_dates.
|
staticprivate |
Definition at line 38 of file class.ilDatePresentation.php.
|
static |
Definition at line 40 of file class.ilDatePresentation.php.
|
static |
Definition at line 41 of file class.ilDatePresentation.php.
|
static |
Definition at line 37 of file class.ilDatePresentation.php.
Referenced by useRelativeDates().
|
static |
Definition at line 42 of file class.ilDatePresentation.php.