|
static | exportUserData (StoredUserData $storage) |
|
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) |
|
|
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 |
|
◆ calculateExpiration()
Calculates the value of the "expire" column in case the CalendarDate object has a repetition defined.
- Returns
- void
◆ cbGenerateUniqueId()
Generates an unique id if it isn't present.
- Returns
- void
◆ cbSendDateModificationMail()
cbSendDateModificationMail |
( |
| ) |
|
◆ clearRepetitionFields()
clearRepetitionFields |
( |
| ) |
|
This is a helper method to set all the fields for date repetition to an empty string.
- Returns
- void
◆ configure()
static configure |
( |
|
$config = [] | ) |
|
|
staticprotected |
◆ exportUserData()
Export available data of a given user into a storage object (an instance of the StoredUserData class) for that user.
- Parameters
-
Implements PrivacyObject.
◆ getAccessAsString()
◆ getCategoryAsString()
◆ getDefaultValue()
getDefaultValue |
( |
|
$field | ) |
|
◆ getOrdinalName()
Returns the textual ordinal for the offset of a weekday from property offset or an empty string if offset is not set.
- Returns
- string The textual ordinal.
◆ getParticipantsAsStringArray()
getParticipantsAsStringArray |
( |
string |
$user_id = '' | ) |
|
Returns the names of the participants of the date. This also includes courses to which the date is assigned.
- Parameters
-
string | $user_id | The user for which to generate the participant array. The user with that ID is excluded from that list. |
- Returns
- array A list with the names of the participants of the date.
◆ getRepetitionAsString()
getRepetitionAsString |
( |
| ) |
|
◆ getRepetitionInputHtml()
getRepetitionInputHtml |
( |
string |
$element_name = 'repetition' | ) |
|
Creates the HTML for creating a repetition input Vue component instance and fills it with the values from the model.
- Parameters
-
string | $element_name | The name of the element. |
- Returns
- string The HTML code for creating the repetition input vue instance.
◆ getRepetitionInterval()
getRepetitionInterval |
( |
| ) |
|
Returns the DateInterval for the repetition of this calendar date.
- Returns
- DateInterval|null The DateInterval for this calendar date or null in case the date has no repetition.
- Exceptions
-
Exception | In case a DateInterval cannot be constructed. |
◆ getRepetitionOffset()
◆ getVisibilityAsString()
getVisibilityAsString |
( |
| ) |
|
Returns a string representation of the access field.
- Returns
- string A localised string of the access field.
◆ getWeekdayName()
getWeekdayName |
( |
int |
$offset = 0 | ) |
|
Returns the short name of first weekday from property days or an empty string if days is not set.
- Parameters
-
$offset | int Offset of days. |
- Returns
- string Short name of weekday.
◆ isVisible()
isVisible |
( |
string |
$range_id | ) |
|
TODO
- Parameters
-
- Returns
- bool
◆ isWholeDay()
Determines whether the date spans over one whole day. This means that the date takes place on one day from 0:00:00 to 23:59:59.
- Returns
- bool True, if the date spans over the whole day, false otherwise.
◆ isWritable()
isWritable |
( |
string |
$range_id | ) |
|
◆ NEVER_ENDING
const NEVER_ENDING = 2147483647 |
NEVER_ENDING represents the value of the repetition_end field for a date that never ends. The value is the result of computing 2 ^ 31 - 1.
NOTE: This constant must be changed long before 2038-01-19 03:14:07 UTC or else dates that should end at some specific point in time may end never.
◆ REPETITION_DAILY
const REPETITION_DAILY = 'DAILY' |
◆ REPETITION_MONTHLY
const REPETITION_MONTHLY = 'MONTHLY' |
◆ REPETITION_SINGLE
const REPETITION_SINGLE = 'SINGLE' |
◆ REPETITION_WEEKLY
const REPETITION_WEEKLY = 'WEEKLY' |
◆ REPETITION_YEARLY
const REPETITION_YEARLY = 'YEARLY' |
The documentation for this class was generated from the following file: