|
| static | find ($id) |
| |
| static | findByTimestamp ($timestamp) |
| |
| static | findNext ($timestamp=null) |
| |
| static | findCurrent () |
| |
| static | getAll ($force_reload=false) |
| |
| static | expireTableScheme () |
| |
| static | find ($id) |
| |
| static | exists ($id) |
| |
| static | countBySql ($sql=1, $params=array()) |
| |
| static | create ($data) |
| |
| static | build ($data, $is_new=true) |
| |
| static | buildExisting ($data) |
| |
| static | import ($data) |
| |
| static | findBySQL ($sql, $params=array()) |
| |
| static | findByObject (SimpleORMap $object) |
| |
| static | findOneBySQL ($where, $params=array()) |
| |
| static | findThru ($foreign_key_value, $options) |
| |
| static | findEachBySQL ($callable, $sql, $params=array()) |
| |
| static | findMany ($pks=array(), $order='', $order_params=array()) |
| |
| static | findEachMany ($callable, $pks=array(), $order='', $order_params=array()) |
| |
| static | findAndMapBySQL ($callable, $where, $params=array()) |
| |
| static | findAndMapMany ($callable, $pks=array(), $order='', $order_params=array()) |
| |
| static | deleteBySQL ($where, $params=array()) |
| |
| static | toObject ($id_or_object) |
| |
| static | __callStatic ($name, $arguments) |
| |
◆ configure()
| static configure |
( |
|
$config = array() | ) |
|
|
staticprotected |
Configures this model.
- Parameters
-
Reimplemented from SimpleORMap.
◆ find()
returns semester object for given id or null
- Parameters
-
- Returns
- NULL|Semester
Reimplemented from SimpleORMap.
◆ findByTimestamp()
| static findByTimestamp |
( |
|
$timestamp | ) |
|
|
static |
returns Semester for given timestamp
- Parameters
-
- Returns
- null|Semester
◆ findCurrent()
◆ findNext()
| static findNext |
( |
|
$timestamp = null | ) |
|
|
static |
returns following Semester for given timestamp
- Parameters
-
- Returns
- null|Semester
◆ getAll()
| static getAll |
( |
|
$force_reload = false | ) |
|
|
static |
returns array of all existing semester objects orderd by begin
- Parameters
-
- Returns
- array
◆ getcurrent()
Returns whether this semester is the current semester.
- Returns
- bool Indicating if this is the current semester
◆ getfirst_sem_week()
Returns the calendar week number of the first week of the lecture period.
- Returns
- int Calendar week number of the first week of lecture
◆ getlast_sem_week()
Returns the calendar week number of the last week of the lecture period.
- Returns
- int Calendar week number of the last week of lecture
◆ getpast()
Return whether this semester is in the past.
- Returns
- bool Indicating whether this semester is in the past
◆ getSemWeekNumber()
| getSemWeekNumber |
( |
|
$timestamp | ) |
|
returns "Semesterwoche" for a given timestamp
- Parameters
-
- Returns
- number|boolean
◆ seminar_counter()
| seminar_counter |
( |
|
$field | ) |
|
|
protected |
Counts the number of different seminar types in this semester. This method caches the result in $seminar_counts so the db will only be queried once per semester.
- Parameters
-
| String | $field | Name of the seminar (/additional_fields) type |
- Returns
- int The count of seminars of this type
◆ toArray()
| toArray |
( |
|
$only_these_fields = null | ) |
|
returns data of table row as assoc array pass array of fieldnames or ws separated string to limit fields
- Parameters
-
| mixed | $only_these_fields | limit returned fields |
- Returns
- array
Reimplemented from SimpleORMap.
◆ $seminar_counts
The documentation for this class was generated from the following file: