General Calendar Properties in PHP

Aspose.Tasks - General Calendar Properties

To get Calendar Properties using Aspose.Tasks Java for PHP, simply invoke CalendarProperties module. Here you can see example code.

PHP Code

 1$project = new Project('test_tasks.mpp');
 2$calendars = $project->getCalendars()->toList();
 3$i = 0;
 4while ($i < sizeof($calendars)) {
 5    $cal = $calendars->get($i);
 6    if ($cal->getName() != null) {
 7        print "Base Calendar : ";
 8        if ($cal -> isBaseCalendar()) {
 9            print "Self";
10        }
11        else {
12            $cal->getBaseCalendar()->getName();
13        }
14        print "UID : " . (string)$cal->getUid();
15        print "Name : " . (string)$cal->getName();
16}
17$i += 1;
18}

Download Running Code

Download General Calendar Properties (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.