Detailed Description
this class represents one record of the lock_rules table the column attributes is converted to an ArrayObject and vice-versa, to allow array-like access
e.g.
Constructor & Destructor Documentation
| __construct |
( |
|
$id = null | ) |
|
Constructor
- Parameters
-
| string | $id | primary key of table lock_rules |
Reimplemented from SimpleORMap.
Member Function Documentation
delete entry from database the object is cleared and turned to new state
- Returns
- boolean
Reimplemented from SimpleORMap.
| static deleteBySql |
( |
|
$where | ) |
|
|
static |
| static findAllByType |
( |
|
$type | ) |
|
|
static |
returns all exisiting lockrules for a given entity type
- Parameters
-
| string | $type | entity type, one of [sem,inst,user] |
- Returns
- array of LockRule objects
| static findByInstitute |
( |
|
$institute_id | ) |
|
|
static |
returns the lockrule for an institute
- Parameters
-
| string | $institute_id | id of an institute |
- Returns
- LockRule
| static findBySeminar |
( |
|
$seminar_id | ) |
|
|
static |
returns the lockrule for a course
- Parameters
-
| string | $seminar_id | id of a course |
- Returns
- LockRule
| static findBySql |
( |
|
$where | ) |
|
|
static |
| static findByUser |
( |
|
$user_id | ) |
|
|
static |
returns the lockrule for a user
- Parameters
-
| string | $user_id | id of a user |
- Returns
- LockRule
returns the number of uses for this lockrule
- Returns
- integer
| setData |
( |
|
$data, |
|
|
|
$reset |
|
) |
| |
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 from SimpleORMap.
store entry in database if data is actually changed triggerChdate() is called
- Returns
- number|boolean
Reimplemented from SimpleORMap.
The documentation for this class was generated from the following file: