Actual Properties in PHP
Contents
[
Hide
Show
]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$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 "Task Name : " . (string)$task -> get($tsk -> NAME);
12 print "\nActual Start: " . (string)$task -> get($tsk -> ACTUAL_START);
13 print "\nActual Finish: " . (string)$task -> get($tsk -> ACTUAL_FINISH);
14 print "\nActual Duration: " . (string)$task -> get($tsk -> ACTUAL_DURATION);
15 print "\nActual Cost: " . (string)$task->get($tsk -> ACTUAL_COST);
16 print "\n---------------------------------------------";
17 $i += 1;
18}
Download Running Code
Download General Properties (Aspose.Tasks) from any of the below mentioned social coding sites: