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

Public Member Functions

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

Static Public Member Functions

static find ($id)
static findBySql ($where)
static findBySeminar ($seminar_id)
static findByTermin ($termin_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

Constructor & Destructor Documentation

__construct (   $id = null)

constructor

Parameters
string$idprimary key of table seminar_cycle_dates
Returns
null

Reimplemented from SimpleORMap.

Member Function Documentation

static deleteBySql (   $where)
static

deletes SeminarCycleDates specified by given sql where-clause

Parameters
stringwhere clause to use on the right side of WHERE to delete all SeminarCycleDate matching that clause
Returns
number of deleted SeminarCycleDates matching the given where-clause
static find (   $id)
static

returns new instance of type SeminarCycleDate with metadate_id = id when found in db, or null if no SeminarCycleDate matches that id.

Parameters
stringid: primary key of table seminar_cycle_dates
Returns
object of type SeminarCycleDate for the given id of a SeminarCycleDate or null if no SeminarCycleDate matches
static findBySeminar (   $seminar_id)
static

returns array of instances of SeminarCycleDates of the given seminar_id

Parameters
stringseminar_id: selected seminar to search for SeminarCycleDates
Returns
array of instances of SeminarCycleDates of the given seminar_id or an empty array

Here is the call graph for this function:

Here is the caller graph for this function:

static findBySql (   $where)
static

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

Parameters
stringwhere: clause to use on the right side of WHERE
Returns
array of instances of SeminarCycleDates filtered by given sql where-clause or an empty array if nothing matches the clause

Here is the caller graph for this function:

static findByTermin (   $termin_id)
static

return instance of SeminarCycleDates of given termin_id

Parameters
stringtermin_id: selected seminar to search for SeminarCycleDates
Returns
array

Here is the call graph for this function:

getValue (   $field)

returns value of a column or for field start_hour, end_hour, start_minute or end_minute the correct timestamp

Parameters
stringfield: name of the field or start_hour, end_hour, start_minute or end_minute
Returns
string for the attribute, or int (timestamp) if field is start_hour, end_hour, start_minute or end_minute or null, if field does not exists

Reimplemented from SimpleORMap.

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$dataassoc array
boolean$reset
Returns
number of columns changed

Reimplemented from SimpleORMap.

setValue (   $field,
  $value 
)

sets value of a column|start_hour|start_minute|end_hour|end_minute|sws

Parameters
string$field
string$value
Returns
string

Reimplemented from SimpleORMap.

toArray ( )

returns data of table row as assoc array inclusivly start_hour, end_hour etc.

Returns
associative array in the scheme attribute => value

Reimplemented from SimpleORMap.

toString (   $format = 'short')

returns a string for a date like '3. 9:00s - 10:45' (short and long) or '3. 9:00s - 10:45, , ab der 7. Semesterwoche, (Vorlesung)' with the week of the semester

Parameters
formatstring: "short"|"long"|"full"
Returns
formatted string

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