|
static | checkVote (&$my_obj, $user_id, $object_id) |
|
static | getCourses ($min_sem_key, $max_sem_key, $params=[]) |
|
static | getSelectedSemesters ($sem='') |
|
static | getPreparedCourses ($sem='', $params=[]) |
|
static | getAdditionalNavigations ($object_id, &$my_obj_values, $sem_class, $user_id, $visit_data=[]) |
|
static | setObjectVisits ($object, $user_id, $timestamp=null) |
|
static | getWaitingList ($user_id) |
|
static | getMyInstitutes () |
|
static | groupBySemTree (&$sem_courses) |
|
static | groupByGruppe (&$sem_courses) |
|
static | groupBySemStatus (&$sem_courses) |
|
static | groupByTeacher (&$sem_courses) |
|
static | groupByMVVModule (array &$sem_courses) |
|
static | getStudygroups () |
|
static | calc_nav_elements ($my_obj, $group_field='sem_number') |
|
static | calc_single_navigation ($collection) |
|
static | array_rtrim ($array) |
|
static | getDefaultModules ($range_type='course') |
|
◆ array_rtrim()
static array_rtrim |
( |
|
$array | ) |
|
|
static |
Trims an array from it's null value from the right.
- Parameters
-
array | $array | The array to trim |
- Returns
- array The trimmed array
- Author
- tlx
◆ calc_nav_elements()
static calc_nav_elements |
( |
|
$my_obj, |
|
|
|
$group_field = 'sem_number' |
|
) |
| |
|
static |
Calc nav elements to get the table-column-width
- Parameters
-
| $my_obj | |
string | $group_field | |
- Returns
- int
◆ calc_single_navigation()
static calc_single_navigation |
( |
|
$collection | ) |
|
|
static |
Calculates and returns the maximum length of the given course's navigations.
- Parameters
-
- Returns
- int
◆ checkVote()
static checkVote |
( |
& |
$my_obj, |
|
|
|
$user_id, |
|
|
|
$object_id |
|
) |
| |
|
static |
Check the voting system
- Parameters
-
string | $my_obj | |
string | $user_id | |
| $object_id | |
◆ getAdditionalNavigations()
static getAdditionalNavigations |
( |
|
$object_id, |
|
|
& |
$my_obj_values, |
|
|
|
$sem_class, |
|
|
|
$user_id, |
|
|
|
$visit_data = [] |
|
) |
| |
|
static |
Get the whole icon-navigation for a given course
- Parameters
-
| $object_id | |
| $my_obj_values | |
null | $sem_class | |
| $user_id | |
- Returns
- array
◆ getCourses()
static getCourses |
( |
|
$min_sem_key, |
|
|
|
$max_sem_key, |
|
|
|
$params = [] |
|
) |
| |
|
static |
Get all courses vor given user in selected semesters
◆ getDefaultModules()
static getDefaultModules |
( |
|
$range_type = 'course' | ) |
|
|
static |
◆ getMyInstitutes()
static getMyInstitutes |
( |
| ) |
|
|
static |
Get all user assigned institutes based on simple or map
- Returns
- array
◆ getPreparedCourses()
static getPreparedCourses |
( |
|
$sem = '' , |
|
|
|
$params = [] |
|
) |
| |
|
static |
Returns a list of all matching courses prepared for further treatment.
- Parameters
-
string | $sem | Semester index |
array | $params | Additional parameters |
- Returns
- array
◆ getSelectedSemesters()
static getSelectedSemesters |
( |
|
$sem = '' | ) |
|
|
static |
◆ getStudygroups()
static getStudygroups |
( |
| ) |
|
|
static |
Retrieves all study groups for the current user.
- Returns
- array A two-dimensional array. The second dimension contains data for each study group. Most fields of the Course model are present in the second dimension and there are additional fields like the colour (gruppe) or the start and end semester.
◆ getWaitingList()
static getWaitingList |
( |
|
$user_id | ) |
|
|
static |
Returns a list of all the courses the user is in the waiting list for.
- Parameters
-
string | $user_id | Id of the user |
- Returns
- array
◆ groupByGruppe()
static groupByGruppe |
( |
& |
$sem_courses | ) |
|
|
static |
Groups the list of courses by defined group.
- Parameters
-
◆ groupByMVVModule()
static groupByMVVModule |
( |
array & |
$sem_courses | ) |
|
|
static |
Groups the list of courses by associated mvv module of the course..
- Parameters
-
◆ groupBySemStatus()
static groupBySemStatus |
( |
& |
$sem_courses | ) |
|
|
static |
Groups the list of courses by the corresponding course's status.
- Parameters
-
◆ groupBySemTree()
static groupBySemTree |
( |
& |
$sem_courses | ) |
|
|
static |
Groups the list of courses by sem tree criteria.
- Parameters
-
array | $sem_courses | List of courses |
◆ groupByTeacher()
static groupByTeacher |
( |
& |
$sem_courses | ) |
|
|
static |
Groups the list of courses by the teacher(s) of the course.
- Parameters
-
◆ setObjectVisits()
static setObjectVisits |
( |
|
$object, |
|
|
|
$user_id, |
|
|
|
$timestamp = null |
|
) |
| |
|
static |
This function reset all visits on every available modules
- Parameters
-
- Returns
- bool
The documentation for this class was generated from the following file: