Stud.IP
6.0
|
Static Public Member Functions | |
static | findByObject (SimpleORMap $object) |
static | findByRange_id ($range_id) |
static | getAllEnriched ($sortby='chdate', $order='DESC', $row_count=null, $offset=null, $filter=null) |
static | getAllRelations ($dokument_ids=[]) |
static | findBySearchTerm ($term, $filter=null) |
static | getCount ($filter=null) |
static | getQuickSearch ($exclude=array()) |
static | getMaxSortingPos ($range_id) |
static | getAllAssignedInstitutes ($sortby='name', $order='ASC', $filter=null, $row_count=null, $offset=null) |
static | getIdsFiltered ($filter, $file_ids=false) |
![]() | |
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 | setContentLanguage ($language) |
static | getLanguage () |
static | getLocaleOrdinalNumberSuffix ($num) |
static | getPublicStatus ($class_name=null) |
static | findCached ($id, $index=null) |
static | clearCache ($index=null) |
![]() | |
static | tableScheme ($db_table) |
static | expireTableScheme () |
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 (string $name, array $arguments) |
static | setMariadbDefaultColumnFix (bool $state=true) |
Protected Member Functions | |
logChanges ($action=null) | |
![]() | |
logChanges ($action=null) | |
![]() | |
_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) | |
cbNotificationMapper ($cb_type) | |
cbAfterInitialize ($cb_type) | |
setSerializedValue ($field, $value) | |
setI18nValue ($field, $value) | |
Static Protected Member Functions | |
static | configure ($config=[]) |
![]() | |
static | configure ($config=[]) |
static | checkSortFields ($sort, $standard_field=null, $additional_fields=[]) |
static | createSortStatement ($sort, $order='ASC', $standard_field=null, $additional_fields=[]) |
static | fromCache ($index, $id, Callable $finder) |
static | formatDisplayName (string $template, array $placeholders, array $replacements) |
![]() | |
static | db_table () |
static | db_fields () |
static | pk () |
static | default_values () |
static | serialized_fields () |
static | alias_fields () |
static | i18n_fields () |
static | additional_fields () |
static | has_many () |
static | has_one () |
static | belongs_to () |
static | has_and_belongs_to_many () |
static | registered_callbacks () |
static | known_slots () |
static | notification_map () |
static | getter_setter_map () |
static | configure ($config=[]) |
static | config ($key) |
static | registerCallback ($types, $cb) |
static | unregisterCallback ($types, $cb) |
Additional Inherited Members | |
![]() | |
$object_real_name = '' | |
![]() | |
const | ID_SEPARATOR = '_' |
![]() | |
static | $schemes = null |
![]() | |
$is_dirty = false | |
![]() | |
$content = [] | |
$content_db = [] | |
$is_new = true | |
$is_deleted = false | |
$relations = [] | |
$additional_data = [] | |
string | $i18n_class = I18NString::class |
![]() | |
static | $filter_params = [] |
static | $perm_object = null |
static | $object_cache = [] |
![]() | |
static | $config = [] |
static | $reserved_slots = ['value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id'] |
static | $performs_batch_operation = false |
static | $mariadb_column_default_fix = false |
addToRange | ( | $range_id, | |
$range_type | |||
) |
Adds this mvvfile to given range.
string | $range_id | Id of the mvv object. |
|
staticprotected |
array | $config |
countRelations | ( | ) |
Returns the number of assignments to other MVV objects.
|
static |
Finds all documents related to the given object.
string | $object | A MVV object |
|
static |
|
static |
Find Documents by given search term. Used as search function in list view.
type | $term | The search term. |
type | $filter | Optional filter parameters. |
|
static |
Returns all institutes assigned to files. Sorted and filtered by optional parameters.
string | $sortby | DB field to sort by. |
string | $order | ASC or DESC |
array | $filter | Array of filter. |
|
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 |
Returns the number of Documents comply with the given filter parameters.
array | $filter | Array of filter parameters |
getDisplayName | ( | ) |
Returns the name of the object to display in a specific context.
getFilenames | ( | ) |
Returns the filenames of related filerefs.
getFiletypes | ( | ) |
Returns the filetypes of related filerefs.
|
static |
Returns range_ids (ids of Studiengang/Abschluss-Kategorie) of assigned files.
array $ids The range_ids of assigned files after filtration.
array | $filter | An array with keys (table_name.column_name) and values (skalar or array) used in where clause. |
boolean | $file_ids | Return the file ids instead of the range ids. |
|
static |
Returns the highest current sorting position.
sting | $range_id | Id of the mvv object. |
getPositionInRange | ( | $range_id | ) |
Returns the position in given range.
|
static |
Returns a ready to use quick search widget.
array | $exclude | Ids of documents excluded from search. |
getRangesArray | ( | ) |
Returns the ids of related ranges.
getRangeType | ( | ) |
Returns the name of the rangetype this mvvfile is bound to.
getRelations | ( | ) |
Returns all relations of this document grouped by object types.
|
protected |
removeFromRange | ( | $range_id | ) |
Removes this mvvfile from given range.
sting | $range_id | Id of the mvv object. |
validate | ( | ) |