public function getMdlCourses(GcrEschool $eschool) { // removed course authorization //if (GcrEschoolTable::authorizeEschoolAccess($eschool)) //{ $params = $this->course_list->getParameters(); return $eschool->getMdlCourses(false, $params['search_string'], $params['category_id']); //} return array(); }
public function hasMnetConnection(GcrEschool $eschool) { $id = $eschool->getId(); foreach ($this->getMnetEschools() as $mnet_eschool) { if ($mnet_eschool->getId() == $id) { return true; } } return false; }