public function getCourses($pedagogID, $semester)
 {
     // ziska predmety len ku ktorym moze zadavat a pripoji metapoziadavky
     $courses = new Courses();
     $predmety = $courses->getForUser($pedagogID, $semester, $this->typ_role);
     foreach ($predmety as &$predmet) {
         $predmet["meta_poziadavka"] = $this->metaRequests->getLastMetaRequest($predmet["id"], $this->typ_poziadavky);
     }
     return $predmety;
 }
 function getForUser($userid, $semesterID)
 {
     $courses = new Courses();
     return $courses->getForUser($userid, $semesterID, 3);
 }