| 
    Stud.IP
    trunk Revision
    
   | 
  


Static Public Member Functions | |
| static | getAllEnriched ($sortby='name', $order='ASC', $row_count=null, $offset=null, $filter=null) | 
| static | getCount ($filter=null) | 
| static | getAllEnrichedByStgteile ($sortby='name', $order='ASC', $row_count=null, $offset=null, $filter=null) | 
| static | findByStudiengangTeil ($stgteil_id) | 
| static | findByStudiengang ($studiengang_id) | 
| static | findByAbschluss ($abschluss_id) | 
| static | findByFachbereich ($fachbereich_id, $has_stgteile=false) | 
| static | findPublicByModule ($modul_ids) | 
| static | findBySearchTermStgteile ($term) | 
| static | findByIdsStgteile ($stgteil_ids, $sortby='name', $order='ASC', $row_count=null, $offset=null, $filter=null) | 
| static | getAssignedFachbereiche ($order='ASC') | 
| static | getAllAssignedInstitutes ($studiengang_ids=[]) | 
| static | findUsedFachbereiche ($kategorie_id=null, $abschluss_id=null) | 
| static | getAllFachbereiche ($sortby='name', $order='ASC', $filter=null) | 
| static | toArrayByFachbereichStgteil ($fachbereich_id, $stgteil_id) | 
| static | getClassDisplayName ($long=false) | 
| static | exportUserData (StoredUserData $storage) | 
  Static Public Member Functions inherited from ModuleManagementModelTreeItem | |
| static | getPathes ($trails, $delimiter=' · ', $display_options=self::DISPLAY_DEFAULT) | 
| static | filterTrails ($trails, $filter_objects) | 
| static | setObjectFilter ($class_name, $filter_func) | 
  Static Public Member Functions inherited from ModuleManagementModel | |
| static | findBySearchTerm ($search_term, $filter=null) | 
| static | getAll () | 
| static | get ($id=null) | 
| static | getEnriched ($id) | 
| static | getEnrichedByQuery ($query=null, $params=[], $row_count=null, $offset=null) | 
| static | getClassDisplayName ($long=false) | 
| static | getFilterSql ($filter, $where=false, $or_sql=null) | 
| static | getContentArray (SimpleORMap $sorm, $to_utf8=true) | 
| static | getCount ($filter=null) | 
| static | getCountBySql ($sql, $filter=null) | 
| static | setLanguage ($language) | 
| static | setContentLanguage ($language) | 
| static | getLanguage () | 
| static | getLocaleOrdinalNumberSuffix ($num) | 
| static | getPublicStatus ($class_name=null) | 
  Static Public Member Functions inherited from SimpleORMap | |
| static | tableScheme ($db_table) | 
| static | expireTableScheme () | 
| static | find ($id) | 
| static | exists ($id) | 
| static | countBySql ($sql=1, $params=[]) | 
| static | create ($data) | 
| static | build ($data, $is_new=true) | 
| static | buildExisting ($data) | 
| static | import ($data) | 
| static | findBySQL ($sql, $params=[]) | 
| static | findOneBySQL ($where, $params=[]) | 
| static | findThru ($foreign_key_value, $options) | 
| static | findEachBySQL ($callable, $sql, $params=[]) | 
| static | findMany ($pks=[], $order='', $order_params=[]) | 
| static | findEachMany ($callable, $pks=[], $order='', $order_params=[]) | 
| static | findAndMapBySQL ($callable, $where, $params=[]) | 
| static | findAndMapMany ($callable, $pks=[], $order='', $order_params=[]) | 
| static | deleteBySQL ($where, $params=[]) | 
| static | toObject ($id_or_object) | 
| static | __callStatic ($name, $arguments) | 
Static Protected Member Functions | |
| static | configure ($config=[]) | 
  Static Protected Member Functions inherited from ModuleManagementModelTreeItem | |
| static | sortTrails ($trail_a, $trail_b) | 
  Static Protected Member Functions inherited from ModuleManagementModel | |
| static | checkSortFields ($sort, $standard_field=null, $additional_fields=[]) | 
| static | createSortStatement ($sort, $order='ASC', $standard_field=null, $additional_fields=[]) | 
  Static Protected Member Functions inherited from SimpleORMap | |
| static | configure ($config=[]) | 
| static | config ($key) | 
Additional Inherited Members | |
  Data Fields inherited from ModuleManagementModel | |
| const | DISPLAY_DEFAULT = 1 | 
| const | DISPLAY_SEMESTER = 2 | 
| const | DISPLAY_CODE = 4 | 
| const | DISPLAY_FACULTY = 8 | 
| const | DISPLAY_FACH = 16 | 
| const | DISPLAY_STGTEIL = 32 | 
| const | DISPLAY_ABSCHLUSS = 64 | 
| const | DISPLAY_KATEGORIE = 128 | 
| $object_real_name = '' | |
  Data Fields inherited from SimpleORMap | |
| const | ID_SEPARATOR = '_' | 
  Static Public Attributes inherited from ModuleManagementModelTreeItem | |
| static | $TRAIL_DEFAULT | 
  Static Public Attributes inherited from SimpleORMap | |
| static | $schemes = null | 
  Protected Member Functions inherited from ModuleManagementModel | |
| logChanges ($action=null) | |
  Protected Member Functions inherited from SimpleORMap | |
| _getId ($field) | |
| _setId ($field, $value) | |
| _getAdditionalValueFromRelation ($field) | |
| _setAdditionalValueFromRelation ($field, $value) | |
| _getAdditionalValue ($field) | |
| _setAdditionalValue ($field, $value) | |
| parseRelationOptions ($type, $name, $options) | |
| storeRelations ($only_these=null) | |
| deleteRelations () | |
| initializeContent () | |
| applyCallbacks ($type) | |
| registerCallback ($types, $cb) | |
| unregisterCallback ($types, $cb) | |
| cbAutoIncrementColumn ($type) | |
| cbAutoKeyCreation () | |
| cbNotificationMapper ($cb_type) | |
| cbAfterInitialize ($cb_type) | |
| setSerializedValue ($field, $value) | |
| setI18nValue ($field, $value) | |
| cbI18N ($type) | |
  Protected Attributes inherited from ModuleManagementModel | |
| $is_dirty = false | |
  Protected Attributes inherited from SimpleORMap | |
| $content = [] | |
| $content_db = [] | |
| $is_new = true | |
| $is_deleted = false | |
| $db_table = '' | |
| $db_fields = null | |
| $pk = null | |
| $default_values = [] | |
| $serialized_fields = [] | |
| $alias_fields = [] | |
| $i18n_fields = [] | |
| $additional_fields = [] | |
| $relations = [] | |
| $has_many = [] | |
| $has_one = [] | |
| $belongs_to = [] | |
| $has_and_belongs_to_many = [] | |
| $registered_callbacks = [] | |
| $known_slots = [] | |
| $notification_map = [] | |
| $additional_data = [] | |
| $getter_setter_map = [] | |
  Static Protected Attributes inherited from ModuleManagementModelTreeItem | |
| static | $object_filter = [] | 
  Static Protected Attributes inherited from ModuleManagementModel | |
| static | $filter_params = [] | 
| static | $perm_object = null | 
  Static Protected Attributes inherited from SimpleORMap | |
| static | $config = [] | 
| static | $reserved_slots = ['value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id'] | 
| __construct | ( | $id = null | ) | 
| string | $id | primary key of table | 
Reimplemented from SimpleORMap.
| assignFachbereiche | ( | $fachbereiche | ) | 
Assignes fachbereiche to this fach. Returns true only if all given fachbereich ids are valid.
| string[]|object[] | Array of $fachbereich_ids or fachbereich objects. | 

      
  | 
  staticprotected | 
set configuration data from subclass
| array | $config | configuration data | 
Reimplemented from SimpleORMap.
| countUser | ( | ) | 
The number of users this Fach was selected by.

| countUserByDegree | ( | $degree_id | ) | 
      
  | 
  static | 
Export available data of a given user into a storage object (an instance of the StoredUserData class) for that user.
| StoredUserData | $storage | object to store data into | 

      
  | 
  static | 
      
  | 
  static | 
Retrieves all Faecher the giveb Fachbereich is assigned to. If the 2nd parameter is true, only Faecher assigned to Studiengangteile will be returned.
| string | $abschluss_id | The id of the Abschluss. | 

      
  | 
  static | 
Returns all Faecher which are assigned to the given Studiengangteile. Sorted and filtered by optional parameters.
| array | Array of Studiengangteil ids. | |
| string | $sortby | Column names to sort by. | 
| strind | $order | Direction of sorting ASC|DESC. | 
| int | $row_count | Number of rows to return. | 
| int | $offset | Offset of first row to return. | 
| array | $filter | Array of filter parameters (name of column as key, | 


      
  | 
  static | 
      
  | 
  static | 
Retrieves all Faecher assigned to the given Studiengang.
| string | $studiengang_id | The id of the Studiengang. | 
      
  | 
  static | 
      
  | 
  static | 
Retrieves all Faecher implicitly assigned by public Studiengangteile to the given modules.
| array | $modul_ids | Ids of modules. | 

      
  | 
  static | 
Finds all Fachbereiche assigned to Faecher. The result can be filtered by a Abschluss-Kategorie or an Abschluss.
| string | $kategorie_id | The id of the Abschluss-Kategorie. | 
| string | $abschluss_id | The id of the Abschluss. | 

| getAbschluesse | ( | ) | 
Returns all Abschluesse this Fach is implicitly assigned to.

      
  | 
  static | 
Returns an associative array of institutes (name and id) assigned to studiengaenge. Can be filtered by ids of studiengaenge.
| array | $studiengang_ids | Limits the result to these studiengaenge. | 

      
  | 
  static | 
Returns all or a specified (by row count and offset) number of Abschluesse sorted and filtered by given parameters and enriched with some additional fields. This function is mainly used in the list view.
| string | $sortby | Field name to order by. | 
| string | $order | ASC or DESC direction of order. | 
| array | $filter | Key-value pairs of filed names and values to filter the result set. | 
| int | $row_count | The max number of objects to return. | 
| int | $offset | The first object to return in a result set. | 


      
  | 
  static | 
Returns all Faecher which are assigned to Studiengangteile. Sorted and filtered by optional parameters.
| string | $sortby | Column names to sort by. | 
| strind | $order | Direction of sorting ASC|DESC. | 
| int | $row_count | Number of rows to return. | 
| int | $offset | Offset of first row to return. | 
| array | $filter | Array of filter parameters (name of column as key, | 


      
  | 
  static | 
Returns names ans ids of all Fachbereiche (institutes) with number of related Faecher. Sorted and filtered by optional parameters.
| string | $sortby | Column names to sort by. | 
| strind | $order | Direction of sorting ASC|DESC. | 
| array | $filter | Array of filter parameters (name of column as key, see ModulManagementModel::getFilterSql()). | 


      
  | 
  static | 
Returns an associative array of all Fachbereiche assigned to Faecher.
| string | $order | Direction of sorting ASC|DESC. | 

| getChildren | ( | ) | 


      
  | 
  static | 
Reimplemented from ModuleManagementModel.
      
  | 
  static | 
Returns the number of Fächer optional filtered by $filter.
| array | $filter | Key-value pairs of filed names and values to filter the result set. | 
Reimplemented from ModuleManagementModel.


| getFachbereiche | ( | ) | 
Returns all Fachbereiche assigned to this Fach.
| getParents | ( | $mode = null | ) | 
| getRelatedModules | ( | $only_public = true,  | 
        |
$modul_ids = null  | 
        |||
| ) | 
Returns ids of all modules which are related to this Fach. The relation is done by assigning a Fach to a Studiengangteil and the modules to a version of that Studiengangteil.
| boolean | $only_public | If true only modules with a public state will be returned. | 

| getResponsibleInstitutes | ( | ) | 
Returns all responsible institutes.
Reimplemented from ModuleManagementModel.
| getTrailParent | ( | ) | 

| getTrailParentId | ( | ) | 
Reimplemented from ModuleManagementModelTreeItem.

| hasChildren | ( | ) | 
Reimplemented from ModuleManagementModelTreeItem.

      
  | 
  static | 
Returns an array with all faecher which are used by given Fachbereich and the given Studiengangteil.
| string | $fachbereich_id | The id of a Fachbereich (institute) | 
| string | $stgteil_id | The id oa a Studiengangteil. | 


| validate | ( | ) | 
Validates the values before store. Throws an InvalidValuesException normally catched by form validation.
| InvalidValuesException | 
Reimplemented from ModuleManagementModel.
