PHPの一般カレンダープロパティ
Contents
[
Hide
Show
]Aspose.Tasks -一般カレンダープロパティ
Aspose.Tasks java for phpを使用してカレンダープロパティを取得するには、カレンダープロパティモジュールを呼び出します。ここでは、サンプルコードを見ることができます。
PHPコード
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}
実行中のコードをダウンロード
ダウンロード**一般的なカレンダープロパティ(Aspose.Tasks)**以下のいずれかのソーシャルコーディングサイトのいずれかから: