Handling Critical and Effort-driven Tasks in PHP
Contents
[
Hide
Show
]Aspose.Tasks - Handling Critical and Effort-driven Tasks
To Handle Critical and Effort-driven Tasks using Aspose.Tasks Java for PHP, simply invoke CriticalAndEffortDrivenTasks 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{
10 $task = $tasks -> get($i);
11 print $str_effort_driven = $task -> get($tsk -> IS_EFFORT_DRIVEN) != null ? "\nEffortDriven" : "\nNon-EffortDriven";
12 print $str_is_critical = $task -> get($tsk -> IS_CRITICAL) != null ? "\nCritical" : "\nNon-Critical";
13 $i += 1;
14}
Download Running Code
Download Handling Critical and Effort-driven Tasks (Aspose.Tasks) from any of the below mentioned social coding sites: