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

$project = new Project('test_tasks.mpp');
$project_summary = $project->getRootTask();
$tsk = new Tsk();
$rsc = new Rsc();
print "Project Budget Work = " . (string)$project_summary->get($tsk->BUDGET_WORK);
print "\nProject Budget Cost = " . (string)$project_summary->get($tsk->BUDGET_COST);
$resource = $project->getResources()->getByUid(1);
print "\nResource BudgetWork = " . (string)$resource->get($rsc->BUDGET_WORK);
$resource = $project->getResources()->getByUid(2);
print "\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: