ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 | |
$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.
private
int | obj_id |
Definition at line 52 of file class.ilContainerSorting.php.
|
static |
get instance by obj_id
public
int | obj_id |
Definition at line 79 of file class.ilContainerSorting.php.
Referenced by ilContainer\cloneDependencies(), ilObjStudyProgramme\getChildren(), ilObjStudyProgramme\getLPChildren(), ilObjCourse\getSubItems(), ilContainer\getSubItems(), ilWebLinkXmlParser\handlerEndTag(), ilObjSessionGUI\infoScreen(), ilContainerContentGUI\initRenderer(), ilContainerContentGUI\renderItem(), ilContainerContentGUI\renderItemGroup(), ilObjLinkResourceGUI\saveSorting(), ilContainerGUI\saveSortingObject(), ilAdministrationExplorerGUI\sortChilds(), ilRepositorySelectorExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), ilRepositoryExplorer\sortNodes(), and ilObjStudyProgrammeTreeGUI\storeTreeOrder().
|
static |
clone sorting
Definition at line 113 of file class.ilContainerSorting.php.
References $ilDB, $ilLog, $query, $res, $row, ilObject\_getAllReferences(), ilCopyWizardOptions\_getInstance(), ilObject\_lookupObjectId(), ilObject\_lookupObjId(), array, ilDBConstants\FETCHMODE_OBJECT, and ilLoggerFactory\getLogger().
ilContainerSorting::getBlockPositions | ( | ) |
Read block custom positions (for current object id)
Definition at line 533 of file class.ilContainerSorting.php.
ilContainerSorting::getSortingSettings | ( | ) |
Get sorting settings.
Definition at line 66 of file class.ilContainerSorting.php.
References $sorting_settings.
Referenced by sortItems(), sortOrderDefault(), and sortSubItems().
|
static |
Get positions of subitems.
int | $a_obj_id |
Definition at line 93 of file class.ilContainerSorting.php.
References $ilDB, $query, $res, $row, array, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLinkResourceItems\sortItems().
|
private |
Read.
private
Definition at line 554 of file class.ilContainerSorting.php.
References $query, $res, $row, $sorting_settings, ilDBConstants\FETCHMODE_OBJECT, and ilContainerSortingSettings\getInstanceByObjId().
Referenced by __construct().
|
protected |
Save block custom positions (for current object id)
array | $a_values |
Definition at line 512 of file class.ilContainerSorting.php.
Referenced by savePost().
|
protected |
save items
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 455 of file class.ilContainerSorting.php.
Referenced by savePost().
ilContainerSorting::savePost | ( | $a_type_positions | ) |
Save post.
public
array | of positions e.g array(crs => array(1,2,3),'lres' => array(3,5,6)) |
Definition at line 415 of file class.ilContainerSorting.php.
References $ilLog, array, saveBlockPositions(), saveItems(), and saveSubItems().
|
protected |
Save subitem ordering (sessions, learning objectives)
string | $a_parent_type | |
integer | $a_parent_id | |
array | $a_items |
Definition at line 484 of file class.ilContainerSorting.php.
Referenced by savePost().
ilContainerSorting::sortItems | ( | $a_items | ) |
sort subitems
public
array | item data |
Definition at line 231 of file class.ilContainerSorting.php.
References $data, array, getSortingSettings(), ilContainer\SORT_ACTIVATION, ilContainer\SORT_CREATION, ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, ilUtil\sortArray(), and sortOrderDefault().
|
private |
Position and order sort order for new object without position in manual sorting type.
$items |
Definition at line 589 of file class.ilContainerSorting.php.
References array, 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().
ilContainerSorting::sortSubItems | ( | $a_parent_type, | |
$a_parent_id, | |||
$a_items | |||
) |
sort subitems (items of sessions or learning objectives)
public
Definition at line 363 of file class.ilContainerSorting.php.
References array, getSortingSettings(), ilContainer\SORT_ACTIVATION, ilContainer\SORT_CREATION, ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, ilUtil\sortArray(), and sortOrderDefault().
|
protected |
Definition at line 40 of file class.ilContainerSorting.php.
|
staticprotected |
Definition at line 37 of file class.ilContainerSorting.php.
|
protected |
Definition at line 39 of file class.ilContainerSorting.php.
|
protected |
Definition at line 42 of file class.ilContainerSorting.php.
Referenced by getSortingSettings(), and read().
const ilContainerSorting::ORDER_DEFAULT = 999999 |
Definition at line 43 of file class.ilContainerSorting.php.