-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathReportPrivileges.php
More file actions
89 lines (70 loc) · 2.92 KB
/
ReportPrivileges.php
File metadata and controls
89 lines (70 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
class ReportPrivileges {
private $links;
private $names;
private $idEqual;
private $siteEqual;
private $studentID;
private $edit;
private $CurrentYear;
public function __construct($idEqual, $siteEqual, $studentID, $edit, $CurrentYear) {
$this->idEqual = $idEqual;
$this->siteEqual = $siteEqual;
$this->studentID = $studentID;
$this->edit = $edit;
$this->CurrentYear = $CurrentYear;
$this->links = array();
$this->names = array();
if(viewReport($this->idEqual, $this->siteEqual, Privilege(A2))){
$this->links[] = "index.php?cmd=toggleStudent&p1=$this->studentID";
$this->names[] = "Standard Tracking Information";
}
if(viewReport($this->idEqual, $this->siteEqual, Privilege(A4)) and $this->edit) {
$this->links[] = "index.php?cmd=repcurrentcreate&id=$this->studentID";
$this->names[] = "Create Current Report";
$this->links[] = "index.php?cmd=studentInfo&id=$this->studentID";
$this->names[] = "Student Information";
$this->links[] = "index.php?cmd=StudentEdit&id=$this->studentID";
$this->names[] = "Edit Student Information";
}
if(viewReport($this->idEqual, $this->siteEqual, Privilege(A18))) {
$this->links[] = "index.php?cmd=sreport&id=$this->studentID";
$this->names[] = "Report Cover - no QPI";
$this->links[] = "index.php?cmd=sreport&id=$this->studentID&qpi=on";
$this->names[] = "Report Cover - with QPI";
}
if(viewReport($this->idEqual, $this->siteEqual, Privilege(A20))) {
$this->links[] = "index.php?cmd=graduation_report&student_id=$this->studentID";
$this->names[] = "Graduation Progress Report";
$this->links[] = "index.php?cmd=progressReport&id=$this->studentID";
$this->names[] = "Standards Progress Details";
}
if(viewReport($this->idEqual, $this->siteEqual, Privilege(A22))) {
$this->links[] = "index.php?cmd=pacingReport&id=$this->studentID";
$this->names[] = "Pacing Report";
}
if($this->edit) {
$this->links[] = "index.php?cmd=AttendanceCalendar&student=$studentID&year=$CurrentYear";
$this->names[] = "Attendance";
}
if(viewReport($this->idEqual, $this->siteEqual, Privilege(A21)) and $this->edit) {
$this->links[] = "index.php?cmd=disciplineList&studentid=$this->studentID&year=$this->CurrentYear";
$this->names[] = "Discipline List";
}
if(viewReport($this->idEqual, $this->siteEqual, Privilege(A23)) and $this->edit) {
$this->links[] = "index.php?cmd=MovementView&studentid=$this->studentID";
$this->names[] = "View Student Movement";
}
if(viewReport($this->idEqual, $this->siteEqual, PrivilegeB(B9)) and $this->edit) {
$this->links[] = "index.php?cmd=StudentTranscriptEdit&id=$this->studentID";
$this->names[] = "Additional Transcript Info";
}
}
public function getLinks() {
return $this->links;
}
public function getNames() {
return $this->names;
}
}
?>