Constructor & Destructor Documentation
| __construct |
( |
|
$id = null | ) |
|
- Parameters
-
| string | $id | primary key of table |
Reimplemented from SimpleORMap.
Member Function Documentation
| static countAbsolutSeminars |
( |
|
$id | ) |
|
|
static |
Returns the number of absolute seminars in a semester
- Parameters
-
| md5 | $id | of the semester return int count of seminars |
| static countContinuousSeminars |
( |
|
$id | ) |
|
|
static |
Return the number of continuous seminars in a semester
- Parameters
-
- Returns
- int count of seminars
| static countDurationSeminars |
( |
|
$id | ) |
|
|
static |
This method was adopted from the old version.
- Parameters
-
- Returns
- int count of seminars
| static deleteBySQL |
( |
|
$where | ) |
|
|
static |
delete Semester in db
- Parameters
-
- Returns
- number
returns semester object for given id or null
- Parameters
-
- Returns
- NULL|Semester
| static findBySql |
( |
|
$where | ) |
|
|
static |
returns array of Semester objects
- Parameters
-
- Returns
- array
| static findByTimestamp |
( |
|
$timestamp | ) |
|
|
static |
returns Semester for given timestamp
- Parameters
-
- Returns
- null|Semester
| static findNext |
( |
|
$timestamp = null | ) |
|
|
static |
returns following Semester for given timestamp
- Parameters
-
- Returns
- null|Semester
| static getAbsolutAndDurationSeminars |
( |
|
$id | ) |
|
|
static |
This method was adopted from the old version.
- Parameters
-
| md5 | $id | of the semester return int count of seminars |
| static getAll |
( |
|
$force_reload = false | ) |
|
|
static |
returns array of all existing semester objects orderd by begin
- Parameters
-
- Returns
- array
| getSemWeekNumber |
( |
|
$timestamp | ) |
|
returns "Semesterwoche" for a given timestamp
- Parameters
-
- Returns
- number|boolean
| setData |
( |
|
$data, |
|
|
|
$reset = false |
|
) |
| |
- See Also
- lib/classes/SimpleORMap::setData()
Reimplemented from SimpleORMap.
- See Also
- lib/classes/SimpleORMap::toArray()
Reimplemented from SimpleORMap.
| static toObject |
( |
|
$id_or_object | ) |
|
|
static |
returns user object for given id or null the param could be a string, an assoc array containing primary key field or an already matching object. In all these cases an object is returned
- Parameters
-
| mixed | $id_or_object | id as string, object or assoc array |
- Returns
- Semester
The documentation for this class was generated from the following file: