|
static | tableScheme ($db_table) |
|
static | expireTableScheme () |
|
static | find ($id) |
|
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 ($name, $arguments) |
|
const | ID_SEPARATOR = '_' |
|
static | $schemes = null |
|
| $content = [] |
|
| $content_db = [] |
|
| $is_new = true |
|
| $is_deleted = false |
|
| $db_table = '' |
|
| $db_fields = null |
|
| $pk = null |
|
| $default_values = [] |
|
| $serialized_fields = [] |
|
| $alias_fields = [] |
|
| $i18n_fields = [] |
|
| $additional_fields = [] |
|
| $relations = [] |
|
| $has_many = [] |
|
| $has_one = [] |
|
| $belongs_to = [] |
|
| $has_and_belongs_to_many = [] |
|
| $registered_callbacks = [] |
|
| $known_slots = [] |
|
| $notification_map = [] |
|
| $additional_data = [] |
|
| $getter_setter_map = [] |
|
static | $config = [] |
|
static | $reserved_slots = ['value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id'] |
|
◆ configure()
static configure |
( |
|
$config = [] | ) |
|
|
staticprotected |
Configures the model.
- Parameters
-
array | $config | Configuration |
◆ createEvent()
createEvent |
( |
User |
$user | ) |
|
Creates a Stud.IP calendar event relating to the slot.
- Parameters
-
User | $user | User object to create the event for |
- Returns
- EventData Created event
◆ createEventId()
createEventId |
( |
User |
$user | ) |
|
|
protected |
Returns a unique event id.
- Parameters
-
- Returns
- string unique event id
◆ isOccupied()
isOccupied |
( |
|
$user_id = null | ) |
|
Returns whether this slot is occupied (by a given user).
- Parameters
-
mixed | $user_id | Id of the user (optional) |
- Returns
- boolean indicating whether the slot is occupied (by the given user)
◆ updateEvent()
Updates the teacher event that belongs to the slot. This will either be set to be unoccupied, occupied by only one user or by a group of user.
The documentation for this class was generated from the following file: