Stud.IP  5.4
 All Data Structures Namespaces Files Functions Variables Groups
Calendar Class Reference

Static Public Member Functions

static getGroups ($user_id)
 
static GetInstituteActivatedCalendar ($user_id)
 
static GetCoursesActivatedCalendar ($user_id)
 
static GetLecturers ()
 
static getDefaultUserSettings ($index=null)
 

Data Fields

const CALENDAR_END = 0x7FFFFFFF
 
const PERMISSION_OWN = 16
 
const PERMISSION_ADMIN = 8
 
const PERMISSION_WRITABLE = 4
 
const PERMISSION_READABLE = 2
 
const PERMISSION_FORBIDDEN = 1
 
const RANGE_USER = 1
 
const RANGE_GROUP = 2
 
const RANGE_SEM = 3
 
const RANGE_INST = 4
 

Member Function Documentation

static GetCoursesActivatedCalendar (   $user_id)
static
Parameters
string$user_id
Returns
array
static getDefaultUserSettings (   $index = null)
static

Returns an array of default user settings for the calendar or a specific value if the index is given.

Parameters
string$indexIndex of setting to get.
Returns
string|array Array of settings or one setting
static getGroups (   $user_id)
static

Retrieves all contact groups (statusgruppen) owned by the given user where at least one member has granted access to his calender for the user.

Parameters
string$user_idUser id of the owner.
Returns
type
static GetInstituteActivatedCalendar (   $user_id)
static
static GetLecturers ( )
static

Field Documentation

const CALENDAR_END = 0x7FFFFFFF

The (positive) end of unix epche

const PERMISSION_ADMIN = 8

The user has administrative access to the calendar. Means, he is not the owner but have the same rights. Not in use at the moment.

const PERMISSION_FORBIDDEN = 1

The user is not allowed to get any information about the calendar. The user has no access to the calendar but he see public events on the profile of the owner.

const PERMISSION_OWN = 16

The user is the owner of the calendar.

const PERMISSION_READABLE = 2

The user can read all information of all events, except events marked as confidential. These events are shown as busy times in the views. The user can not add new events nor edit existing events.

const PERMISSION_WRITABLE = 4

The user can add new events and edit existing events in the calendar. If the owner of the calendar has created an confidential event, the only information the user get is the start and end time. The event is shown as busy time in the views for him. If the user adds a confidential event, only he and the owner has full access to it. The event is shown as busy time to all other users.

const RANGE_GROUP = 2

The calendar is related to a group of users ("contact group" or Statusgruppe). Not used at the moment. The implemeted group functionality shows all personal calendars of the members of a contact group. It is not a shared calendar where all members have access to.

const RANGE_INST = 4

The calendar is a module of an institute or faculty. All members with status author, tutor or dozent have write access (PERMISSION_WRITABLE). Users with local status user has only read access (PERMISSION_READABLE).

const RANGE_SEM = 3

The calendar is a module of a course or studygroup. All members with status author, tutor or dozent have write access (PERMISSION_WRITABLE). Users with local status user has only read access (PERMISSION_READABLE).

const RANGE_USER = 1

The calendar is related to one user. He is the owner of the calendar.


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