Static Protected Member Functions |
| static | configure ($config=array()) |
Additional Inherited Members |
| | _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 |
| | $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() |
Member Function Documentation
| static configure |
( |
|
$config = array() | ) |
|
|
staticprotected |
- Parameters
-
| string | $id | primary key of table |
Reimplemented from AuthUserMd5.
| 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 |
| static findByUsername |
( |
|
$username | ) |
|
|
static |
return user object for given username
- Parameters
-
| string | $username | a username |
- Returns
- User
Returns the currently authenticated user.
- Returns
- mixed User
| static findDozentenByTermin_id |
( |
|
$termin_id | ) |
|
|
static |
| 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 |
( |
|
$field | ) |
|
returns unmodified value of given field
- Parameters
-
- Exceptions
-
- Returns
- mixed
Reimplemented from SimpleORMap.
checks if at least one field was modified since last restore
- Returns
- boolean
Reimplemented from SimpleORMap.
checks if given field was modified since last restore
- Parameters
-
- Returns
- boolean
Reimplemented from SimpleORMap.
reverts value of given field to last restored value
- Parameters
-
- Returns
- mixed the restored value
Reimplemented from SimpleORMap.
| 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.
Field Documentation
| $that_class = "Session_sql" |
The documentation for this class was generated from the following files: