Read Timephased Data of a Resource in PHP

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$resource = $project->getResources()->getByUid(1);
 3$prj = new Prj();
 4print "Timephased data of Resource Work";
 5$result = $resource->getTimephasedData($project->get($prj->START_DATE), $project->get($prj->FINISH_DATE))->toList();
 6$i = 0;
 7while ($i < sizeof($result)) {
 8    $td = $result -> get($i);
 9    print "\nStart: " . (string)$td -> getStart();// . toString()
10    print "\nWork: " . (string)$td -> getValue();
11    $i += 1;
12}

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.