Static Protected Member Functions |
| static | TableScheme ($db_table) |
Static Protected Attributes |
| static | $schemes |
Constructor & Destructor Documentation
| __construct |
( |
|
$id = null | ) |
|
- Parameters
-
| string | $id | primary key of table |
Reimplemented in StudipNews, WebserviceAccessRule, Semester, Institute, LockRule, SemesterHoliday, User, StudipDocument, RoomRequest, StudipComments, StudipScmEntry, SeminarCycleDate, StudipAdmissionGroup, UserConfigEntry, AuthUserMd5, ConfigEntry, and UserInfo.
Member Function Documentation
magic method for dynamic properties
magic method for dynamic properties
magic method for dynamic properties
| static deleteBySQL |
( |
|
$class, |
|
|
|
$where |
|
) |
| |
|
static |
deletes table rows specified by given class and sql clause should be overridden in subclass to omit $class param
- Parameters
-
| string | $class | |
| string | sql clause to use on the right side of WHERE |
- Returns
- number
| static expireTableScheme |
( |
| ) |
|
|
static |
force reload of cached table metadata
| static find |
( |
|
$class, |
|
|
|
$id |
|
) |
| |
|
static |
returns new instance for given class and key when found in db, else null should be overridden in subclass to omit $class param
- Parameters
-
| string | $class | |
| string | primary key |
- Returns
- null|NULL
| static findBySQL |
( |
|
$class, |
|
|
|
$where |
|
) |
| |
|
static |
returns array of instances of given class filtered by given sql should be overridden in subclass to omit $class param
- Parameters
-
| string | $class | |
| string | sql clause to use on the right side of WHERE |
- Returns
- array
returns data of table row as assoc array or false if no data available
- Deprecated:
- Returns
- array|boolean
returns primary key, false if none is set
- Returns
- boolean|string|array
create new unique pk as md5 hash if pk consists of multiple columns, false is returned
- Returns
- boolean|string
Reimplemented in WebserviceAccessRule, and User.
returns sql clause with current table and pk
- Returns
- boolean|string
Reimplemented in User.
check if object is empty
- Returns
- number of columns with values
init internal content arrays with nulls
checks if at least one field was modified since last restore
- Returns
- boolean
check if given column exists in table
- Parameters
-
- Returns
- boolean
checks if given field was modified since last restore
- Parameters
-
- Returns
- boolean
check if object exists in database
- Returns
- boolean
| offsetSet |
( |
|
$offset, |
|
|
|
$value |
|
) |
| |
ArrayAccess: unset the value at the given offset (not applicable)
reverts value of given field to last restored value
- Parameters
-
- Returns
- mixed the restored value
| setData |
( |
|
$data, |
|
|
|
$reset = false |
|
) |
| |
set primary key for entry, combined keys must be passed as array
- Parameters
-
- Exceptions
-
- Returns
- boolean
Reimplemented in User.
set object to new state
- Parameters
-
- Returns
- boolean
| setValue |
( |
|
$field, |
|
|
|
$value |
|
) |
| |
| static TableScheme |
( |
|
$db_table | ) |
|
|
staticprotected |
fetch table metadata from db ro from local cache
- Parameters
-
| static toObject |
( |
|
$class, |
|
|
|
$id_or_object |
|
) |
| |
|
static |
returns object of given class for given id or null the param could be a string, an assoc array containing primary key field or an already matching object. In all these cases an object is returned should be overridden in subclass to omit $class param
- Parameters
-
| string | $class | |
| mixed | id as string, object or assoc array |
- Returns
- NULL|object
set chdate column to current timestamp
- Returns
- boolean
Reimplemented in User.
Field Documentation
| $default_values = array() |
|
protected |
The documentation for this class was generated from the following file: