-
Notifications
You must be signed in to change notification settings - Fork 0
/
education_history.php
133 lines (121 loc) · 2.57 KB
/
education_history.php
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<?php
/**
* This class provides a way to represent an entry of the academic_degrees table
*/
class AcademicDegree {
/**
* The id of this degree
*/
private $degree_id;
/**
* The title of this degree
*/
private $title;
/**
* The type of the degree
*/
private $type;
/**
* The school this degree was obtained from
*/
private $school;
/**
* The description for this degree
*/
private $description;
/**
* The level at which this degree is offered
*/
private $level;
/**
* Construct an academic degree object
*/
function __construct($degree_id, $title, $type, $school, $description, $level) {
$this->degree_id = $degree_id;
$this->title = $title;
$this->type = $type;
$this->school = $school;
$this->description = $description;
$this->level = $level;
}
/**
* Returns this degree's id
*/
function degree_id() {
return $this->degree_id;
}
/**
* Returns this degree's title
*/
function title() {
return $this->title;
}
/**
* The school this degree was obtained in
*/
function school() {
return $this->school;
}
/**
* Returns this degree's type
*/
function type() {
return $this->type;
}
/**
* Returns this degree's description
*/
function description() {
return $this->description;
}
/**
* Returns this degree's level
*/
function level() {
return $this->level;
}
}
/**
* This class provides a way to represent an entry of the qualifications table
*/
class Qualification {
/**
* The teacher this qualification belongs to
*/
private $teacher;
/**
* The degree for this qualification
*/
private $degree;
/**
* The date the qualification was obtained
*/
private $date_obtained;
/**
* Construct a teacher object
*/
function __construct($teacher, $degree, $date_obtained) {
$this->teacher = $teacher;
$this->degree = $degree;
$this->date_obtained = $date_obtained;
}
/**
* Returns this qualification's teacher
*/
function teacher() {
return $this->teacher;
}
/**
* Returns this qualification's degree
*/
function degree() {
return $this->degree;
}
/**
* Returns this degree's date_obtained
*/
function date_obtained() {
return $this->date_obtained;
}
}
?>