public function initialize()
 {
     $path = "/vacancies";
     if ($vacancy_id = (int) $this->getProperty('vacancy_id')) {
         $path .= "/{$vacancy_id}";
     }
     $this->setProperties(array("path" => $path));
     /*
         Если значение пустое, удаляем переменную, так как hh ругается на пустое значение
     */
     if (!$this->getProperty('specialization')) {
         $this->unsetProperty('specialization');
     }
     if (!$this->getProperty('salary')) {
         $this->unsetProperty('salary');
     }
     return parent::initialize();
 }
 public function initialize()
 {
     $this->setProperties(array("path" => "/specializations"));
     return parent::initialize();
 }