Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
MyRealmModel Class Reference

Static Public Member Functions

static checkVote (&$my_obj, $user_id, $object_id)
 
static getCourses ($min_sem_key, $max_sem_key, $params=[])
 
static getSelectedSemesters ($sem= 'all')
 
static getPreparedCourses ($sem= 'all', $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 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')
 

Member Function Documentation

static array_rtrim (   $array)
static

Trims an array from it's null value from the right.

Parameters
Array$arrayThe array to trim
Returns
array The trimmed array
Author
tlx
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
static calc_single_navigation (   $collection)
static

Calculates and returns the maximum length of the given course's navigations.

Parameters
array$collection
Returns
int
static checkVote ( $my_obj,
  $user_id,
  $object_id 
)
static

Check the voting system

Parameters
$my_obj
$user_id
null$modules
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
static getCourses (   $min_sem_key,
  $max_sem_key,
  $params = [] 
)
static

Get all courses vor given user in selected semesters

static getDefaultModules (   $range_type = 'course')
static
static getMyInstitutes ( )
static

Get all user assigned institutes based on simple or map

Returns
array
static getPreparedCourses (   $sem = 'all',
  $params = [] 
)
static

Returns a list of all matching courses prepared for further treatment.

Parameters
string$semSemester index
array$paramsAdditional parameters
Returns
array|null
static getSelectedSemesters (   $sem = 'all')
static
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.
static getWaitingList (   $user_id)
static

Returns a list of all the courses the user is in the waiting list for.

Parameters
$user_idId of the user
Returns
array
static groupByGruppe ( $sem_courses)
static

Groups the list of courses by defined group.

Parameters
array$sem_courses
static groupBySemStatus ( $sem_courses)
static

Groups the list of courses by the corresponding course's status.

Parameters
array$sem_courses
static groupBySemTree ( $sem_courses)
static

Groups the list of courses by sem tree criteria.

Parameters
array$sem_coursesList of courses
static groupByTeacher ( $sem_courses)
static

Groups the list of courses by the teacher(s) of the course.

Parameters
array$sem_courses
static setObjectVisits (   $object,
  $user_id,
  $timestamp = null 
)
static

This function reset all visits on every available modules

Parameters
$object
$user_id
Returns
bool

The documentation for this class was generated from the following file: