public static function show() { $arguments = array_key_exists('arguments', $_SESSION) ? $_SESSION['arguments'] : 0; $userData = $_SESSION['userData']; if (!is_null($userData)) { $_SESSION['userData'] = $userData; $skillAssocs = SkillAssocsDB::getSkillAssocsBy('userDataId', $userData->getUserDataId()); $_SESSION['skillAssocs'] = $skillAssocs; UserDataView::show(); } else { HomeView::show(); } }
public static function show() { $arguments = array_key_exists('arguments', $_SESSION) ? $_SESSION['arguments'] : 0; $userData = $_SESSION['userData']; if (!is_null($userData)) { $_SESSION['userData'] = $userData; $skillAssocs = SkillAssocsDB::getSkillAssocsBy('userDataId', $userData->getUserDataId()); $skills = array(); foreach ($skillAssocs as $skillAssoc) { $skillsArray = SkillsDB::getSkillsBy('skillId', $skillAssoc->getSkillId()); $skill = $skillsArray[0]; array_push($skills, $skill); } //$_SESSION['skillAssocs'] = $skillAssocs; $_SESSION['skills'] = $skills; UserDataView::show(); } else { HomeView::show(); } }