WBS Associated with a Task in PHP
Contents
[
Hide
Show
]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$collector = new ChildTasksCollector();
3$taskUtils = new TaskUtils();
4$taskUtils->apply($project->getRootTask(), $collector, 0);
5$tsk = new Tsk();
6$tasks = $collector->getTasks();
7$i = 0;
8while ($i < sizeof($tasks)) {
9 $task = $tasks -> get($i);
10 print "WBS: " . (string)$task -> get($tsk -> WBS);
11 print "\nWBS Level: " . (string)$task -> get($tsk -> WBS_LEVEL);
12 $i += 1;
13}
Download Running Code
Download WBS Associated with a Task (Aspose.Tasks) from any of the below mentioned social coding sites: