Handling Priorities in PHP

Aspose.Tasks - Handling Priorities

To Handle Priorities using Aspose.Tasks Java for PHP, simply invoke HandlingPriorities 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$tasks = $collector->getTasks();
 6$tsk = new Tsk();
 7$i = 0;
 8while ($i < sizeof($tasks)) {
 9    $task = $tasks -> get($i);
10    print "Priority: " . (string)$task -> get($tsk -> PRIORITY);
11    print "\n---------------------------------------------";
12    $i += 1;
13}

Download Running Code

Download Handling Priorities (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.