◆ Event()
| Event |
( |
|
$properties, |
|
|
|
$permission = NULL |
|
) |
| |
◆ getAccessibility()
◆ getCategory()
Returns the categories.
public
- Returns
- String the categories
◆ getChangeDate()
Returns the unix timestamp of the last change
public
◆ getDescription()
Returns the description.
If the description is not set it returns false.
public
- Returns
- String the description
◆ getDuration()
Returns the duration of this event in seconds
public
- Returns
- int the duration of this event in seconds
◆ getEnd()
Returns the endtime of this event.
public
- Returns
- int the endtime of this event as a unix timestamp
◆ getExceptions()
◆ getId()
◆ getImportDate()
◆ getLocation()
Returns the location. If the location is not set, it returns false.
public
- Returns
- String the location
◆ getMakeDate()
Returns the unix timestamp of creating
public
◆ getPermission()
◆ getProperty()
| getProperty |
( |
|
$property_name = "" | ) |
|
◆ getSeminarId()
◆ getStart()
Returns the starttime of this event.
public
- Returns
- int the starttime of this event as a unix timestamp
◆ getStudipCategory()
Returns the Stud.IP build in category as integer value. See config.inc.php $PERS_TERMIN_KAT.
public
- Returns
- int the categories
◆ getTitle()
Returns the title of this event.
public
- Returns
- String the title of this event
◆ havePermission()
◆ isDayEvent()
◆ isModified()
Returns true if this event has been modified after creation
public
- Returns
- boolean
◆ setCategory()
Changes the category of this event. Only skeleton, overwrite this function in child classes.
See config.inc.php for further information and values of categories.
After calling this method, isModified() returns true.
public
- Parameters
-
| int | $category | a valid integer representation of a category (see config.inc.php) |
- Returns
- boolean true if the value of $category is valid, otherwise false
◆ setChangeDate()
| setChangeDate |
( |
|
$timestamp = '' | ) |
|
Sets the unix timestamp of the last change
Access to this method is useful only from the container classes DbCalendarEventList, DbCalendarDay, DbCalendarMonth. Normally every modification of this object sets this value automatically. Nevertheless it is a public function.
public
- Parameters
-
| int | $timestamp | a valid unix timestamp |
◆ setDayEvent()
◆ setDescription()
| setDescription |
( |
|
$description | ) |
|
Changes the description.
After calling this method, isModified() returns true.
public
- Parameters
-
| String | $description | the description |
◆ setEnd()
Changes the endtime of this event.
After calling this method, isModified() returns true.
public
- Parameters
-
| int | $end | a valid unix timestamp |
◆ setId()
◆ setLocation()
Changes the location.
After calling this method, isModified() returns true.
public
- Parameters
-
| String | $location | the location |
◆ setMakeDate()
| setMakeDate |
( |
|
$timestamp = '' | ) |
|
Sets the unix timestamp of the creation date
Access to this method is useful only from the container classes DbCalendarEventList, DbCalendarDay, DbCalendarMonth. Normally the constructor sets this timestamp.
public
- Parameters
-
| int | $timestamp | a valid unix timestamp |
◆ setPermission()
◆ setProperty()
| setProperty |
( |
|
$property_name, |
|
|
|
$value |
|
) |
| |
◆ setStart()
Changes the starttime of this event.
After calling this method, isModified() returns true.
public
- Parameters
-
| int | $start | a valid unix timestamp |
◆ setTitle()
Changes the title of this event.
If no title is set it returns 'Kein Titel'.
After calling this method, isModified() returns true.
public
- Parameters
-
| String | $title | title of this event |
◆ toStringDate()
| toStringDate |
( |
|
$mod = 'SHORT' | ) |
|
Returns the string representation of start- and end-time
Without parameters it returns the short version:
12:30 - 09:45
If $mod = 'LONG' it returns the long version:
Monday, 20.03.2004 12:30 - Tuesday, 21.03.2004 09:45
If $mod = 'SHORT_DAY' it returns the long version with short day names
Mo. 20.03.2004 12:30 - Tu. 21.03.2004 09:45
public
- Parameters
-
| String | $mod | 'LONG', 'SHORT' or 'SHORT_DAY' |
◆ $chng_flag
◆ $id
◆ $permission
◆ $properties
◆ PERMISSION_CONFIDENTIAL
| const PERMISSION_CONFIDENTIAL = 1 |
◆ PERMISSION_FORBIDDEN
| const PERMISSION_FORBIDDEN = 0 |
◆ PERMISSION_READABLE
| const PERMISSION_READABLE = 2 |
◆ PERMISSION_WRITABLE
| const PERMISSION_WRITABLE = 4 |
The documentation for this class was generated from the following file: