General Properties in PHP

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
 3$collector = new ChildTasksCollector();
 4
 5$taskUtils = new TaskUtils();
 6
 7$taskUtils->apply($project->getRootTask(), $collector, 0);
 8
 9$tasks = $collector->getTasks();
10
11puts tasks.size()
12
13$tsk = new Tsk();
14
15$i = 0;
16
17while ($i < sizeof($tasks))
18
19{
20
21    $task = $tasks -> get($i);
22
23    print "Task Id:" . $task -> get($tsk -> ID);
24
25    print "\nTask Uid: " . $task -> get($tsk -> UID);
26
27    print "\nTask Name: " . $task -> get($tsk -> NAME);
28
29    print "\nTask Start: " . $task -> get($tsk -> START);
30
31    print "\nTask Finish: " . $task -> get($tsk -> FINISH);
32
33    print "\n---------------------------------------------";
34
35    $i += 1;
36
37}

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.