Stud.IP
2.0 Revision 48548
|
Public Member Functions | |
Event ($properties) | |
getProperty ($property_name="") | |
setProperty ($property_name, $value) | |
setId ($id) | |
getId () | |
getTitle () | |
getStart () | |
getEnd () | |
getCategory () | |
getStudipCategory () | |
getDescription () | |
getDuration () | |
getLocation () | |
getMakeDate () | |
setMakeDate ($timestamp="") | |
getChangeDate () | |
setChangeDate ($timestamp="") | |
isModified () | |
setDescription ($description) | |
setLocation ($location) | |
setStart ($start) | |
setEnd ($end) | |
setCategory ($category) | |
setTitle ($title= '') | |
isDayEvent () | |
toStringDate ($mod= 'SHORT') |
Data Fields | |
$id | |
$properties = array() | |
$chng_flag = FALSE |
Event | ( | $properties | ) |
getCategory | ( | ) |
getChangeDate | ( | ) |
Returns the unix timestamp of the last change
public
getDescription | ( | ) |
Returns the description.
If the description is not set it returns FALSE.
public
Reimplemented in DbCalendarEvent.
getDuration | ( | ) |
Returns the duration of this event in seconds
public
getEnd | ( | ) |
Returns the endtime of this event.
public
getId | ( | ) |
getLocation | ( | ) |
Returns the location. If the location is not set, it returns FALSE.
public
getMakeDate | ( | ) |
Returns the unix timestamp of creating
public
getProperty | ( | $property_name = "" | ) |
getStart | ( | ) |
Returns the starttime of this event.
public
getStudipCategory | ( | ) |
Returns the Stud.IP build in category as integer value. See config.inc.php $PERS_TERMIN_KAT.
public
getTitle | ( | ) |
Returns the title of this event.
public
Reimplemented in SeminarEvent.
isDayEvent | ( | ) |
Reimplemented in CalendarEvent.
isModified | ( | ) |
Returns TRUE if this event has been modified after creation
public
setCategory | ( | $category | ) |
Changes the category of this event. Only skeleton, overwrite this function in child classes.
See config.inc.php for further information and values.
After calling this method, the method isModified() returns TRUE.
public
int | $category | a valid integer representation of a category (see config.inc.php) |
Reimplemented in SeminarEvent.
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
int | $timestamp | a valid unix timestamp |
setDescription | ( | $description | ) |
Changes the description.
After calling this method, the method isModified() returns TRUE.
public
String | $description | the description |
setEnd | ( | $end | ) |
Changes the endtime of this event.
After calling this method, the method isModified() returns TRUE.
public
int | $end | a valid unix timestamp |
setId | ( | $id | ) |
setLocation | ( | $location | ) |
Changes the location.
After calling this method, the method isModified() returns TRUE.
public
String | $location | the location |
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
int | $timestamp | a valid unix timestamp |
setProperty | ( | $property_name, | |
$value | |||
) |
setStart | ( | $start | ) |
Changes the starttime of this event.
After calling this method, the method isModified() returns TRUE.
public
int | $start | a valid unix timestamp |
setTitle | ( | $title = '' | ) |
Changes the title of this event.
If no title is set it returns 'Kein Titel'.
After calling this method, the method isModified() returns TRUE.
public
String | $title | title of this event |
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
String | $mod | 'LONG', 'SHORT' or 'SHORT_DAY' |
Reimplemented in CalendarEvent.
$chng_flag = FALSE |
$id |
$properties = array() |