|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Collaboration diagram for ilContainerSorting:Public Member Functions | |
| getSortingSettings () | |
| Get sorting settings. More... | |
| sortItems ($a_items) | |
| sort subitems More... | |
| sortSubItems ($a_parent_type, $a_parent_id, $a_items) | |
| sort subitems (items of sessions or learning objectives) More... | |
| savePost ($a_type_positions) | |
| Save post. More... | |
| getBlockPositions () | |
| Read block custom positions (for current object id) More... | |
Static Public Member Functions | |
| static | _getInstance ($a_obj_id) |
| get instance by obj_id More... | |
| static | lookupPositions ($a_obj_id) |
| Get positions of subitems. More... | |
| cloneSorting ($a_target_id, $a_copy_id) | |
| clone sorting More... | |
Data Fields | |
| const | ORDER_DEFAULT = 999999 |
Protected Member Functions | |
| saveItems ($a_items) | |
| save items More... | |
| saveSubItems ($a_parent_type, $a_parent_id, $a_items) | |
| Save subitem ordering (sessions, learning objectives) More... | |
| saveBlockPositions (array $a_values) | |
| Save block custom positions (for current object id) More... | |
Protected Attributes | |
| $log | |
| $tree | |
| $obj_id | |
| $db | |
| $sorting_settings = null | |
Static Protected Attributes | |
| static | $instances = array() |
Private Member Functions | |
| __construct ($a_obj_id) | |
| Constructor. More... | |
| read () | |
| Read. More... | |
| sortOrderDefault ($items) | |
| Position and order sort order for new object without position in manual sorting type. More... | |
Definition at line 35 of file class.ilContainerSorting.php.
|
private |
Constructor.
@access private
| int | obj_id |
Definition at line 62 of file class.ilContainerSorting.php.
References $DIC, $ilDB, and read().
Here is the call graph for this function:
|
static |
get instance by obj_id
@access public
| int | obj_id |
Definition at line 93 of file class.ilContainerSorting.php.
Referenced by ilContainer\cloneDependencies(), ilObjStudyProgramme\getChildren(), ilObjStudyProgramme\getLPChildren(), ilObjLearningSequence\getLSItemsDB(), ilObjCourse\getSubItems(), ilContainer\getSubItems(), ilWebLinkXmlParser\handlerEndTag(), ilObjSessionGUI\infoScreen(), ilContainerContentGUI\initRenderer(), ilContainerContentGUI\renderItem(), ilContainerContentGUI\renderItemGroup(), ilObjLinkResourceGUI\saveSorting(), ilContainerGUI\saveSortingObject(), ilAdministrationExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), ilRepositorySelectorExplorerGUI\sortChilds(), ilRepositoryExplorer\sortNodes(), and ilObjStudyProgrammeTreeGUI\storeTreeOrder().
Here is the caller graph for this function:
|
static |
clone sorting
Definition at line 127 of file class.ilContainerSorting.php.
References $db, $ilDB, $ilLog, $query, $res, $row, ilObject\_getAllReferences(), ilCopyWizardOptions\_getInstance(), ilObject\_lookupObjectId(), ilObject\_lookupObjId(), ilDBConstants\FETCHMODE_OBJECT, and ilLoggerFactory\getLogger().
Here is the call graph for this function:| ilContainerSorting::getBlockPositions | ( | ) |
Read block custom positions (for current object id)
Definition at line 515 of file class.ilContainerSorting.php.
| ilContainerSorting::getSortingSettings | ( | ) |
Get sorting settings.
Definition at line 80 of file class.ilContainerSorting.php.
References $sorting_settings.
Referenced by sortItems(), sortOrderDefault(), and sortSubItems().
Here is the caller graph for this function:
|
static |
Get positions of subitems.
| int | $a_obj_id |
Definition at line 106 of file class.ilContainerSorting.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLinkResourceItems\sortItems().
Here is the caller graph for this function:
|
private |
Read.
@access private
Definition at line 535 of file class.ilContainerSorting.php.
References $query, $res, $row, $sorting_settings, $tree, ilDBConstants\FETCHMODE_OBJECT, and ilContainerSortingSettings\getInstanceByObjId().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Save block custom positions (for current object id)
| array | $a_values |
Definition at line 494 of file class.ilContainerSorting.php.
Referenced by savePost().
Here is the caller graph for this function:
|
protected |
save items
@access protected
| string | parent_type only used for sessions and objectives in the moment. Otherwise empty |
| int | parent id |
| array | array of items |
Definition at line 440 of file class.ilContainerSorting.php.
Referenced by savePost().
Here is the caller graph for this function:| ilContainerSorting::savePost | ( | $a_type_positions | ) |
Save post.
@access public
| array | of positions e.g array(crs => array(1,2,3),'lres' => array(3,5,6)) |
Definition at line 398 of file class.ilContainerSorting.php.
References $key, saveBlockPositions(), saveItems(), and saveSubItems().
Here is the call graph for this function:
|
protected |
Save subitem ordering (sessions, learning objectives)
| string | $a_parent_type | |
| integer | $a_parent_id | |
| array | $a_items |
Definition at line 468 of file class.ilContainerSorting.php.
Referenced by savePost().
Here is the caller graph for this function:| ilContainerSorting::sortItems | ( | $a_items | ) |
sort subitems
@access public
| array | item data |
Definition at line 234 of file class.ilContainerSorting.php.
References $data, $key, $type, getSortingSettings(), ORDER_DEFAULT, ilContainer\SORT_ACTIVATION, ilContainer\SORT_CREATION, ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, ilUtil\sortArray(), and sortOrderDefault().
Here is the call graph for this function:
|
private |
Position and order sort order for new object without position in manual sorting type.
| $items |
Definition at line 565 of file class.ilContainerSorting.php.
References $key, $values, getSortingSettings(), ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_NEW_ITEMS_ORDER_ACTIVATION, ilContainer\SORT_NEW_ITEMS_ORDER_CREATION, ilContainer\SORT_NEW_ITEMS_ORDER_TITLE, ilContainer\SORT_NEW_ITEMS_POSITION_TOP, and ilUtil\sortArray().
Referenced by sortItems(), and sortSubItems().
Here is the call graph for this function:
Here is the caller graph for this function:| ilContainerSorting::sortSubItems | ( | $a_parent_type, | |
| $a_parent_id, | |||
| $a_items | |||
| ) |
sort subitems (items of sessions or learning objectives)
@access public
return
Definition at line 349 of file class.ilContainerSorting.php.
References $key, getSortingSettings(), ORDER_DEFAULT, ilContainer\SORT_ACTIVATION, ilContainer\SORT_CREATION, ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, ilUtil\sortArray(), and sortOrderDefault().
Here is the call graph for this function:
|
protected |
Definition at line 50 of file class.ilContainerSorting.php.
Referenced by cloneSorting(), getBlockPositions(), saveBlockPositions(), saveItems(), and saveSubItems().
|
staticprotected |
Definition at line 47 of file class.ilContainerSorting.php.
|
protected |
Definition at line 40 of file class.ilContainerSorting.php.
|
protected |
Definition at line 49 of file class.ilContainerSorting.php.
|
protected |
Definition at line 52 of file class.ilContainerSorting.php.
Referenced by getSortingSettings(), and read().
|
protected |
Definition at line 45 of file class.ilContainerSorting.php.
Referenced by read().
| const ilContainerSorting::ORDER_DEFAULT = 999999 |
Definition at line 53 of file class.ilContainerSorting.php.
Referenced by sortItems(), and sortSubItems().