Read Timephased Data of a Resource in PHP
Contents
[
Hide
Show
]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: