ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
getSortingSettings () | |
Get sorting settings. | |
sortItems ($a_items) | |
sort subitems | |
sortSubItems ($a_parent_type, $a_parent_id, $a_items) | |
sort subitems (items of sessions or learning objectives) | |
savePost ($a_type_positions) | |
Save post. | |
getBlockPositions () | |
Read block custom positions (for current object id) |
Static Public Member Functions | |
static | _getInstance ($a_obj_id) |
get instance by obj_id | |
static | lookupPositions ($a_obj_id) |
Get positions of subitems. | |
cloneSorting ($a_target_id, $a_copy_id) | |
clone sorting |
Data Fields | |
const | ORDER_DEFAULT = 999999 |
Protected Member Functions | |
saveItems ($a_items) | |
save items | |
saveSubItems ($a_parent_type, $a_parent_id, $a_items) | |
Save subitem ordering (sessions, learning objectives) | |
saveBlockPositions (array $a_values) | |
Save block custom positions (for current object id) |
Protected Attributes | |
$obj_id | |
$db | |
$sorting_settings = null |
Static Protected Attributes | |
static | $instances = array() |
Private Member Functions | |
__construct ($a_obj_id) | |
Constructor. | |
read () | |
Read. | |
sortOrderDefault ($items) | |
Position and order sort order for new object without position in manual sorting type. |
Definition at line 35 of file class.ilContainerSorting.php.
|
private |
|
static |
get instance by obj_id
public
int | obj_id |
Definition at line 79 of file class.ilContainerSorting.php.
Referenced by ilContainer\cloneDependencies(), cloneSorting(), ilObjCourse\getSubItems(), ilContainer\getSubItems(), ilObjSessionGUI\infoScreen(), ilContainerContentGUI\initRenderer(), ilContainerContentGUI\renderItem(), ilContainerContentGUI\renderItemGroup(), ilObjLinkResourceGUI\saveSorting(), ilContainerGUI\saveSortingObject(), ilAdministrationExplorerGUI\sortChilds(), ilRepositorySelectorExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), ilShopRepositoryExplorer\sortNodes(), and ilRepositoryExplorer\sortNodes().
|
static |
clone sorting
Definition at line 113 of file class.ilContainerSorting.php.
References $ilDB, $ilLog, $query, $res, $row, _getInstance(), ilObject\_lookupObjId(), and DB_FETCHMODE_OBJECT.
ilContainerSorting::getBlockPositions | ( | ) |
Read block custom positions (for current object id)
Definition at line 476 of file class.ilContainerSorting.php.
ilContainerSorting::getSortingSettings | ( | ) |
Get sorting settings.
Definition at line 66 of file class.ilContainerSorting.php.
References $sorting_settings.
Referenced by read(), 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, and DB_FETCHMODE_OBJECT.
Referenced by ilLinkResourceItems\sortItems().
|
private |
Read.
private
Definition at line 497 of file class.ilContainerSorting.php.
References $query, $ref_id, $res, $row, ilObject\_getAllReferences(), ilObject\_lookupObjId(), DB_FETCHMODE_OBJECT, ilContainerSortingSettings\getInstanceByObjId(), getSortingSettings(), and ilContainer\SORT_INHERIT.
Referenced by __construct().
|
protected |
Save block custom positions (for current object id)
array | $a_values |
Definition at line 454 of file class.ilContainerSorting.php.
References $ilDB.
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 397 of file class.ilContainerSorting.php.
References $ilDB.
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 357 of file class.ilContainerSorting.php.
References $ilLog, 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 426 of file class.ilContainerSorting.php.
References $ilDB.
Referenced by savePost().
ilContainerSorting::sortItems | ( | $a_items | ) |
sort subitems
public
array | item data |
Definition at line 173 of file class.ilContainerSorting.php.
References getSortingSettings(), ORDER_DEFAULT, 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 543 of file class.ilContainerSorting.php.
References 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
@return |
Definition at line 305 of file class.ilContainerSorting.php.
References getSortingSettings(), ORDER_DEFAULT, 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().
const ilContainerSorting::ORDER_DEFAULT = 999999 |
Definition at line 43 of file class.ilContainerSorting.php.
Referenced by sortItems(), and sortSubItems().