Static Protected Member Functions |
static | TableScheme ($db_table) |
Static Protected Attributes |
static | $schemes |
Constructor & Destructor Documentation
__construct |
( |
|
$id = null | ) |
|
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
- 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
returns sql clause with current table and pk
- Returns
- boolean|string
check if object is empty
- Returns
- number of columns with values
check if given column exists in table
- Parameters
-
- Returns
- boolean
check if object exists in database
- Returns
- boolean
offsetSet |
( |
|
$offset, |
|
|
|
$value |
|
) |
| |
ArrayAccess: unset the value at the given offset (not applicable)
setData |
( |
|
$data, |
|
|
|
$reset = false |
|
) |
| |
set multiple column values if second param is set, existing data in object will be discarded, else new data overrides old data
- Parameters
-
array | $data | assoc array |
boolean | $reset | |
- Returns
- number of columns changed
Reimplemented in StudipNews, StudipAdmissionGroup, SeminarCycleDate, and Semester.
set primary key for entry, combined keys must be passed as array
- Parameters
-
- Exceptions
-
- Returns
- boolean
set object to new state
- Parameters
-
- Returns
- boolean
setValue |
( |
|
$field, |
|
|
|
$value |
|
) |
| |
sets value of a column
- Parameters
-
string | $field | |
string | $value | |
- Returns
- string
Reimplemented in SeminarCycleDate.
static TableScheme |
( |
|
$db_table | ) |
|
|
staticprotected |
fetch table metadata from db ro from local cache
- Parameters
-
set chdate column to current timestamp
- Returns
- boolean
Field Documentation
The documentation for this class was generated from the following file: