|
Stud.IP
2.4 Revision 48548
|


Public Member Functions | |
| __construct ($data) | |
| countSeminars () | |
| store () | |
| delete () | |
| set ($offset, $value) | |
| getClass () | |
| offsetSet ($offset, $value) | |
| offsetGet ($offset) | |
| offsetExists ($offset) | |
| offsetUnset ($offset) | |
Static Public Member Functions | |
| static | getTypes () |
| static | refreshTypes () |
Protected Attributes | |
| $data = array() | |
Static Protected Attributes | |
| static | $sem_types = null |
Class to define and manage attributes of seminar types. Usually all sem-types are stored in a global variable $SEM_TYPE which is an array of SemType objects.
SemType::getTypes() gets you all seminar types in an array.
This class only represents the name of the type and gives a relation to a sem_class.
| __construct | ( | $data | ) |
Constructor can be set with integer of sem_class_id or an array of the old $SEM_CLASS style.
| integer | array | $data |

| countSeminars | ( | ) |
Returns the number of seminars of this sem_type in Stud.IP


| delete | ( | ) |
Deletes the sem_type-object. Will only delete, if there are no seminars in this sem_type. Remember to refresh the global $SEM_TYPE array.

| getClass | ( | ) |

|
static |
| offsetExists | ( | $offset | ) |
| offsetGet | ( | $offset | ) |
Compatibility function with old $SEM_TYPE variable for plugins. Maps the new array-structure to the old boolean values.
| integer | $offset,: | name of attribute |

| offsetSet | ( | $offset, | |
| $value | |||
| ) |
deprecated, does nothing, should not be used
| string | $offset | |
| mixed | $value |
| offsetUnset | ( | $offset | ) |
deprecated, does nothing, should not be used
| string | $offset |
|
static |


| set | ( | $offset, | |
| $value | |||
| ) |
Sets an attribute of sem_type->data
| string | $offset | |
| mixed | $value |
| store | ( | ) |
stores all data in the database

|
protected |
|
staticprotected |