|
| static static | getDataFields ($objectType=null, $objectClass='', $includeNullClass=false) |
| |
| static | getDataClass () |
| |
| static | permMask ($perm) |
| |
| static | getReadableUserClass ($class) |
| |
| 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 | setMariadbDefaultColumnFix (bool $state=true) |
| |
◆ __call()
| __call |
( |
|
$method, |
|
|
array |
$arguments |
|
) |
| |
Legacy handler for access via [get|set]VariableName().
- Parameters
-
| String | $method | Called method |
| Array | $arguments | Given arguments |
- Returns
- mixed Return value of the getter/setter
- Exceptions
-
| BadMethodCallException | when the method does not match a valid pattern |
◆ accessAllowed()
| accessAllowed |
( |
|
$perm = null, |
|
|
|
$watcher = '', |
|
|
|
$user = '' |
|
) |
| |
Returns whether a user may access this datafield.
- Parameters
-
| String | $perm | Permission of the user, optional defaults to current user |
| String | $watcher | Current user |
| String | $user | Associated user of the datafield |
- Returns
- bool indicating whether the datafield may be accessed.
◆ configure()
| static configure |
( |
|
$config = [] | ) |
|
|
staticprotected |
Configures this model.
- Parameters
-
| Array | $config | Configuration array |
◆ count()
Specialized count method that returns the number of concrete entries.
- Returns
- int number of entries
◆ editAllowed()
| editAllowed |
( |
|
$userPerms | ) |
|
Returns whether a user may edit this datafield.
- Parameters
-
| String | $userPerms | Permissions of the user |
- Returns
- bool indicating whether the datafield may be edited
◆ exportUserData()
Export available data of a given user into a storage object (an instance of the StoredUserData class) for that user.
- Parameters
-
Implements PrivacyObject.
◆ getDataClass()
Returns a list of all datatype classes with an id as key and a name as value.
- Returns
- array list of all datatype classes
◆ getDataFields()
| static static getDataFields |
( |
|
$objectType = null, |
|
|
|
$objectClass = '', |
|
|
|
$includeNullClass = false |
|
) |
| |
|
static |
Returns a collection of datafields filtered by objectType, objectClass and/or unassigned objectClasses.
- Parameters
-
| mixed | $objectType | Object type |
| String | $objectClass | Object class |
| bool | $includeNullClass | Should the object class "null" be included |
- Returns
- static[] of DataField instances
◆ getReadableUserClass()
| static getReadableUserClass |
( |
|
$class | ) |
|
|
static |
liefert String zu gegebener user_class-Maske
- Parameters
-
| integer | $class | the user class mask |
- Returns
- string a string consisting of a comma separated list of permissions
◆ permMask()
Return the mask for the given permission
- Parameters
-
| string | $perm | the name of the permission |
- Returns
- integer the mask for the permission
◆ setType()
Sets the type and adjusts type param as well.
- Parameters
-
| String | $type | Type of this datafield |
◆ $permission_masks
The documentation for this class was generated from the following file: