PHPでタスクを操作します

Aspose.Tasks -アウトラインプロパティを取得

Aspose.Tasks java for phpを使用してアウトラインプロパティを取得するには、get_outline_properties tasksproperties **モジュールのメソッドを呼び出します。ここでは、サンプルコードを見ることができます。

PHPコード

 1$ project = new Project( 'test_tasks.mpp');
 2
 3$ collector = new ChildTasksCollector();
 4
 5$ taskutils = new taskutils();
 6
 7$ taskutils-> apply($ project-> getRoottask()、$ collector、0);
 8
 9$ tasks = $ collector-> gettasks();
10
11$ tsk = new tsk();
12
13$ i = 0;
14
15while($ i <sizeof($ tasks))
16
17{
18
19    $task=$tasks->get($i);
20
21    print "Outline Level: " . (string)$task->get($tsk -> OUTLINE_LEVEL);
22
23    print "\nOutline Number: " . (string)$task->get($tsk -> OUTLINE_NUMBER);
24
25    print "\n---------------------------------------------";
26
27    $i += 1;
28
29}

実行中のコードをダウンロード

ダウンロード**一般的なプロパティ(Aspose.Tasks)**以下のソーシャルコーディングサイトのいずれかから:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.