Example #1
0
 public static function getActiveProjects($userID)
 {
     $currentProjectIDs = MyDB::getStudentProjects($userID);
     //print_r($currentProjectIDs);
     if (is_array($currentProjectIDs)) {
         $currentProjects = array();
         for ($i = 0; $i < count($currentProjectIDs); $i++) {
             array_push($currentProjects, MyDB::getprojectByID($currentProjectIDs[$i]));
         }
         return $currentProjects;
     }
     return -1;
 }