Constructor & Destructor Documentation
__construct |
( |
|
$id = null | ) |
|
- Parameters
-
string | $id | primary key of table |
Reimplemented from SimpleORMap.
Member Function Documentation
static deleteBySql |
( |
|
$where | ) |
|
|
static |
deletes table rows in table Institute specified by given sql clause
- Parameters
-
string | sql clause to use on the right side of WHERE |
- Returns
- integer
returns new instance for given key when found in db, else null
- Parameters
-
- Returns
- NULL|Institute
static findByFaculty |
( |
|
$fakultaets_id | ) |
|
|
static |
returns array of instances of Institutes belonging to given faculty
- Parameters
-
- Returns
- array
static findBySql |
( |
|
$where | ) |
|
|
static |
returns array of instances of Institutes filtered by given sql
- Parameters
-
string | sql clause to use on the right side of WHERE |
- Returns
- array
returns an array of all institutes ordered by faculties and name
- Returns
- array
static getMyInstitutes |
( |
|
$user_id = NULL | ) |
|
|
static |
returns an array of all institutes to which the given user belongs, ordered by faculties and name. The user role for each institute is included
- Parameters
-
string | $user_id | if omitted, the current user is used |
- Returns
- array
returns value of a column
- Parameters
-
- Returns
- null|string
Reimplemented from SimpleORMap.
The documentation for this class was generated from the following file: