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() { |
|
89 | |||
90 | /** |
||
91 | * @return null|array |
||
92 | */ |
||
93 | 5 | public function getCurriculumVitaeArray() { |
|
94 | return array( |
||
95 | 5 | 'identity' => $this->getIdentity(), |
|
96 | 5 | 'followMe' => $this->getFollowMe(), |
|
97 | 5 | 'lookingFor' => $this->getLookingFor(), |
|
98 | 5 | 'experiences' => $this->getExperiences(), |
|
99 | 5 | 'skills' => $this->getSkills(), |
|
100 | 5 | 'educations' => $this->getEducations(), |
|
101 | 5 | 'languageSkills' => $this->getLanguageSkills(), |
|
102 | 5 | 'miscellaneous' => $this->getMiscellaneous(), |
|
103 | 5 | ); |
|
104 | } |
||
105 | |||
106 | /** |
||
107 | * @return null|array |
||
108 | */ |
||
109 | 13 | public function getIdentity() { |
|
113 | |||
114 | /** |
||
115 | * @return null|array |
||
116 | */ |
||
117 | 6 | public function getFollowMe() { |
|
121 | |||
122 | /** |
||
123 | * @return null|array |
||
124 | */ |
||
125 | 12 | public function getLookingFor() { |
|
129 | |||
130 | /** |
||
131 | * @return null|array |
||
132 | */ |
||
133 | 7 | public function getExperiences() { |
|
137 | |||
138 | /** |
||
139 | * @return null|array |
||
140 | */ |
||
141 | 6 | public function getSkills() { |
|
145 | |||
146 | /** |
||
147 | * @return null|array |
||
148 | */ |
||
149 | 6 | public function getEducations() { |
|
153 | |||
154 | /** |
||
155 | * @return null|array |
||
156 | */ |
||
157 | 6 | public function getLanguageSkills() { |
|
161 | |||
162 | /** |
||
163 | * @return null|array |
||
164 | */ |
||
165 | 6 | public function getMiscellaneous() { |
|
169 | |||
170 | 29 | private function setFileName() { |
|
177 | |||
178 | /** |
||
179 | * @return string |
||
180 | */ |
||
181 | 5 | private function getMyName() { |
|
185 | |||
186 | /** |
||
187 | * @return null|string |
||
188 | */ |
||
189 | 5 | private function getMyCurrentJob() { |
|
199 | |||
200 | /** |
||
201 | * @return \SimpleXMLElement |
||
202 | */ |
||
203 | 29 | private function getXmlCurriculumVitae() { |
|
211 | |||
212 | /** |
||
213 | * @return boolean |
||
214 | */ |
||
215 | 28 | private function isValidXmlCurriculumVitae() { |
|
236 | |||
237 | /** |
||
238 | * @return null|array |
||
239 | */ |
||
240 | 25 | private function getXMLValue() { |
|
247 | } |
||
248 |