Retrieve Task 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
3$project_summary = $project->getRootTask();
4
5$tsk = new Tsk();
6
7$rsc = new Rsc();
8
9print "Project Budget Work = " . (string)$project_summary->get($tsk->BUDGET_WORK);
10
11print "\nProject Budget Cost = " . (string)$project_summary->get($tsk->BUDGET_COST);
12
13$resource = $project->getResources()->getByUid(1);
14
15print "\nResource BudgetWork = " . (string)$resource->get($rsc->BUDGET_WORK);
16
17$resource = $project->getResources()->getByUid(2);
18
19print "\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: