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
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 if ((string)$assignment -> get($asn -> STOP) == "1/1/2000")
16
17 {
18
19 print "NA";
20
21 }
22
23 else
24
25 {
26
27 print (string)$assignment -> get($asn -> STOP);
28
29 }
30
31
32
33 if ((string)$assignment -> get($asn -> RESUME) == "1/1/2000")
34
35 {
36
37 print "NA";
38
39 }
40
41 else
42
43 {
44
45 print (string)$assignment -> get($asn -> RESUME);
46
47 }
48
49 $i += 1;
50
51}
Download Running Code
Download Stop or Resume an Assignment (Aspose.Tasks) from any of the below mentioned social coding sites: