General Calendar Properties in PHP
Contents
[
Hide
Show
]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
3$calendars = $project->getCalendars()->toList();
4
5$i = 0;
6
7while ($i < sizeof($calendars)) {
8
9 $cal = $calendars->get($i);
10
11 if ($cal->getName() != null) {
12
13 print "Base Calendar : ";
14
15 if ($cal -> isBaseCalendar()) {
16
17 print "Self";
18
19 }
20
21 else {
22
23 $cal->getBaseCalendar()->getName();
24
25 }
26
27 print "UID : " . (string)$cal->getUid();
28
29 print "Name : " . (string)$cal->getName();
30
31}
32
33$i += 1;
34
35}
Download Running Code
Download General Calendar Properties (Aspose.Tasks) from any of the below mentioned social coding sites: