Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
Institute Class Reference
Inheritance diagram for Institute:
Inheritance graph
Collaboration diagram for Institute:
Collaboration graph

Public Member Functions

 __construct ($id=null)
 getValue ($field)
- Public Member Functions inherited from SimpleORMap
 setId ($id)
 getId ()
 getNewId ()
 getData ()
 toArray ()
 setValue ($field, $value)
 __get ($field)
 __set ($field, $value)
 __isset ($field)
 offsetExists ($offset)
 offsetGet ($offset)
 offsetSet ($offset, $value)
 offsetUnset ($offset)
 getIterator ()
 count ()
 isField ($field)
 setData ($data, $reset=false)
 haveData ()
 isNew ()
 setNew ($is_new)
 getWhereQuery ()
 restore ()
 store ()
 triggerChdate ()
 delete ()

Static Public Member Functions

static find ($id)
static findBySql ($where)
static findByFaculty ($fakultaets_id)
static deleteBySql ($where)
static getInstitutes ()
static getMyInstitutes ($user_id=NULL)
- Static Public Member Functions inherited from SimpleORMap
static expireTableScheme ()
static find ($class, $id)
static findBySQL ($class, $where)
static deleteBySQL ($class, $where)

Additional Inherited Members

- Protected Member Functions inherited from SimpleORMap
 getTableScheme ()
- Static Protected Member Functions inherited from SimpleORMap
static TableScheme ($db_table)
- Protected Attributes inherited from SimpleORMap
 $content = array()
 $is_new = true
 $db_table = ''
 $db_fields = null
 $pk = null
- Static Protected Attributes inherited from SimpleORMap
static $schemes

Constructor & Destructor Documentation

__construct (   $id = null)
Parameters
string$idprimary 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
stringsql clause to use on the right side of WHERE
Returns
integer
static find (   $id)
static

returns new instance for given key when found in db, else null

Parameters
string$id
Returns
NULL|Institute

Here is the caller graph for this function:

static findByFaculty (   $fakultaets_id)
static

returns array of instances of Institutes belonging to given faculty

Parameters
string$fakultaets_id
Returns
array

Here is the call graph for this function:

static findBySql (   $where)
static

returns array of instances of Institutes filtered by given sql

Parameters
stringsql clause to use on the right side of WHERE
Returns
array

Here is the caller graph for this function:

static getInstitutes ( )
static

returns an array of all institutes ordered by faculties and name

Returns
array

Here is the call graph for this function:

Here is the caller graph for this function:

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_idif omitted, the current user is used
Returns
array

Here is the call graph for this function:

Here is the caller graph for this function:

getValue (   $field)

returns value of a column

Parameters
string$field
Returns
null|string

Reimplemented from SimpleORMap.


The documentation for this class was generated from the following file: