|
| static | findCurrent () |
| |
| static | findByUsername ($username) |
| |
| static | findByDatafield ($datafield_id, $value) |
| |
| static | findDozentenByTermin_id ($termin_id) |
| |
| static | expireTableScheme () |
| |
| static | find ($id) |
| |
| static | exists ($id) |
| |
| static | countBySql ($sql=1, $params=array()) |
| |
| static | create ($data) |
| |
| static | build ($data, $is_new=true) |
| |
| static | buildExisting ($data) |
| |
| static | import ($data) |
| |
| static | findBySQL ($sql, $params=array()) |
| |
| static | findByObject (SimpleORMap $object) |
| |
| static | findOneBySQL ($where, $params=array()) |
| |
| static | findThru ($foreign_key_value, $options) |
| |
| static | findEachBySQL ($callable, $sql, $params=array()) |
| |
| static | findMany ($pks=array(), $order='', $order_params=array()) |
| |
| static | findEachMany ($callable, $pks=array(), $order='', $order_params=array()) |
| |
| static | findAndMapBySQL ($callable, $where, $params=array()) |
| |
| static | findAndMapMany ($callable, $pks=array(), $order='', $order_params=array()) |
| |
| static | deleteBySQL ($where, $params=array()) |
| |
| static | toObject ($id_or_object) |
| |
| static | __callStatic ($name, $arguments) |
| |
|
| | _getId ($field) |
| |
| | _setId ($field, $value) |
| |
| | _getAdditionalValueFromRelation ($field) |
| |
| | _setAdditionalValueFromRelation ($field, $value) |
| |
| | _getAdditionalValue ($field) |
| |
| | _setAdditionalValue ($field, $value) |
| |
| | parseRelationOptions ($type, $name, $options) |
| |
| | getTableScheme () |
| |
| | storeRelations ($only_these=null) |
| |
| | deleteRelations () |
| |
| | initializeContent () |
| |
| | applyCallbacks ($type) |
| |
| | registerCallback ($types, $cb) |
| |
| | unregisterCallback ($types, $cb) |
| |
| | cbAutoIncrementColumn ($type) |
| |
| | cbAutoKeyCreation () |
| |
| | cbNotificationMapper ($cb_type) |
| |
| | setSerializedValue ($field, $value) |
| |
| | $content = array() |
| |
| | $content_db = array() |
| |
| | $is_new = true |
| |
| | $is_deleted = false |
| |
| | $db_table = '' |
| |
| | $db_fields = null |
| |
| | $pk = null |
| |
| | $default_values = array() |
| |
| | $serialized_fields = array() |
| |
| | $alias_fields = array() |
| |
| | $additional_fields = array() |
| |
| | $relations = array() |
| |
| | $has_many = array() |
| |
| | $has_one = array() |
| |
| | $belongs_to = array() |
| |
| | $has_and_belongs_to_many = array() |
| |
| | $registered_callbacks |
| |
| | $known_slots = array() |
| |
| | $reserved_slots = array('value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id') |
| |
| | $notification_map = array() |
| |
| | $additional_data = array() |
| |
| static | $schemes = null |
| |
| static | $config = array() |
| |
◆ configure()
| static configure |
( |
|
$config = array() | ) |
|
|
staticprotected |
- Parameters
-
| string | $id | primary key of table |
Reimplemented from AuthUserMd5.
◆ findByDatafield()
| static findByDatafield |
( |
|
$datafield_id, |
|
|
|
$value |
|
) |
| |
|
static |
returns an array of User-objects that have the given value in the given datafield.
- Parameters
-
| string | $datafield_id | |
| array | of User |
◆ findByUsername()
| static findByUsername |
( |
|
$username | ) |
|
|
static |
return user object for given username
- Parameters
-
| string | $username | a username |
- Returns
- User
◆ findCurrent()
Returns the currently authenticated user.
- Returns
- mixed User
◆ findDozentenByTermin_id()
| static findDozentenByTermin_id |
( |
|
$termin_id | ) |
|
|
static |
◆ getFullName()
| getFullName |
( |
|
$format = "full" | ) |
|
returns the name in specified format (formats defined in $GLOBALS['_fullname_sql'])
- Parameters
-
| string | one of full,full_rev,no_title,no_title_rev,no_title_short,no_title_motto,full_rev_username |
- Returns
- string guess what - the fullname
◆ getPristineValue()
| getPristineValue |
( |
|
$field | ) |
|
returns unmodified value of given field
- Parameters
-
- Exceptions
-
- Returns
- mixed
Reimplemented from SimpleORMap.
◆ hasRole()
| hasRole |
( |
|
$role, |
|
|
|
$institute_id = '' |
|
) |
| |
Returns whether the user was assigned a certain role.
- Parameters
-
| string | $role | The role to check |
| string | $institute_id | An optional institute_id |
- Returns
- bool True if the user was assigned this role, false otherwise
◆ initRelation()
| initRelation |
( |
|
$relation | ) |
|
◆ isDirty()
checks if at least one field was modified since last restore
- Returns
- boolean
Reimplemented from SimpleORMap.
◆ isFieldDirty()
checks if given field was modified since last restore
- Parameters
-
- Returns
- boolean
Reimplemented from SimpleORMap.
◆ isFriendOf()
| isFriendOf |
( |
|
$another_user | ) |
|
Returns whether the given user is stored in contacts.
- Parameters
-
- Returns
- bool
◆ revertValue()
reverts value of given field to last restored value
- Parameters
-
- Returns
- mixed the restored value
Reimplemented from SimpleORMap.
◆ store()
◆ toArrayRecursive()
| toArrayRecursive |
( |
|
$only_these_fields = null | ) |
|
returns data of table row as assoc array including related records with a 'has*' relationship recurses one level without param
$only_these_fields limits output for relationships in this way: $only_these_fields = array('field_1', 'field_2', 'relation1', 'relation2' => array('rel2_f1', 'rel2_f2', 'rel2_rel11' => array(
rel2_rel1_f1) ) ) Here all fields of relation1 will be returned.
- Parameters
-
| mixed | $only_these_fields | limit returned fields |
- Returns
- array
Reimplemented from SimpleORMap.
◆ toRawArray()
| toRawArray |
( |
|
$only_these_fields = null | ) |
|
Returns data of table row as assoc array with raw contents like they are in the database. Pass array of fieldnames or ws separated string to limit fields.
- Parameters
-
- Returns
- array
Reimplemented from SimpleORMap.
◆ triggerChdate()
The documentation for this class was generated from the following file: