|
static | getUserDomains () |
|
static | getUserDomainsForUser ($user_id) |
|
static | removeUserDomainsForUser ($user_id) |
|
static | getUserDomainsForSeminar ($seminar_id) |
|
static | removeUserDomainsForSeminar ($seminar_id) |
|
static | checkUserVisibility ($domains_owned, $domains_to_check) |
|
static | checkCourseVisibility ($domains_owned, $domains_to_check) |
|
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 |
|
◆ __toString()
Converts the user domain into a string. This is required for array_diff() purposes in order to check whether userdomains of users or user and course match up.
- Returns
- string representation of the user domain
◆ addSeminar()
addSeminar |
( |
|
$seminar_id | ) |
|
Add a seminar to this user domain.
◆ addUser()
Add a user to this user domain.
◆ checkCourseVisibility()
static checkCourseVisibility |
( |
|
$domains_owned, |
|
|
|
$domains_to_check |
|
) |
| |
|
static |
◆ checkUserVisibility()
static checkUserVisibility |
( |
|
$domains_owned, |
|
|
|
$domains_to_check |
|
) |
| |
|
static |
Check the visibility for two sets of domains. The visibility is only given when any of the following cases is true:
- both sets of domains are empty
- the check is not strict and no domains are owned
- any of the owned domains has no restricted access
- the check is not strict and any of the domains to check has no restricted access
- the two sets of domains contain at least one same domain
- Parameters
-
array | $domains_owned | Domains owned by the object |
array | $domains_to_check | Domains to check against |
boolean | $strict | Perform a strict check; optional, default: false |
- Returns
- bool indicating whether visibility is given or not
◆ configure()
static configure |
( |
|
$config = [] | ) |
|
|
staticprotected |
◆ countCourses()
Count the number of courses associated with this user domain.
- Returns
- int number of courses
◆ countUsers()
Count the number of courses associated with this user domain.
- Returns
- int number of users
◆ getUserDomains()
static getUserDomains |
( |
| ) |
|
|
static |
Get an array of all defined user domains. Returns an array of UserDomain objects.
◆ getUserDomainsForSeminar()
static getUserDomainsForSeminar |
( |
|
$seminar_id | ) |
|
|
static |
Get an array of all user domains for a specific seminar. Returns an array of UserDomain objects.
◆ getUserDomainsForUser()
static getUserDomainsForUser |
( |
|
$user_id | ) |
|
|
static |
Get an array of all user domains for a specific user. Returns an array of UserDomain objects.
◆ removeSeminar()
removeSeminar |
( |
|
$seminar_id | ) |
|
Remove a seminar from this user domain.
◆ removeUser()
Remove a user from this user domain.
◆ removeUserDomainsForSeminar()
static removeUserDomainsForSeminar |
( |
|
$seminar_id | ) |
|
|
static |
Remove all user domains for a specific seminar.
◆ removeUserDomainsForUser()
static removeUserDomainsForUser |
( |
|
$user_id | ) |
|
|
static |
Remove all user domains for a specific user.
◆ REGEXP
const REGEXP = '^[\\w\.\-]{1,32}$' |
The documentation for this class was generated from the following file: