Stud.IP  trunk Revision
MyRealmModel Class Reference
Collaboration diagram for MyRealmModel:
Collaboration graph

Static Public Member Functions

static checkDocuments (&$my_obj, $user_id, $object_id)
 
static checkLiterature (&$my_obj, $user_id, $object_id)
 
static checkOverview (&$my_obj, $user_id, $object_id)
 
static checkScm (&$my_obj, $user_id, $object_id)
 
static checkSchedule (&$my_obj, $user_id, $object_id)
 
static checkWiki (&$my_obj, $user_id, $object_id)
 
static checkElearning_interface (&$my_obj, $user_id, $object_id)
 
static checkVote (&$my_obj, $user_id, $object_id)
 
static getPluginNavigationForSeminar ($seminar_id, $sem_class, $user_id, $visitdate)
 
static getCourses ($min_sem_key, $max_sem_key, $params=[])
 
static getDeputies ($user_id)
 
static getDeputieGroup ($range_id)
 
static getSelectedSemesters ($sem='all')
 
static getPreparedCourses ($sem="all", $params=[])
 
static checkParticipants (&$my_obj, $user_id, $object_id, $is_admission)
 
static getAdditionalNavigations ($object_id, &$my_obj_values, $sem_class, $user_id)
 
static getSemTree ($course_id, $depth=false)
 
static getStudygroupId ()
 
static setObjectVisits (&$object, $object_id, $user_id, $timestamp=null)
 
static getObjectValues (&$course)
 
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 checkAdmissionParticipation ($course_id)
 
static calc_nav_elements ($my_obj, $group_field='sem_number')
 
static calc_single_navigation ($collection)
 
static array_rtrim ($array)
 

Member Function Documentation

◆ array_rtrim()

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

◆ 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
Here is the caller graph for this function:

◆ calc_single_navigation()

static calc_single_navigation (   $collection)
static
Here is the caller graph for this function:

◆ checkAdmissionParticipation()

static checkAdmissionParticipation (   $course_id)
static
Here is the call graph for this function:

◆ checkDocuments()

static checkDocuments ( $my_obj,
  $user_id,
  $object_id 
)
static

Checks for changes in folders for a course.

Parameters
mixed$my_obj
string$user_id
string$object_id
Here is the call graph for this function:

◆ checkElearning_interface()

static checkElearning_interface ( $my_obj,
  $user_id,
  $object_id 
)
static
Parameters
$my_obj
$user_id
null$modules
Here is the call graph for this function:

◆ checkLiterature()

static checkLiterature ( $my_obj,
  $user_id,
  $object_id 
)
static
Parameters
$my_obj
$user_id
null$modules
Here is the call graph for this function:

◆ checkOverview()

static checkOverview ( $my_obj,
  $user_id,
  $object_id 
)
static

Check for new news

Parameters
$my_obj
$user_id
null$modules
Here is the call graph for this function:

◆ checkParticipants()

static checkParticipants ( $my_obj,
  $user_id,
  $object_id,
  $is_admission 
)
static
Here is the call graph for this function:

◆ checkSchedule()

static checkSchedule ( $my_obj,
  $user_id,
  $object_id 
)
static

Check for new dates

Parameters
$my_obj
$user_id
null$modules
Here is the call graph for this function:

◆ checkScm()

static checkScm ( $my_obj,
  $user_id,
  $object_id 
)
static

Check SCM for news

Parameters
$my_obj
$user_id
null$modules
Here is the call graph for this function:

◆ checkVote()

static checkVote ( $my_obj,
  $user_id,
  $object_id 
)
static

Check the voting system

Parameters
$my_obj
$user_id
null$modules
Here is the call graph for this function:

◆ checkWiki()

static checkWiki ( $my_obj,
  $user_id,
  $object_id 
)
static

Check for new entries in wiki

Parameters
$my_obj
$user_id
$modules
Here is the call graph for this function:

◆ getAdditionalNavigations()

static getAdditionalNavigations (   $object_id,
$my_obj_values,
  $sem_class,
  $user_id 
)
static

Get the whole icon-navigation for a given course

Parameters
$object_id
$my_obj_values
null$sem_class
$user_id
Returns
array
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCourses()

static getCourses (   $min_sem_key,
  $max_sem_key,
  $params = [] 
)
static

Get all courses vor given user in selected semesters

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDeputieGroup()

static getDeputieGroup (   $range_id)
static
Here is the call graph for this function:

◆ getDeputies()

static getDeputies (   $user_id)
static
Here is the call graph for this function:

◆ getMyInstitutes()

static getMyInstitutes ( )
static

Get all user assigned institutes based on simple or map

Returns
array
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getObjectValues()

static getObjectValues ( $course)
static

This functions check all modules for changes (new documents,...) and adds a new icon-navigation item to given course This function will only add something if nothing exists to get better performance

Parameters
$course
$call(debug)
Here is the caller graph for this function:

◆ getPluginNavigationForSeminar()

static getPluginNavigationForSeminar (   $seminar_id,
  $sem_class,
  $user_id,
  $visitdate 
)
static

Get the plugin icon navigation for a course

Parameters
$seminar_id
$visitdate
Returns
mixed
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getPreparedCourses()

static getPreparedCourses (   $sem = "all",
  $params = [] 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSelectedSemesters()

static getSelectedSemesters (   $sem = 'all')
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSemTree()

static getSemTree (   $course_id,
  $depth = false 
)
static
Parameters
$course_id
Returns
array
Here is the call graph for this function:

◆ getStudygroupId()

static getStudygroupId ( )
static

Returns the id for the studygroup name

Returns
Interger
Here is the call graph for this function:

◆ getStudygroups()

static getStudygroups ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWaitingList()

static getWaitingList (   $user_id)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ groupByGruppe()

static groupByGruppe ( $sem_courses)
static

◆ groupBySemStatus()

static groupBySemStatus ( $sem_courses)
static

◆ groupBySemTree()

static groupBySemTree ( $sem_courses)
static
Here is the call graph for this function:

◆ groupByTeacher()

static groupByTeacher ( $sem_courses)
static

◆ setObjectVisits()

static setObjectVisits ( $object,
  $object_id,
  $user_id,
  $timestamp = null 
)
static

This function reset all visits on every available modules

Parameters
$object
$object_id
$user_id
Returns
bool
Here is the call graph for this function:
Here is the caller graph for this function:

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