public static function my_courses($username, $order_by_cat) { global $CFG, $DB; $params = self::validate_parameters(self::my_courses_parameters(), array('username' => $username, 'order_by_cat' => $order_by_cat)); $auth = new auth_plugin_joomdle(); $return = $auth->my_courses($username, $order_by_cat); return $return; }