Stud.IP  4.2 Revision
Fachbereich Class Reference
Inheritance diagram for Fachbereich:
Inheritance graph
Collaboration diagram for Fachbereich:
Collaboration graph

Public Member Functions

 __construct ($id=null)
 
 getRelatedModules ($only_public=true, $modul_ids=null)
 
 getTrailParentId ()
 
 getTrailParent ()
 
 getParents ($mode=null)
 
 getChildren ()
 
 hasChildren ()
 
 getDisplayName ($options=self::DISPLAY_DEFAULT)
 
 isFaculty ()
 
 getShortName ()
 
- Public Member Functions inherited from ModuleManagementModelTreeItem
 getTrailParentId ()
 
 getTrails ($types=null, $mode=null, $path=null, $in_recursion=false)
 
 isAssignable ()
 
 hasChildren ()
 
- Public Member Functions inherited from ModuleManagementModel
 verifyPermission ($user_id=null)
 
 store ()
 
 validate ()
 
 delete ()
 
 setNewId ()
 
 getDisplayName ($options=self::DISPLAY_DEFAULT)
 
 getAvailableTranslations ()
 
 getStatus ()
 
 hasPublicStatus ($filter=null)
 
 getResponsibleInstitutes ()
 
 getVariant ()
 
- Public Member Functions inherited from SimpleORMap
 __construct ($id=null)
 
 __clone ()
 
 getRelationOptions ($relation)
 
 getTableMetadata ()
 
 hasAutoIncrementColumn ()
 
 setId ($id)
 
 getId ()
 
 getNewId ()
 
 toArray ($only_these_fields=null)
 
 toRawArray ($only_these_fields=null)
 
 toArrayRecursive ($only_these_fields=null)
 
 getValue ($field)
 
 getRelationValue ($relation, $field)
 
 getDefaultValue ($field)
 
 setValue ($field, $value)
 
 __get ($field)
 
 __set ($field, $value)
 
 __isset ($field)
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 
 getIterator ()
 
 count ()
 
 isField ($field)
 
 isAdditionalField ($field)
 
 isAliasField ($field)
 
 isI18nField ($field)
 
 setData ($data, $reset=false)
 
 isNew ()
 
 isDeleted ()
 
 setNew ($is_new)
 
 getWhereQuery ()
 
 restore ()
 
 store ()
 
 triggerChdate ()
 
 delete ()
 
 isDirty ()
 
 isFieldDirty ($field)
 
 revertValue ($field)
 
 getPristineValue ($field)
 
 initRelation ($relation)
 
 resetRelation ($relation)
 
 cleanup ()
 
- Public Member Functions inherited from MvvTreeItem
 getId ()
 
 getDisplayName ()
 

Static Public Member Functions

static getClassDisplayName ($long=false)
 
static findByModule ($module_ids)
 
static getFilterStudiengaengeEinrichtung ($studiengang_ids=array())
 
static getFachbereiche ($sortby='name', $order='ASC', $filter=null)
 
- 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=array(), $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=array())
 
static create ($data)
 
static build ($data, $is_new=true)
 
static buildExisting ($data)
 
static import ($data)
 
static findBySQL ($sql, $params=array())
 
static findOneBySQL ($where, $params=array())
 
static findThru ($foreign_key_value, $options)
 
static findEachBySQL ($callable, $sql, $params=array())
 
static findMany ($pks=array(), $order='', $order_params=array())
 
static findEachMany ($callable, $pks=array(), $order='', $order_params=array())
 
static findAndMapBySQL ($callable, $where, $params=array())
 
static findAndMapMany ($callable, $pks=array(), $order='', $order_params=array())
 
static deleteBySQL ($where, $params=array())
 
static toObject ($id_or_object)
 
static __callStatic ($name, $arguments)
 

Static Protected Member Functions

static configure ($config=array())
 
- 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=array())
 
static createSortStatement ($sort, $order='ASC', $standard_field=null, $additional_fields=array())
 
- Static Protected Member Functions inherited from SimpleORMap
static configure ($config=array())
 
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 MvvTreeItem
const TRAIL_SHOW_INCOMPLETE = 1
 
- 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 = array()
 
 $content_db = array()
 
 $is_new = true
 
 $is_deleted = false
 
 $db_table = ''
 
 $db_fields = null
 
 $pk = null
 
 $default_values = array()
 
 $serialized_fields = array()
 
 $alias_fields = array()
 
 $i18n_fields = array()
 
 $additional_fields = array()
 
 $relations = array()
 
 $has_many = array()
 
 $has_one = array()
 
 $belongs_to = array()
 
 $has_and_belongs_to_many = array()
 
 $registered_callbacks = array()
 
 $known_slots = array()
 
 $notification_map = array()
 
 $additional_data = array()
 
 $getter_setter_map = array()
 
- Static Protected Attributes inherited from ModuleManagementModelTreeItem
static $object_filter = array()
 
- Static Protected Attributes inherited from ModuleManagementModel
static $filter_params = array()
 
static $perm_object = null
 
- Static Protected Attributes inherited from SimpleORMap
static $config = array()
 
static $reserved_slots = array('value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id')
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $id = null)

Member Function Documentation

◆ configure()

static configure (   $config = array())
staticprotected

◆ findByModule()

static findByModule (   $module_ids)
static

Retrieves all Fachbereiche which are implicitly related to the given modules. The relation is done through the hole MVV structure. If an object has a status field, the status has to be public. Otherwise the related Fachbereich will not be retrieved.

Parameters
array$module_idsAn array of module ids.
Here is the call graph for this function:

◆ getChildren()

getChildren ( )
See also
MvvTreeItem::getChildren()

Implements MvvTreeItem.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getClassDisplayName()

static getClassDisplayName (   $long = false)
static

◆ getDisplayName()

getDisplayName (   $options = self::DISPLAY_DEFAULT)
Here is the call graph for this function:

◆ getFachbereiche()

static getFachbereiche (   $sortby = 'name',
  $order = 'ASC',
  $filter = null 
)
static

Returns a collection of all Fachbereiche where a Studiengangteil is assigned to.

Parameters
string$sortbyThe result is sorted by these fields.
string$orderThe direction of sorting.
Returns
Object SimplORMapCollection of all Fachbereiche
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getFilterStudiengaengeEinrichtung()

static getFilterStudiengaengeEinrichtung (   $studiengang_ids = array())
static

◆ getParents()

getParents (   $mode = null)

◆ getRelatedModules()

getRelatedModules (   $only_public = true,
  $modul_ids = null 
)

Retrieves all modules this Fachbereich is related to. The relation is done through the hole MVV structure. Optional filtered by given module ids.

Parameters
boolean$only_publicIf true, all objects with a status field has to be public.
array$modul_idsAn array with module ids. Only these modules will be retrieved.
Returns
array An array with module ids.
Here is the call graph for this function:

◆ getShortName()

getShortName ( )

Gießener Spezialität: Kurzbezeichnungen für Fakultäten. Returns the short name of the faculty. If short name is not set returns the display name.

Returns
string The (short) name of the faculty.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTrailParent()

getTrailParent ( )
See also
MvvTreeItem::getTrailParent()

Implements MvvTreeItem.

Here is the call graph for this function:

◆ getTrailParentId()

getTrailParentId ( )
See also
MvvTreeItem::getTrailParentId()

Implements MvvTreeItem.

Here is the call graph for this function:

◆ hasChildren()

hasChildren ( )
See also
MvvTreeItem::hasChildren()

Implements MvvTreeItem.

Here is the call graph for this function:

◆ isFaculty()

isFaculty ( )

Returns whether this Fachbereich is a faculty.

Returns
boolean True, if the Fachbereich is a faculty.
Here is the call graph for this function:
Here is the caller graph for this function:

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