Read Timephased Data of a Resource

Aspose.Tasks - Read Timephased Data of a Resource

To read timephased data of a resource using Aspose.Tasks Java for PHP, one can simply invoke ReadTimephasedResourceData module. Here you can see example code.

 1$project = new Project('test_tasks.mpp');
 2
 3$resource = $project->getResources()->getByUid(1);
 4
 5$prj = new Prj();
 6
 7print "Timephased data of Resource Work";
 8
 9$result = $resource->getTimephasedData($project->get($prj->START_DATE), $project->get($prj->FINISH_DATE))->toList();
10
11$i = 0;
12
13while ($i < sizeof($result)) {
14
15    $td = $result -> get($i);
16
17    print "\nStart: " . (string)$td -> getStart();// . toString()
18
19    print "\nWork: " . (string)$td -> getValue();
20
21    $i += 1;
22
23}

Download Running Code

Download Read Timephased Data of a Resource (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.