Stud.IP
6.1
|
Public Member Functions | |
getTrailParentId () | |
getTrails ($types=null, $mode=null, $path=null, $in_recursion=false) | |
isAssignable () | |
hasChildren () | |
![]() | |
verifyPermission ($user_id=null) | |
store () | |
validate () | |
delete () | |
setNewId () | |
getDisplayName () | |
getAvailableTranslations (string $original_language) | |
getStatus () | |
hasPublicStatus ($filter=null) | |
getResponsibleInstitutes () | |
getVariant () | |
![]() | |
__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) | |
isRelation ($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 () | |
![]() | |
__construct ($id=null) | |
![]() | |
getTrailParent () | |
getChildren () | |
getId () | |
getDisplayName () | |
getParents ($mode) | |
Static Public Member Functions | |
static | getPathes ($trails, $delimiter=' · ') |
static | filterTrails ($trails, $filter_objects) |
static | setObjectFilter ($class_name, $filter_func) |
![]() | |
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) |
Static Public Attributes | |
static | $TRAIL_DEFAULT |
![]() | |
static | $schemes = null |
Static Protected Member Functions | |
static | sortTrails ($trail_a, $trail_b) |
![]() | |
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) |
Static Protected Attributes | |
static | $object_filter = [] |
![]() | |
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 |
|
static |
Filters trails by given object types.
array | $trails | An array of trails. |
array | $filter_objects | An array of object class names. |
|
static |
Formats the trails to pathes. The path consists of alle names of the objects of a trail glued together with the given delimiter.
array | $trails | All trails as array. |
string | $delimiter | A string used as the "glue". |
int | $display_options | Display options set by constants defined in class ModuleManagementModel. |
getTrailParentId | ( | ) |
Implements MvvTreeItem.
getTrails | ( | $types = null , |
|
$mode = null , |
|||
$path = null , |
|||
$in_recursion = false |
|||
) |
Returns all trails (pathes through the mvv object structure) for one object. The trails are the relations of this object along the given types (classes of MvvTreeItem objects) to the root object type.
array | $types | An array of class names. |
int | $mode | Modifeies the result (only possible value is MvvTreeItem::TRAIL_SHOW_INCOMPLETE) |
array | $path | The uncomplete path (used in recursion) |
boolean | $last | True if the last object (no parents) is reached (used in recursion) |
Implements MvvTreeItem.
hasChildren | ( | ) |
Implements MvvTreeItem.
isAssignable | ( | ) |
Returns whether this object is assignable to courses.
Implements MvvTreeItem.
|
static |
Stores filter function to restrict pathes only to objects fulfilling all conditions defined in this function.
string | $class_name | The name of the class. |
Closure | $filter_func | The function defining the filter. |
array | $params | Parameters used by filter function. |
InvalidArgumentException |
|
staticprotected |
|
staticprotected |
|
static |