HOW TO disable specific dates in calendar?

Talk and info about common issues and learn how to do almost anything with ApPHP Calendar

Moderator: alexandrleonenko

administrator
Site Admin
Site Admin
Posts: 6011
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO disable specific dates in calendar?

Postby administrator » Jun 3rd, '12, 12:15

You have some embedded features, that allow you to disable specific dates in calendar.

1. You may disable specific week days.
To do this simple specify required days with SetDisabledDays() method.

Here the example:

Code: Select all

## disable certain days of the week:
## from 1 (Sunday) to 7 (Saturday). Ex.: 1,2 or 7
$objCalendar->SetDisabledDays(6,7);



2. You may disable dates in the past for editing and deleting events.

Code: Select all

## *** allow editing events in past
$objCalendar->EditingEventsInPast(false);
## *** allow deleting events in past
$objCalendar->DeletingEventsInPast(false);   

Return to “ApPHP Calendar {HOW TO}”