ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
getSortingSettings () | |
cloneSorting (int $a_target_id, int $a_copy_id) | |
sortItems (array $a_items) | |
sortSubItems (string $a_parent_type, int $a_parent_id, array $a_items) | |
sort subitems (items of sessions or learning objectives) More... | |
savePost (array $a_type_positions) | |
getBlockPositions () | |
Read block custom positions (for current object id) More... | |
Static Public Member Functions | |
static | _getInstance (int $a_obj_id) |
static | lookupPositions (int $a_obj_id) |
Protected Member Functions | |
saveItems (array $a_items) | |
saveSubItems (string $a_parent_type, int $a_parent_id, array $a_items) | |
saveBlockPositions (array $a_values) | |
Save block custom positions (for current object id) More... | |
Protected Attributes | |
const | ORDER_DEFAULT = 999999 |
ilLogger | $log |
ilTree | $tree |
int | $obj_id |
ilDBInterface | $db |
ilContainerSortingSettings | $sorting_settings = null |
array | $sorting = [] |
Static Protected Attributes | |
static array | $instances = [] |
Private Member Functions | |
__construct (int $a_obj_id) | |
read () | |
sortOrderDefault (array $items) | |
Position and order sort order for new object without position in manual sorting type. More... | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 23 of file class.ilContainerSorting.php.
|
private |
Definition at line 36 of file class.ilContainerSorting.php.
References $DIC, $ilDB, and read().
|
static |
Definition at line 55 of file class.ilContainerSorting.php.
Referenced by ilContainer\cloneDependencies(), ilObjStudyProgramme\getChildren(), ilObjStudyProgramme\getLPChildren(), ilContainer\getSubItems(), ilWebLinkXmlParser\handlerEndTag(), ilLSLocalDI\init(), ilContainerSessionsContentGUI\initDetails(), ilContainerContentGUI\initRenderer(), ilContainerContentGUI\renderItem(), ilContainerContentGUI\renderItemGroup(), ilObjLinkResourceGUI\saveSorting(), ilContainerGUI\saveSortingObject(), ilObjStudyProgrammeTreeGUI\saveTreeOrder(), ilObjSessionGUI\showJoinRequestButton(), ilAdministrationExplorerGUI\sortChilds(), ilRepositorySelectorExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), and ilRepositoryExplorer\sortNodes().
ilContainerSorting::cloneSorting | ( | int | $a_target_id, |
int | $a_copy_id | ||
) |
Definition at line 81 of file class.ilContainerSorting.php.
References $db, $ilDB, $query, $res, ilObject\_getAllReferences(), ilCopyWizardOptions\_getInstance(), ilObject\_lookupObjectId(), ilObject\_lookupObjId(), ilDBConstants\FETCHMODE_OBJECT, and ilLoggerFactory\getLogger().
ilContainerSorting::getBlockPositions | ( | ) |
Read block custom positions (for current object id)
Definition at line 435 of file class.ilContainerSorting.php.
ilContainerSorting::getSortingSettings | ( | ) |
Definition at line 50 of file class.ilContainerSorting.php.
References $sorting_settings.
Referenced by sortItems(), sortOrderDefault(), and sortSubItems().
|
static |
int | $a_obj_id |
Definition at line 64 of file class.ilContainerSorting.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilWebLinkItemsContainer\sort().
|
private |
Definition at line 450 of file class.ilContainerSorting.php.
References $query, $res, ilDBConstants\FETCHMODE_OBJECT, ilContainerSortingSettings\getInstanceByObjId(), and ilContainerSortingSettings\loadEffectiveSettings().
Referenced by __construct().
|
protected |
Save block custom positions (for current object id)
Definition at line 417 of file class.ilContainerSorting.php.
Referenced by savePost().
|
protected |
Definition at line 371 of file class.ilContainerSorting.php.
Referenced by savePost().
ilContainerSorting::savePost | ( | array | $a_type_positions | ) |
array | $a_type_positions | positions e.g array(crs => array(1,2,3),'lres' => array(3,5,6)) |
Definition at line 338 of file class.ilContainerSorting.php.
References ILIAS\LTI\ToolProvider\$key, saveBlockPositions(), saveItems(), and saveSubItems().
|
protected |
Definition at line 391 of file class.ilContainerSorting.php.
Referenced by savePost().
ilContainerSorting::sortItems | ( | array | $a_items | ) |
Definition at line 181 of file class.ilContainerSorting.php.
References $data, ILIAS\LTI\ToolProvider\$key, $type, getSortingSettings(), ilContainer\SORT_ACTIVATION, ilContainer\SORT_CREATION, ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, ilArrayUtil\sortArray(), and sortOrderDefault().
|
private |
Position and order sort order for new object without position in manual sorting type.
Definition at line 473 of file class.ilContainerSorting.php.
References ILIAS\LTI\ToolProvider\$key, 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 ilArrayUtil\sortArray().
Referenced by sortItems(), and sortSubItems().
ilContainerSorting::sortSubItems | ( | string | $a_parent_type, |
int | $a_parent_id, | ||
array | $a_items | ||
) |
sort subitems (items of sessions or learning objectives)
Definition at line 291 of file class.ilContainerSorting.php.
References ILIAS\LTI\ToolProvider\$key, getSortingSettings(), ilContainer\SORT_ACTIVATION, ilContainer\SORT_CREATION, ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, ilArrayUtil\sortArray(), and sortOrderDefault().
|
protected |
Definition at line 32 of file class.ilContainerSorting.php.
Referenced by cloneSorting(), getBlockPositions(), saveBlockPositions(), saveItems(), and saveSubItems().
|
staticprotected |
Definition at line 30 of file class.ilContainerSorting.php.
|
protected |
Definition at line 27 of file class.ilContainerSorting.php.
|
protected |
Definition at line 31 of file class.ilContainerSorting.php.
|
protected |
Definition at line 34 of file class.ilContainerSorting.php.
|
protected |
Definition at line 33 of file class.ilContainerSorting.php.
Referenced by getSortingSettings().
|
protected |
Definition at line 28 of file class.ilContainerSorting.php.
|
protected |
Definition at line 25 of file class.ilContainerSorting.php.