Retrieve a Task's Budget Work and Cost Values in PHP

Aspose.Tasks - Retrieve a Task’s Budget Work and Cost Values

To Retrieve a Task’s Budget Work and Cost Values using Aspose.Tasks Java for PHP, simply invoke GetBudgetWorkAndCostValue module. Here you can see example code.

PHP Code

 1$project = new Project('test_tasks.mpp');
 2$project_summary = $project->getRootTask();
 3$tsk = new Tsk();
 4$rsc = new Rsc();
 5print "Project Budget Work = " . (string)$project_summary->get($tsk->BUDGET_WORK);
 6print "\nProject Budget Cost = " . (string)$project_summary->get($tsk->BUDGET_COST);
 7$resource = $project->getResources()->getByUid(1);
 8print "\nResource BudgetWork = " . (string)$resource->get($rsc->BUDGET_WORK);
 9$resource = $project->getResources()->getByUid(2);
10print "\nResource BudgetCost = " . (string)$resource->get($rsc->BUDGET_COST);

Download Running Code

Download Retrieve a Task’s Budget Work and Cost Values (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.