Stop or Resume an Assignment in PHP
Contents
[
Hide
Show
]Aspose.Tasks - Stop or Resume an Assignment
To Stop or Resume an Assignment using Aspose.Tasks Java for PHP, simply invoke StopAndResumeAssignment module. Here you can see example code.
1$project = new Project('test_tasks.mpp');
2$resource_assignments = $project->getResourceAssignments()->toList();
3$i = 0;
4$asn = new Asn();
5while ($i < sizeof($resource_assignments))
6{
7 $assignment = $resource_assignments -> get($i);
8 if ((string)$assignment -> get($asn -> STOP) == "1/1/2000")
9 {
10 print "NA";
11 }
12 else
13 {
14 print (string)$assignment -> get($asn -> STOP);
15 }
16
17 if ((string)$assignment -> get($asn -> RESUME) == "1/1/2000")
18 {
19 print "NA";
20 }
21 else
22 {
23 print (string)$assignment -> get($asn -> RESUME);
24 }
25 $i += 1;
26}
Download Running Code
Download Stop or Resume an Assignment (Aspose.Tasks) from any of the below mentioned social coding sites: