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

Static Public Member Functions

static getSeminarEntry ($seminar_id, $user_id, $cycle_id=false)
 
static getInstituteEntries ($user_id, $semester, $start_hour, $end_hour, $institute_id, $days)
 

Detailed Description

Pseudo-namespace containing helper methods for the calendar of institutes.

Since
2.0

Member Function Documentation

static getInstituteEntries (   $user_id,
  $semester,
  $start_hour,
  $end_hour,
  $institute_id,
  $days 
)
static

Returns an array of CalendarColumn's, containing the seminar-entries for the passed user (in the passed semester belonging to the passed institute) The start- and end-hour are used to constrain the returned entries to the passed time-period. The passed days constrain the entries to these.

Parameters
string$user_idthe ID of the user
array$semesteran array containing the "beginn" of the semester
int$start_hourthe start hour
int$end_hourthe end hour
string$institute_idthe ID of the institute
array$daysthe days to be displayed
Returns
array an array containing the entries
static getSeminarEntry (   $seminar_id,
  $user_id,
  $cycle_id = false 
)
static

Returns a schedule entry for a course

Parameters
string$seminar_idthe ID of the course
string$user_idthe ID of the user
string$cycle_idoptional; if given, specifies the ID of the entry
Returns
array an array containing the properties of the entry

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