|
Stud.IP
2.4 Revision 48548
|

Static Public Member Functions | |
| static | storeEntry ($data) |
| static | storeSeminarEntry ($data) |
| static | deleteEntry ($id) |
| static | getScheduleEntries ($user_id, $start_hour, $end_hour, $id=false) |
| static | getSeminarEntry ($seminar_id, $user_id, $cycle_id=false, $semester=false) |
| static | deleteSeminarEntries ($user_id, $seminar_id) |
| static | getSeminarEntries ($user_id, $semester, $start_hour, $end_hour, $show_hidden=false) |
| static | getSeminarEntriesForInstitute ($user_id, $semester, $start_hour, $end_hour, $institute_id) |
| static | getSeminarCycleId (Seminar $seminar, $start, $end) |
| static | isSeminarVisible ($seminar_id, $cycle_id) |
| static | getInstituteEntries ($user_id, $semester, $start_hour, $end_hour, $institute_id, $days, $show_hidden=false) |
| static | getEntries ($user_id, $semester, $start_hour, $end_hour, $days, $show_hidden=false) |
| static | addDayChooser ($entries, $days, $controller= 'schedule') |
| static | adminBind ($seminar_id, $cycle_id, $visible=true) |
| static | unbind ($seminar_id, $cycle_id=false) |
| static | bind ($seminar_id, $cycle_id) |
Pseudo-namespace containing helper methods for the schedule.
|
static |
adds title and link to CalendarColumn-objects and sorts the objects to be displayed correctly in the calendar-view
| array | $entries | an array of CalendarColumn-objects |
| array | $days | an array of int's, denoting the days to be displayed |


|
static |
Toggle entries' visibility
| string | $seminar_id | the course's ID |
| string | $cycle_id | the cycle's ID |
| bool | $visible | the value to switch to |


|
static |
Switch a seminars' cycle to visible.
| string | $seminar_id | the course's ID |
| string | $cycle_id | the cycle's ID |


|
static |
delete the entry with the submitted id, belonging to the current user
| string | $id |


|
static |
Deletes the schedule entries of one user for one seminar.
| string | $user_id | the user of the schedule |
| string | $seminar_id | the seminar which entries should be deleted |


|
static |
| string | $user_id | |
| mixed | $semester | the data for the semester to be displayed Returns an array of CalendarColumn's, containing the seminar-entries for the passed user (in the passed semester) and the user-defined schedule-entries. 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. Seminar-entries can be hidden, so you can opt-in to fetch the hidden ones as well. |
| string | $user_id | the user's ID |
| string | $semester | the data for the semester to be displayed |
| int | $start_hour | the start hour of the entries |
| int | $end_hour | the end hour of the entries |
| array | $days | days to be displayed |
| bool | $show_hidden | filters hidden entries |


|
static |
Returns an array of CalendarColumn's, containing the seminar-entries for the passed user (in the passed semester belonging to the passed institute) and the user-defined schedule-entries. 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. Seminar-entries can be hidden, so you can opt-in to fetch the hidden ones as well.
| string | $user_id | the user's ID |
| string | $semester | the data for the semester to be displayed |
| int | $start_hour | the start hour of the entries |
| int | $end_hour | the end hour of the entries |
| string | $institute_id | the institute's ID |
| array | $days | days to be displayed |
| bool | $show_hidden | filters hidden entries |


|
static |
Returns an array of CalendarColumn's containing the schedule entries (optionally of a given id only). The start- and end-hour are used to constrain the returned entries to the passed time-period. If you pass an id, there will be only the single entry with that id in the CalendarColumn
| string | $user_id | the ID of the user |
| int | $start_hour | the start hour |
| int | $end_hour | the end hour |
| string | $id | optional; the ID of the schedule-entry |


|
static |
|
static |
Returns an array of CalendarColumn's, containing the seminar-entries for the passed user in the passed semester. The start- and end-hour are used to constrain the returned entries to the passed time-period. Seminar-entries can be hidden, so you can opt-in to fetch the hidden ones as well.
| string | $user_id | the ID of the user |
| string | $semester | an array containing the "beginn" of the semester |
| int | $start_hour | the start hour |
| int | $end_hour | the end hour |
| string | $show_hidden | optional; true to show hidden, false otherwise |


|
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.
| string | $user_id | the ID of the user |
| array | $semester | an array containing the "beginn" of the semester |
| int | $start_hour | the start hour |
| int | $end_hour | the end hour |
| string | $institute_id | the ID of the institute |


Return an entry for the specified course.
| string | $seminar_id | the ID of the course |
| string | $user_id | the ID of the user |
| mixed | $cycle_id | either false or the ID of the cycle |
| mixed | $semester | filter for this semester |


|
static |
check if the passed cycle of the passed id is visible for the currently logged in user int the schedule
| string | the ID of the course |
| string | the ID of the cycle |

|
static |
update an existing entry or -if $data['id'] is not set- create a new entry
| mixed | $data |


|
static |
Update an existing entry of a course or create a new entry if $data['id'] is not set
| mixed | $data | the data to store |


|
static |
Switch a seminars' cycle to invisible.
| string | $seminar_id | the course's ID |
| string | $cycle_id | the cycle's ID |

