Working with Resource Assignment Budgets in PHP

Aspose.Tasks - Assignment Budget

To get Assignment Budget using Aspose.Tasks Java for PHP, simply invoke AssignmentBudget module. Here you can see example code.

 1$project = new Project('test_tasks.mpp');
 2
 3$resource_assignments = $project->getResourceAssignments()->toList();
 4
 5$asn = new Asn();
 6
 7$i = 0;
 8
 9while ($i < sizeof($resource_assignments))
10
11{
12
13    $assignment = $resource_assignments->get($i);
14
15    print "Budget Cost: " . (string)$assignment -> get($asn -> BUDGET_COST);
16
17    print "\nBudget Work: " . (string)$assignment -> get($asn -> BUDGET_WORK);
18
19    print "\n--------------------------------------------------------";
20
21    $i += 1;
22
23}

Download Running Code

Download Assignment Budget (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.