Constructor & Destructor Documentation
__construct |
( |
|
$id = null | ) |
|
constructor
- Parameters
-
string | $id | primary key of table seminar_cycle_dates |
- Returns
- null
Reimplemented from SimpleORMap.
Member Function Documentation
static deleteBySql |
( |
|
$where | ) |
|
|
static |
deletes SeminarCycleDates specified by given sql where-clause
- Parameters
-
string | where clause to use on the right side of WHERE to delete all SeminarCycleDate matching that clause |
- Returns
- number of deleted SeminarCycleDates matching the given where-clause
static findBySeminar |
( |
|
$seminar_id | ) |
|
|
static |
returns array of instances of SeminarCycleDates of the given seminar_id
- Parameters
-
string | seminar_id: selected seminar to search for SeminarCycleDates |
- Returns
- array of instances of SeminarCycleDates of the given seminar_id or an empty array
static findBySql |
( |
|
$where | ) |
|
|
static |
returns array of instances of SeminarCycleDates filtered by given sql where-clause
- Parameters
-
string | where: clause to use on the right side of WHERE |
- Returns
- array of instances of SeminarCycleDates filtered by given sql where-clause or an empty array if nothing matches the clause
static findByTermin |
( |
|
$termin_id | ) |
|
|
static |
return instance of SeminarCycleDates of given termin_id
- Parameters
-
string | termin_id: selected seminar to search for SeminarCycleDates |
- Returns
- array
returns value of a column or for field start_hour, end_hour, start_minute or end_minute the correct timestamp
- Parameters
-
string | field: name of the field or start_hour, end_hour, start_minute or end_minute |
- Returns
- string for the attribute, or int (timestamp) if field is start_hour, end_hour, start_minute or end_minute or null, if field does not exists
Reimplemented from SimpleORMap.
setData |
( |
|
$data, |
|
|
|
$reset = false |
|
) |
| |
set multiple column values if second param is set, existing data in object will be discarded, else new data overrides old data
- Parameters
-
array | $data | assoc array |
boolean | $reset | |
- Returns
- number of columns changed
Reimplemented from SimpleORMap.
setValue |
( |
|
$field, |
|
|
|
$value |
|
) |
| |
sets value of a column|start_hour|start_minute|end_hour|end_minute|sws
- Parameters
-
string | $field | |
string | $value | |
- Returns
- string
Reimplemented from SimpleORMap.
returns data of table row as assoc array inclusivly start_hour, end_hour etc.
- Returns
- associative array in the scheme attribute => value
Reimplemented from SimpleORMap.
toString |
( |
|
$format = 'short' | ) |
|
returns a string for a date like '3. 9:00s - 10:45' (short and long) or '3. 9:00s - 10:45, , ab der 7. Semesterwoche, (Vorlesung)' with the week of the semester
- Parameters
-
format | string: "short"|"long"|"full" |
- Returns
- formatted string
The documentation for this class was generated from the following file: