Managing Assignment Cost in PHP

Aspose.Tasks - Managing Assignment Cost

To manage Assignment Cost using Aspose.Tasks Java for PHP, simply invoke AssignmentCost module. Here you can see example code.

PHP 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 "COST: " . (string)$assignment -> get($asn -> COST);
16
17    print "\nACWP: " . (string)$assignment -> get($asn -> ACWP);
18
19    print "\nBCWP: " . (string)$assignment -> get($asn -> BCWP);
20
21    print "\nBCWS: " . (string)$assignment -> get($asn -> BCWS);
22
23    print "\n--------------------------------------------------------";
24
25    $i += 1;
26
27}

Download Running Code

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