/** * Creates education filter part * * @param array $_filter The filter array * @param array|string $education The education(s) */ public function createEducationFilter(&$_filter, $education) { if ($education !== null) { if (is_array($education)) { foreach ($education as $value) { $this->createEducationFilter($_filter, $value); } } if (is_string($education)) { $educationCode = $this->enumeration->getEducationCode($education); if ($educationCode != false) { $_filter['featuresFilter']['detailFilter']['educationLevels'][] = array('__type__' => 'EducationLevel', 'code' => $educationCode); } else { $this->failed = true; } } } }