1 | <?php |
||
17 | class CurriculumVitae extends Xml2arrayFunctions |
||
18 | { |
||
19 | private $lang; |
||
20 | private $curriculumVitae; |
||
21 | private $pathToFile; |
||
22 | private $interface; |
||
23 | private $cvFile; |
||
24 | private $xml2arrayFunctions; |
||
25 | |||
26 | /** |
||
27 | * @param string $pathToFile |
||
28 | * @param string $lang |
||
29 | */ |
||
30 | 29 | public function __construct($pathToFile, $lang = 'en') { |
|
37 | |||
38 | /** |
||
39 | * @return null|array |
||
40 | */ |
||
41 | 23 | public function getDropDownLanguages() { |
|
50 | |||
51 | /** |
||
52 | * @return array |
||
53 | */ |
||
54 | 4 | public function getAnchors() { |
|
72 | |||
73 | /** |
||
74 | * @return string |
||
75 | */ |
||
76 | 5 | public function getHumanFileName() { |
|
77 | 5 | $myName = $this->getMyName(); |
|
78 | 5 | if (empty($myName)) return $this->cvFile; |
|
79 | |||
80 | 4 | $myCurrentJob = $this->getMyCurrentJob(); |
|
81 | 4 | if (empty($myCurrentJob)) return $myName; |
|
82 | |||
83 | 3 | return $myName.' - '.$myCurrentJob; |
|
84 | } |
||
85 | |||
86 | /** |
||
87 | * @return array<string,null|array<string,array>> |
||
88 | */ |
||
89 | 5 | public function getCurriculumVitaeArray() { |
|
101 | |||
102 | /** |
||
103 | * @return null|array<string,array> |
||
104 | */ |
||
105 | 13 | public function getIdentity() { |
|
109 | |||
110 | /** |
||
111 | * @return null|array<string,array> |
||
112 | */ |
||
113 | 6 | public function getFollowMe() { |
|
117 | |||
118 | /** |
||
119 | * @return null|array<string,array> |
||
120 | */ |
||
121 | 11 | public function getLookingFor() { |
|
125 | |||
126 | /** |
||
127 | * @return null|array<string,array> |
||
128 | */ |
||
129 | 7 | public function getExperiences() { |
|
133 | |||
134 | /** |
||
135 | * @return null|array<string,array> |
||
136 | */ |
||
137 | 6 | public function getSkills() { |
|
141 | |||
142 | /** |
||
143 | * @return null|array<string,array> |
||
144 | */ |
||
145 | 6 | public function getEducations() { |
|
149 | |||
150 | /** |
||
151 | * @return null|array<string,array> |
||
152 | */ |
||
153 | 6 | public function getLanguageSkills() { |
|
157 | |||
158 | /** |
||
159 | * @return null|array<string,array> |
||
160 | */ |
||
161 | 6 | public function getMiscellaneous() { |
|
165 | |||
166 | 29 | private function setFileName() { |
|
173 | |||
174 | /** |
||
175 | * @return null|string |
||
176 | */ |
||
177 | 5 | private function getMyName() { |
|
186 | |||
187 | /** |
||
188 | * @return null|string |
||
189 | */ |
||
190 | 4 | private function getMyCurrentJob() { |
|
191 | 4 | $lookingFor = $this->getLookingFor(); |
|
192 | 4 | if (isset($lookingFor['experience']['job'])) { |
|
193 | 3 | return (string) $lookingFor['experience']['job']; |
|
194 | 2 | } elseif (isset($lookingFor['experience'])) { |
|
195 | 1 | return (string) $lookingFor['experience']; |
|
196 | } |
||
197 | |||
198 | 1 | return NULL; |
|
199 | } |
||
200 | |||
201 | /** |
||
202 | * @return \SimpleXMLElement |
||
203 | */ |
||
204 | 29 | private function getXmlCurriculumVitae() { |
|
212 | |||
213 | /** |
||
214 | * @return boolean |
||
215 | */ |
||
216 | 28 | private function isValidXmlCurriculumVitae() { |
|
237 | |||
238 | /** |
||
239 | * @return null|array<string,array> |
||
240 | */ |
||
241 | 25 | private function getXMLValue() { |
|
246 | } |
||
247 |