Removing Calendar Exceptions in PHP
Contents
[
Hide
Show
]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$cal = $project->getCalendars()->toList()->get(0);
3if((int)(string)($cal->getExceptions()->getCount()) > 1) {
4 $exception = $cal -> getExceptions() -> toList() -> get(0);
5 $cal -> getExceptions() -> remove($exception);
6 print "Removed calendar exception.";
7}
Download Running Code
Download Removing Calendar Exceptions (Aspose.Tasks) from any of the below mentioned social coding sites: