WBS Associated with a Task in PHP

Aspose.Tasks - WBS Associated with a Task

To WBS Associated with a Task using Aspose.Tasks Java for PHP, simply invoke WBSAssociatedWithTask module. Here you can see example code.

PHP Code

 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$tsk = new Tsk();
10
11$tasks = $collector->getTasks();
12
13$i = 0;
14
15while ($i < sizeof($tasks)) {
16
17    $task = $tasks -> get($i);
18
19    print "WBS: " . (string)$task -> get($tsk -> WBS);
20
21    print "\nWBS Level: " . (string)$task -> get($tsk -> WBS_LEVEL);
22
23    $i += 1;
24
25}

Download Running Code

Download WBS Associated with a Task (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.