Actual Properties in PHP

Aspose.Tasks - Getting Actual Properties

To get Actual Properties using Aspose.Tasks Java for PHP, call get_actual_properties method of TasksProperties 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$tasks = $collector->getTasks();
10
11$tsk = new Tsk();
12
13$i = 0;
14
15while ($i < sizeof($tasks))
16
17{
18
19    $task = $tasks -> get($i);
20
21    print "Task Name : " . (string)$task -> get($tsk -> NAME);
22
23    print "\nActual Start: " . (string)$task -> get($tsk -> ACTUAL_START);
24
25    print "\nActual Finish: " . (string)$task -> get($tsk -> ACTUAL_FINISH);
26
27    print "\nActual Duration: " . (string)$task -> get($tsk -> ACTUAL_DURATION);
28
29    print "\nActual Cost: " . (string)$task->get($tsk -> ACTUAL_COST);
30
31    print "\n---------------------------------------------";
32
33    $i += 1;
34
35}

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.