Read Timephased Data of a Resource in PHP
Contents
[
Hide
]
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.
$project = new Project('test_tasks.mpp');
$resource = $project->getResources()->getByUid(1);
$prj = new Prj();
print "Timephased data of Resource Work";
$result = $resource->getTimephasedData($project->get($prj->START_DATE), $project->get($prj->FINISH_DATE))->toList();
$i = 0;
while ($i < sizeof($result)) {
$td = $result -> get($i);
print "\nStart: " . (string)$td -> getStart();// . toString()
print "\nWork: " . (string)$td -> getValue();
$i += 1;
}
Download Running Code
Download Read Timephased Data of a Resource (Aspose.Tasks) from any of the below mentioned social coding sites: