Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
CalendarScheduleModel Class Reference
Collaboration diagram for CalendarScheduleModel:
Collaboration graph

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)
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, $show_hidden=false)
static getEntries ($user_id, $semester, $start_hour, $end_hour, $show_hidden=false)
static adminBind ($seminar_id, $cycle_id, $visible=true)
static unbind ($seminar_id, $cycle_id=false)
static bind ($seminar_id, $cycle_id)

Detailed Description

Pseudo-namespace containing helper methods for the schedule.

Since
2.0

Member Function Documentation

static adminBind (   $seminar_id,
  $cycle_id,
  $visible = true 
)
static

Toggle entries' visibility

Parameters
stringthe course's ID
stringthe cycle's ID
boolthe value to switch to
Returns
void

Here is the call graph for this function:

Here is the caller graph for this function:

static bind (   $seminar_id,
  $cycle_id 
)
static

Switch a cycle to visible.

Parameters
stringthe course's ID
stringthe cycle's ID
Returns
void

Here is the call graph for this function:

Here is the caller graph for this function:

static deleteEntry (   $id)
static

delete the entry with the submitted id, belonging to the current user

Parameters
string$id
Returns
void

Here is the call graph for this function:

Here is the caller graph for this function:

static deleteSeminarEntries (   $user_id,
  $seminar_id 
)
static

Deletes the schedule entries of one user for one seminar.

Parameters
$user_idthe user of the schedule
$seminar_idthe seminar which entries should be deleted

Here is the call graph for this function:

Here is the caller graph for this function:

static getEntries (   $user_id,
  $semester,
  $start_hour,
  $end_hour,
  $show_hidden = false 
)
static

return an array of entries in the schedule (personal ones and regular seminar-dates)

Parameters
string$user_id
mixed$semesterthe data for the semester to be displayed

Here is the call graph for this function:

Here is the caller graph for this function:

static getInstituteEntries (   $user_id,
  $semester,
  $start_hour,
  $end_hour,
  $institute_id,
  $show_hidden = false 
)
static

Returns a merged array consisting of normal and courses' entries

Parameters
stringthe user's ID
stringthe course's ID
stringthe start hour of the entries
stringthe end hour of the entries
stringthe institute's ID
boolfilters hidden entries
Returns
array an array of entries

Here is the call graph for this function:

Here is the caller graph for this function:

static getScheduleEntries (   $user_id,
  $start_hour,
  $end_hour,
  $id = false 
)
static

Returns the schedule entries (optionally of a given course)

Parameters
stringthe ID of the user
intthe start hour
intthe end hour
stringoptional; the ID of the course
Returns
array an array containing the entries

Here is the call graph for this function:

Here is the caller graph for this function:

static getSeminarCycleId ( Seminar  $seminar,
  $start,
  $end 
)
static

Returns the ID of the cycle of a course specified by start and end.

Parameters
Seminaran instance of a Seminar
stringthe start of the cycle
stringthe end of the cycle
Returns
string the ID of the cycle

Here is the call graph for this function:

static getSeminarEntries (   $user_id,
  $semester,
  $start_hour,
  $end_hour,
  $show_hidden = false 
)
static

Returns an schedule entry of a course

Parameters
stringthe ID of the user
stringthe ID of the course
intthe start hour
intthe end hour
stringoptional; true to show hidden, false otherwise
Returns
array an array containing the properties of the entry

Here is the call graph for this function:

Here is the caller graph for this function:

static getSeminarEntriesForInstitute (   $user_id,
  $semester,
  $start_hour,
  $end_hour,
  $institute_id 
)
static

Returns the schedule entries of the specified institute

Parameters
stringthe ID of the user
arrayan array containing the "beginn" of the semester
intthe start hour
intthe end hour
stringthe ID of the institute
Returns
array an array containing the entries

Here is the call graph for this function:

Here is the caller graph for this function:

static getSeminarEntry (   $seminar_id,
  $user_id,
  $cycle_id = false 
)
static

Return an entry for the specified course

Parameters
stringthe ID of the course
stringthe ID of the user
mixedeither false or the ID of the cycle
Returns
array the course's entry

Here is the call graph for this function:

Here is the caller graph for this function:

static isSeminarVisible (   $seminar_id,
  $cycle_id 
)
static
Parameters
stringthe ID of the course
stringthe ID of the cycle
Returns
bool true if visible, false otherwise

Here is the call graph for this function:

static storeEntry (   $data)
static

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

Parameters
mixed$data

Here is the call graph for this function:

Here is the caller graph for this function:

static storeSeminarEntry (   $data)
static

Update an existing entry of a course or create a new entry if $data['id'] is not set

Parameters
mixedthe data to store
Returns
void

Here is the call graph for this function:

Here is the caller graph for this function:

static unbind (   $seminar_id,
  $cycle_id = false 
)
static

Switch a cycle to invisible.

Parameters
stringthe course's ID
stringthe cycle's ID
Returns
void

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: