|
Stud.IP
4.1 Revision
|


Static Public Member Functions | |
| static | getClassDisplayName ($long=false) |
| static | findByObject (SimpleORMap $object) |
| static | findByObjectType ($object_type) |
| static | getAllEnriched ($sortby='chdate', $order='DESC', $row_count=null, $offset=null, $filter=null) |
| static | getCount ($filter=null) |
| static | findBySearchTerm ($term, $filter=null) |
| static | getAllRelations ($dokument_ids=array()) |
| static | updateDocuments ($object, $dokument_ids, $annotations=array()) |
| static | unassignAllDocuments ($object) |
| static | getQuickSearch ($exclude=array()) |
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 | getConfigStatus ($type, $class_name=null) |
| static | getPublicStatus ($class_name=null) |
| static | getVisibleStatus ($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 | findByObject (SimpleORMap $object) |
| 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 ModuleManagementModel | |
| static | checkSortFields ($sort, $standard_field=null, $additional_fields=array()) |
| static | createSortStatement ($sort, $order='ASC', $standard_field=null, $additional_fields=array()) |
| static | configure ($config=array()) |
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 = '' | |
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) | |
| getTableScheme () | |
| 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 | |
| $known_slots = array() | |
| $notification_map = array() | |
| $additional_data = array() | |
| $getter_setter_map = 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') |
| __construct | ( | $id = null | ) |
constructor, give primary key of record as param to fetch corresponding record from db if available, if not preset primary key with given value. Give null to create new record
| mixed | $id | primary key of table |
Reimplemented from SimpleORMap.
|
staticprotected |
set configuration data from subclass
| array | $config | configuration data |
Reimplemented from SimpleORMap.
|
static |
Finds all documents related to the given object.
| string | $object | A MVV object |
Reimplemented from SimpleORMap.
|
static |
Finds all documents related to objects of given type.
| string | $object_type | The type of the objects. |
|
static |
Find Documents by given search term. Used as search function in list view.
| type | $term | The search term. |
| type | $filter | Optional filter parameters. |
Reimplemented from ModuleManagementModel.

|
static |
Returns all or a specified (by row count and offset) number of documents 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 relations of the documents specified by the given ids. The returned array is ordered by the types of the referenced objects.
| array | $dokument_ids | Ids of the documents. |

|
static |
Reimplemented from ModuleManagementModel.
|
static |
Returns the number of Documents comply with the given filter parameters.
| array | $filter | Array of filter parameters |
Reimplemented from ModuleManagementModel.

| getCountRelations | ( | ) |
Returns the number of assignments to other MVV objects.

|
static |
Returns a ready to use quick search widget.
| array | $exclude | Ids of documents excluded from search. |


| getRelationByObject | ( | $object_id, | |
| $object_type | |||
| ) |
Returns all assignemnt to objects for this document.
| string | $object_id | The id of the object. |
| string | $object_type | The type (class name by get_class()) of the object. |

| getRelations | ( | ) |
Returns all relations of this document grouped by object types.

|
static |
Removes all assignments of this Dokument.

|
static |
Updates the assignment of documents to the given object.
| Object | $object | Assigns the documents to this object. |
| array | $dokument_ids | Array of document object ids. |
| array | $annotations | Array of annotations to the assignment. |

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