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

Public Member Functions

 __construct ($id=null)
- Public Member Functions inherited from SimpleORMap
 setId ($id)
 getId ()
 getNewId ()
 getData ()
 toArray ()
 getValue ($field)
 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 findByCourseId ($cid)
static findByFolderId ($folder_id)
static deleteBySql ($where)
- 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

Detailed Description

StudipDocument.class.php

Author
André Noack <noack-quest>, Suchi & Berg GmbH info@.nosp@m.data.nosp@m.-ques.nosp@m.t.de public Small class derived from SimpleORMap to give access to the table dokumente
André Noack

Constructor & Destructor Documentation

__construct (   $id = null)

constructor

Parameters
stringid: primary key of table dokumente
Returns
null

Reimplemented from SimpleORMap.

Member Function Documentation

static deleteBySql (   $where)
static

deletes table rows which matches the given sql-where clause and returns the number of deleted rows.

Parameters
stringsql clause to use on the right side of WHERE to delete all rows matching this clause
Returns
int: number of rows deleted by the given sql-where-clause.
static find (   $id)
static

returns new instance of StudipDocument for given id or null if id does not exist

Parameters
idstring primary key of table 'dokumente' in db
Returns
object of type StudipDocument that matches id or null if nothing matches id

Here is the caller graph for this function:

static findByCourseId (   $cid)
static

returns array of StudipDocument-objects of given course id

Parameters
stringcid: course_id in the db (Seminar_id) with which all StudipDocuments should be filtered
Returns
array of all StudipDocument from the course with the given course_id

Here is the call graph for this function:

static findByFolderId (   $folder_id)
static

returns array of document-objects of given folder with id folder_id

Parameters
stringfolder_id: id of a folder whose documents we want to catch
Returns
array of StudipDocument objects of the given folder_id's folder or empty if that folder contains no documents.

Here is the call graph for this function:

static findBySql (   $where)
static

returns array of instances of StudipDocument filtered by given sql-where-clause

Parameters
string,:sql-where clause to use on the right side of WHERE to filter all StudipDocuments in an array
Returns
array of StudipDocument filtered by where (sql-qhere-clause) or empty array if no matches were found

Here is the caller graph for this function:


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