|
@@ 303-312 (lines=10) @@
|
| 300 |
|
$job->getLocations()->add($location); |
| 301 |
|
} |
| 302 |
|
|
| 303 |
|
private function addProfessions(Job &$job,$terms) |
| 304 |
|
{ |
| 305 |
|
$professions = $this->getCategories($terms); |
| 306 |
|
foreach($professions as $profession){ |
| 307 |
|
$values = $job->getClassifications()->getProfessions()->getValues(); |
| 308 |
|
if(!is_array($values) || !in_array($profession,$values)){ |
| 309 |
|
$job->getClassifications()->getProfessions()->getItems()->add($profession); |
| 310 |
|
} |
| 311 |
|
} |
| 312 |
|
} |
| 313 |
|
|
| 314 |
|
private function addIndustries(Job &$job, $terms) |
| 315 |
|
{ |
|
@@ 314-323 (lines=10) @@
|
| 311 |
|
} |
| 312 |
|
} |
| 313 |
|
|
| 314 |
|
private function addIndustries(Job &$job, $terms) |
| 315 |
|
{ |
| 316 |
|
$industries = $this->getCategories($terms); |
| 317 |
|
foreach($industries as $industry){ |
| 318 |
|
$values = $job->getClassifications()->getIndustries()->getValues(); |
| 319 |
|
if(!is_array($values) || !in_array($industry,$values)){ |
| 320 |
|
$job->getClassifications()->getIndustries()->getItems()->add($industry); |
| 321 |
|
} |
| 322 |
|
} |
| 323 |
|
} |
| 324 |
|
|
| 325 |
|
/** |
| 326 |
|
* @param array $categories |