Dealing Variances in PHP

Aspose.Tasks - Dealing Variances

To see resource assignment variance using Aspose.Tasks Java for PHP, simply invoke AssignmentVariance 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$i = 0;
 6
 7$asn = new Asn();
 8
 9while ($i < sizeof($resource_assignments))
10
11{
12
13    $assignment = $resource_assignments->get($i);
14
15    print "Work Variance: " . (string)$assignment -> get($asn -> WORK_VARIANCE);
16
17    print "\nCost Variance: " . (string)$assignment -> get($asn -> COST_VARIANCE);
18
19    print "\nStart Variance: " . (string)$assignment -> get($asn -> START_VARIANCE);
20
21    print "\nFinish Variance: " . (string)$assignment -> get($asn -> FINISH_VARIANCE);
22
23    print "\n--------------------------------------------------------";
24
25    $i += 1;
26
27}

Download Running Code

Download Dealing Variances (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.