|
static | getConflictsBySelection ($selection_id, $only_visible=false) |
|
static | createSelectionId ($base_version, $comp_versions, $fachsems, $semtypes, string $user_id=null) |
|
static | tableScheme ($db_table) |
|
static | expireTableScheme () |
|
static | exists ($id) |
|
static | countBySql ($sql='1', $params=[]) |
|
static | create ($data) |
|
static | build ($data, $is_new=true) |
|
static | buildExisting ($data) |
|
static | import ($data) |
|
static | findBySQL ($sql, $params=[]) |
|
static | findOneBySQL ($where, $params=[]) |
|
static | findThru ($foreign_key_value, $options) |
|
static | findEachBySQL ($callable, $sql, $params=[]) |
|
static | findMany ($pks=[], $order='', $order_params=[]) |
|
static | findEachMany ($callable, $pks=[], $order='', $order_params=[]) |
|
static | findAndMapBySQL ($callable, $where, $params=[]) |
|
static | findAndMapMany ($callable, $pks=[], $order='', $order_params=[]) |
|
static | deleteBySQL ($where, $params=[]) |
|
static | toObject ($id_or_object) |
|
static | __callStatic (string $name, array $arguments) |
|
|
const | ID_SEPARATOR = '_' |
|
static | $schemes = null |
|
| _getId ($field) |
|
| _setId ($field, $value) |
|
| _getAdditionalValueFromRelation ($field) |
|
| _setAdditionalValueFromRelation ($field, $value) |
|
| _getAdditionalValue ($field) |
|
| _setAdditionalValue ($field, $value) |
|
| parseRelationOptions ($type, $name, $options) |
|
| storeRelations ($only_these=null) |
|
| deleteRelations () |
|
| initializeContent () |
|
| applyCallbacks ($type) |
|
| cbNotificationMapper ($cb_type) |
|
| cbAfterInitialize ($cb_type) |
|
| setSerializedValue ($field, $value) |
|
| setI18nValue ($field, $value) |
|
| $content = [] |
|
| $content_db = [] |
|
| $is_new = true |
|
| $is_deleted = false |
|
| $relations = [] |
|
| $additional_data = [] |
|
static | $config = [] |
|
static | $reserved_slots = ['value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id'] |
|
static | $performs_batch_operation = false |
|
◆ configure()
static configure |
( |
|
$config = array() | ) |
|
|
staticprotected |
Configures the model.
- Parameters
-
array | $config | Configuration |
◆ createSelectionId()
static createSelectionId |
( |
|
$base_version, |
|
|
|
$comp_versions, |
|
|
|
$fachsems, |
|
|
|
$semtypes, |
|
|
string |
$user_id = null |
|
) |
| |
|
static |
Returns a md5 hash over all given parameters.
- Parameters
-
string | $base_version | The id of the base version. |
string | $comp_versions | The id of the compared version. |
array | string | $fachsems | An array or a string with comma separated fachsem numbers. |
array | string | $semtypes | An array or a string with comma separated course types. |
string | null | $user_id | User id that created the selection (defaults to current user) |
- Returns
- string The md5 id.
◆ getConflictsBySelection()
static getConflictsBySelection |
( |
|
$selection_id, |
|
|
|
$only_visible = false |
|
) |
| |
|
static |
Returns all conflicts of all selections with the given selection id.
- Parameters
-
string | $selection_id | The selection id. |
boolean | $only_visible | Returns only visible conflicts. |
- Returns
- SimpleORMapCollection All conflicts of appropriate selections.
◆ getExcludedConflicts()
Returns all excluded (hidden) conflicts of this selection.
- Returns
- SimpleORMapCollection The excluded (hidden) conflicts.
◆ setCoursetypes()
setCoursetypes |
( |
|
$semtypes | ) |
|
Sets the given course types (semtypes). Expects an array or a comma separated list of course types.
- Parameters
-
◆ setFachsemester()
setFachsemester |
( |
|
$fachsems | ) |
|
Sets the given Fachsemester. Expects an array or a comma separated list of Fachsemester.
- Parameters
-
◆ store()
Creates a selection id and stores the selection.
- Exceptions
-
UnexpectedValueException | if there are forbidden NULL values |
- Returns
- number|boolean
◆ storeConflicts()
Store this selection with its all conflicts.
- Exceptions
-
UnexpectedValueException | if there are forbidden NULL values |
- Returns
- number|boolean
The documentation for this class was generated from the following file: