Removing Calendar Exceptions in PHP

Aspose.Tasks - Removing Calendar Exceptions

To remove Calendar Exceptions using Aspose.Tasks Java for PHP, simply invoke RemoveCalendarException module. Here you can see example code.

 1$project = new Project('test_tasks.mpp');
 2
 3$cal = $project->getCalendars()->toList()->get(0);
 4
 5if((int)(string)($cal->getExceptions()->getCount()) > 1) {
 6
 7    $exception = $cal -> getExceptions() -> toList() -> get(0);
 8
 9    $cal -> getExceptions() -> remove($exception);
10
11    print "Removed calendar exception.";
12
13}

Download Running Code

Download Removing Calendar Exceptions (Aspose.Tasks) from any of the below mentioned social coding sites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.