Outline Properties in PHP

Aspose.Tasks - Getting Outline Properties

To get Outline Properties using Aspose.Tasks Java for PHP, call get_outline_properties method of TasksProperties 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{
10    $task=$tasks->get($i);
11    print "Outline Level: " . (string)$task->get($tsk -> OUTLINE_LEVEL);
12    print "\nOutline Number: " . (string)$task->get($tsk -> OUTLINE_NUMBER);
13    print "\n---------------------------------------------";
14    $i += 1;
15}

Download Running Code

Download General Properties (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.