Пример #1
0
 private function setSkillsRequired($skills = array())
 {
     $failed = array();
     foreach ($skills as $skill) {
         $skill = Skill::getById($skill);
         if ($skill == null) {
             return false;
         }
         $add = $skill->addSkillForJob($this->jobId);
         if (!$add) {
             $failed[] = $skill->skillId;
         }
     }
     if (!empty($failed)) {
         //log stuffs about error...
     }
     return true;
 }
Пример #2
0
 public function removeSkill($skId)
 {
     $skill = Skill::getById($skId);
     if ($skill == null) {
         return false;
     }
 }