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; }
public function removeSkill($skId) { $skill = Skill::getById($skId); if ($skill == null) { return false; } }