General Properties in PHP
Contents
[
Hide
Show
]Aspose.Tasks - Getting General Properties
To get General Properties using Aspose.Tasks Java for PHP, call get_general_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();
6puts tasks.size()
7$tsk = new Tsk();
8$i = 0;
9while ($i < sizeof($tasks))
10{
11 $task = $tasks -> get($i);
12 print "Task Id:" . $task -> get($tsk -> ID);
13 print "\nTask Uid: " . $task -> get($tsk -> UID);
14 print "\nTask Name: " . $task -> get($tsk -> NAME);
15 print "\nTask Start: " . $task -> get($tsk -> START);
16 print "\nTask Finish: " . $task -> get($tsk -> FINISH);
17 print "\n---------------------------------------------";
18 $i += 1;
19}
Download Running Code
Download General Properties (Aspose.Tasks) from any of the below mentioned social coding sites: