ILIAS
Release_5_0_x_branch Revision 61816
|
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 $ilUser, $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(), ilCourseContentGUI\__renderItem(), ilCourseContentGUI\__renderUserItem(), ilPurchaseBaseGUI\__sendBill(), ilPurchaseBaseGUI\__showShoppingCart(), ilObjCourseGUI\__showWaitingList(), ilObject\_lookupLastUpdate(), ilPaymentStatisticGUI\addCustomer(), ilObjPaymentSettingsGUI\addCustomerObject(), ilObjRemoteFileGUI\addCustomInfoFields(), ilInfoScreenGUI\addObjectSections(), ilObjBookingPoolGUI\buildDatesBySchedule(), ilObjSurvey\canStartSurvey(), ilConsultationHoursGUI\confirmDelete(), ilMemberExportGUI\confirmDeleteExportFile(), ilSCORM2004ScoGUI\confirmDeleteExportFile(), ilObjSCORM2004LearningModuleGUI\confirmDeleteExportFile(), ilObjSurveyQuestionPoolGUI\confirmDeleteExportFileObject(), ilCalendarAppointmentGUI\confirmRegister(), ilConsultationHoursGUI\confirmRejectBooking(), ilCalendarAppointmentGUI\confirmUnregister(), ilForum\convertDate(), ilShopBoughtObjectsGUI\createBill(), ilPersonalSettingsGUI\deleteOwnAccount4(), ilObjCourseGUI\deleteSubscribers(), ilTestEvaluationGUI\detailedEvaluation(), ilPageObjectGUI\edit(), ilObjExerciseGUI\editAssignmentTextObject(), ilObjExerciseGUI\editPeerReviewObject(), ilPaymentStatisticGUI\editStatistic(), ilObjPaymentSettingsGUI\editStatisticObject(), ilCourseContentGUI\editTimings(), ilSessionStatisticsGUI\exportCSV(), ilObjSurveyQuestionPoolGUI\exportObject(), ilObjUserFolderGUI\exportObject(), ilSurveyEvaluationGUI\exportUserSpecificResults(), ilECSSetting\fetchCertificateExpiration(), ilObjCourseGUI\fetchPrintMemberData(), ilObjCourseGUI\fetchPrintSubscriberData(), ilGroupRegistrationGUI\fillRegistrationPeriod(), ilCourseRegistrationGUI\fillRegistrationPeriod(), ilNewsForContextTableGUI\fillRow(), ilECSServerTableGUI\fillRow(), ilSubItemSelectionTableGUI\fillRow(), ilTestPersonalDefaultSettingsTableGUI\fillRow(), ilHelpModuleTableGUI\fillRow(), ilPublicSubmissionsTableGUI\fillRow(), ilPageHistoryTableGUI\fillRow(), ilExportSelectionTableGUI\fillRow(), assFileUploadFileTableGUI\fillRow(), ilAssessmentFolderLogTableGUI\fillRow(), ilMediaCastTableGUI\fillRow(), ilTestHistoryTableGUI\fillRow(), ilHistoryTableGUI\fillRow(), ilTestPassManualScoringOverviewTableGUI\fillRow(), ilAdvancedMDRecordExportFilesTableGUI\fillRow(), ilECSReleasedContentTableGUI\fillRow(), ilECSImportedContentTableGUI\fillRow(), ilWikiRecentChangesTableGUI\fillRow(), ilTestPassOverviewTableGUI\fillRow(), ilCalendarInboxSharedTableGUI\fillRow(), ilWikiContributorsTableGUI\fillRow(), ilSCORMTrackingUsersTableGUI\fillRow(), ilExcDeliveredFilesTableGUI\fillRow(), ilFileVersionTableGUI\fillRow(), ilCalendarChangedAppointmentsTableGUI\fillRow(), ilLanguageTableGUI\fillRow(), ilSurveyCodesTableGUI\fillRow(), ilRbacLogTableGUI\fillRow(), ilUserLPTableGUI\fillRow(), ilExAssignmentTeamLogTableGUI\fillRow(), ilPollBlockGUI\fillRow(), ilExAssignmentListTextTableGUI\fillRow(), ilSurveyResultsUserTableGUI\fillRow(), ilAssignmentsTableGUI\fillRow(), ilTestFixedParticipantsTableGUI\fillRow(), ilSurveyMaintenanceTableGUI\fillRow(), ilTestParticipantsTableGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilExParticipantTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilSurveyAppraiseesTableGUI\fillRow(), ilAdminSubItemsTableGUI\fillRow(), ilExportTableGUI\fillRow(), ilSubscriberTableGUI\fillRow(), ilTestQuestionBrowserTableGUI\fillRow(), ilGroupParticipantsTableGUI\fillRow(), ilWikiPagesTableGUI\fillRow(), ilPDMailBlockGUI\fillRow(), ilWaitingListTableGUI\fillRow(), ilExAssignmentPeerReviewTableGUI\fillRow(), ilRepositoryUserResultTableGUI\fillRow(), ilWebResourceEditableLinkTableGUI\fillRow(), ilExerciseMemberTableGUI\fillRow(), ilPDNotesBlockGUI\fillRow(), ilLPProgressTableGUI\fillRow(), ilSurveyQuestionsTableGUI\fillRow(), ilSurveyQuestionbrowserTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilCronManagerTableGUI\fillRow(), ilTrUserObjectsPropsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), ilWorkspaceShareTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRow(), ilNewsForContextBlockGUI\fillRow(), ilUserTableGUI\fillRow(), ilLPProgressTableGUI\fillRowCSV(), ilBookingReservationsTableGUI\fillRowCSV(), ilUserLPTableGUI\fillRowExcel(), ilLPProgressTableGUI\fillRowExcel(), ilBookingReservationsTableGUI\fillRowExcel(), ilTermsOfServiceAcceptanceHistoryTableGUI\formatCellValue(), ilTermsOfServiceAgreementByLanguageTableGUI\formatCellValue(), ilShopCouponsTableGUI\formatDateField(), ilShopCouponsTableGUI\formatDateTimeField(), formatPeriod(), ilMailAttachmentTableGUI\formatValue(), ilObjTestGUI\formTimingObject(), ilCertificateAdapter\getBaseVariablesForPresentation(), ilCertificateAdapter\getBaseVariablesForPreview(), ilSkillCertificateAdapter\getCertificateVariablesForPresentation(), ilExAssignment\getDownloadedFilesInfoForTableGUIS(), ilObjPortfolioGUI\getExerciseInfo(), ilObjBlogGUI\getExerciseInfo(), ilLPTableBaseGUI\getExportMeta(), ilADTDatePresentationBridge\getHTML(), ilADTDateTimePresentationBridge\getHTML(), ilCloudPluginFileTreeGUI\getItemHtml(), ilRegistrationCodesTableGUI\getItems(), ilAccountCodesTableGUI\getItems(), ilUserTableGUI\getItems(), ilPollBlock\getMessage(), ilNoteGUI\getNoteListHTML(), ilExAssignmentGUI\getOverviewBody(), ilExAssignmentGUI\getOverviewHeader(), ilNoteGUI\getPDNoteHTML(), ilObjSession\getPresentationTitle(), ilObjFileListGUI\getProperties(), ilTestServiceGUI\getResultsSignature(), ilTestServiceGUI\getResultsUserdata(), ilDataCollectionRecord\getStandardFieldHTML(), ilObjSCORM2004LearningModule\getTrackingDataAgg(), ilForumExplorer\getTreeNodeHtml(), ilTestRandomQuestionSetConfigGUI\handleConfigurationStateMessages(), ilLMPresentationGUI\ilPage(), ilObjCourseGUI\infoScreen(), ilObjMediaCastGUI\infoScreen(), ilObjSurveyGUI\infoScreen(), ilObjGroupGUI\infoScreen(), ilLearningProgressGUI\initCollectionManualForm(), ilAccountCodesTableGUI\initFilter(), ilRegistrationCodesTableGUI\initFilter(), ilObjUserGUI\initForm(), ilPCBlogGUI\initPostingForm(), ilObjectListGUI\insertPayment(), ilObjiLincCourseGUI\listUsersGroupObject(), ilObjiLincCourseGUI\listUsersRoleObject(), ilObjGroupAccess\lookupRegistrationInfo(), ilObjCourseAccess\lookupRegistrationInfo(), ilTestPlayerAbstractGUI\outProcessingTime(), ilConsultationHourBookingTableGUI\parse(), ilGroupParticipantsTableGUI\parse(), ilCourseParticipantsTableGUI\parse(), ilDataCollectionDatatype\parseHTML(), ilCronManagerTableGUI\parseJobToData(), ilRepositoryUserResultTableGUI\parseUserIds(), ilLPTableBaseGUI\parseValue(), ilTrSummaryTableGUI\parseValue(), ilLinkCheckerTableGUI\prepareHTML(), ilWikiPageGUI\preview(), ilObjGroupGUI\readMemberData(), ilObjCourseGUI\readMemberData(), ilSubscriberTableGUI\readSubscriberData(), ilWaitingListTableGUI\readUserData(), ilObjCourseGUI\removeFromWaitingList(), ilCronManagerGUI\render(), ilPortfolioPageGUI\renderBlogTeaser(), ilSessionStatisticsGUI\renderCurrentBasics(), ilObjBlogGUI\renderList(), ilPageObjectGUI\rollbackConfirmation(), ilObjiLincCourseGUI\searchObject(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilTestMailNotification\sendSimpleNotification(), ilObjSurveyGUI\sendUserResultsMail(), arIndexTableGUI\setDateFieldData(), arDisplayGUI\setDateTimeData(), ilSkillSelfEvaluationGUI\setSelfEvaluationPresentationForm(), ilObjUserFolderGUI\showActionConfirmation(), ilLPObjectStatisticsGUI\showAggregationInfo(), ilShopNewsGUI\showArchive(), ilShopBoughtObjectsGUI\showBillHistory(), ilShopPurchaseGUI\showDetails(), ilLMPresentationGUI\showDownloadList(), ilSCORM2004ScoGUI\showExportList(), ilObjSCORM2004LearningModuleGUI\showExportList(), ilShopBoughtObjectsGUI\showItems(), ilShopShoppingCartGUI\showItems(), ilInfoScreenGUI\showLearningProgress(), ilChatroomHistoryTask\showMessages(), ilShopNewsGUI\showNews(), ilNewsForContextBlockGUI\showNews(), ilPageObjectGUI\showPage(), ilPersonalProfileGUI\showPublicProfileFields(), ilPaymentStatisticGUI\showStatistics(), ilObjPaymentSettingsGUI\statisticObject(), ilObjTestGUI\timingOverviewObject(), ilPageObject\update(), 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 $ilUser, 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 ilSessionAppointment\_appointmentToString(), ilObjectActivation\addListGUIActivationProperty(), ilCalendarEntry\appointmentToMailString(), ilObjRemoteGroupGUI\availabilityToString(), ilObjRemoteTestGUI\availabilityToString(), ilObjRemoteCourseGUI\availabilityToString(), ilCalendarAppointmentGUI\book(), ilSessionStatisticsGUI\buildData(), ilCalendarAppointmentGUI\cancelBooking(), ilECSCategoryMappingRule\conditionToString(), ilBookingObjectGUI\displayPostInfo(), ilWikiStatGUI\export(), ilCalendarChangedAppointmentsTableGUI\fillRow(), ilGroupParticipantsTableGUI\fillRow(), ilCourseParticipantsTableGUI\fillRow(), ilCalendarBlockGUI\getData(), ilCalendarAppointmentPanelGUI\getHTML(), ilTrQuery\getSessionData(), ilObjCourseGUI\infoScreen(), ilObjSessionGUI\initAttendanceList(), ilObjBookingPoolGUI\initBookingNumbersForm(), ilConsultationHoursTableGUI\parse(), ilAccountMail\replacePlaceholders(), ilObjBookingPoolGUI\rsvConfirmCancelAggregationForm(), ilAccountMail\send(), ilCalendarAppointmentsTableGUI\setAppointments(), ilCalendarAppointmentGUI\showInfoScreen(), ilChatroomHistoryTask\showMessages(), and ilMemberExport\write().
|
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 $ilUser, 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 $ilUser, 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 $ilUser, 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 ilLPProgressTableGUI\fillRowCSV(), and ilLPProgressTableGUI\fillRowExcel().
|
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 ilPaymentObjectGUI\__construct(), ilBookingReservationsTableGUI\__construct(), ilPurchaseBaseGUI\__sendBill(), ilCalendarEntry\appointmentToMailString(), ilSessionStatisticsGUI\buildData(), ilShopBoughtObjectsGUI\createBill(), ilCertificate\createPreview(), ilPersonalSettingsGUI\deleteOwnAccount4(), ilBookingObjectGUI\displayPostInfo(), ilSessionStatisticsGUI\exportCSV(), ilSurveyEvaluationGUI\exportUserSpecificResults(), ilObjCourseGUI\fetchPrintMemberData(), ilWikiAdvMetaDataBlockGUI\fillDataSection(), assFileUploadFileTableGUI\fillRow(), ilTestPassOverviewTableGUI\fillRow(), ilPollBlockGUI\fillRow(), ilQuestionPoolPrintViewTableGUI\fillRow(), ilLPProgressTableGUI\fillRowCSV(), ilLPProgressTableGUI\fillRowExcel(), ilCertificateAdapter\getBaseVariablesForPresentation(), ilCertificateAdapter\getBaseVariablesForPreview(), ilSkillCertificateAdapter\getCertificateVariablesForPresentation(), ilSkillCertificateAdapter\getCertificateVariablesForPreview(), ilObjPortfolioGUI\getExerciseInfo(), ilObjBlogGUI\getExerciseInfo(), ilLPTableBaseGUI\getExportMeta(), ilTable2GUI\getHTML(), ilNoteGUI\getNoteListHTML(), ilTestServiceGUI\getResultsSignature(), ilTestServiceGUI\getResultsUserdata(), ilObjSurveyGUI\infoScreen(), ilObjSessionGUI\initAttendanceList(), ilCertificate\outCertificate(), ilDataCollectionDatatype\parseHTML(), ilBlogPostingGUI\postOutputProcessing(), ilPersonalSkillsGUI\renderObjectEvalRow(), ilPersonalSkillsGUI\renderSelfEvaluationRow(), resetToDefaults(), ilObjBookingPoolGUI\rsvConfirmCancelAggregationForm(), ilCronDeleteInactiveUserReminderMailNotification\send(), ilTestMailNotification\sendAdvancedNotification(), ilTestMailNotification\sendSimpleNotification(), ilSkillSelfEvaluationGUI\setSelfEvaluationPresentationForm(), ilLMPresentationGUI\showDownloadList(), ilChatroomHistoryTask\showMessages(), and ilMemberExport\write().
|
static |
check if relative dates are used
Definition at line 61 of file class.ilDatePresentation.php.
References $use_relative_dates.
Referenced by ilBookingObjectGUI\displayPostInfo(), ilWikiAdvMetaDataBlockGUI\fillDataSection(), ilTestPassOverviewTableGUI\fillRow(), ilPollBlockGUI\fillRow(), ilCertificateAdapter\getBaseVariablesForPresentation(), ilCertificateAdapter\getBaseVariablesForPreview(), ilSkillCertificateAdapter\getCertificateVariablesForPresentation(), ilSkillCertificateAdapter\getCertificateVariablesForPreview(), ilObjPortfolioGUI\getExerciseInfo(), ilObjBlogGUI\getExerciseInfo(), ilNoteGUI\getNoteListHTML(), ilTestServiceGUI\getResultsSignature(), ilTestServiceGUI\getResultsUserdata(), ilDataCollectionDatatype\parseHTML(), ilBlogPostingGUI\postOutputProcessing(), ilCronDeleteInactiveUserReminderMailNotification\send(), and ilChatroomHistoryTask\showMessages().
|
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.