ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
getSortMode () | |
get sort mode | |
sortItems ($a_items) | |
sort subitems | |
sortSubItems ($a_parent_type, $a_parent_id, $a_items) | |
sort subitems (items of sessions or learning objectives) | |
isManualSortingEnabled () | |
is manual sorting enabled | |
savePost ($a_type_positions) | |
Save post. |
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) |
Protected Attributes | |
$obj_id | |
$db | |
$manual_sort_enabled = false | |
$sorting_mode = 0 |
Static Protected Attributes | |
static | $instances = array() |
Private Member Functions | |
__construct ($a_obj_id) | |
Constructor. | |
read () | |
Read. |
Definition at line 32 of file class.ilContainerSorting.php.
|
private |
Constructor.
private
int | obj_id |
Definition at line 51 of file class.ilContainerSorting.php.
References read().
|
static |
get instance by obj_id
public
int | obj_id |
Definition at line 82 of file class.ilContainerSorting.php.
Referenced by ilContainer\cloneDependencies(), cloneSorting(), ilObjCourse\getSubItems(), ilContainer\getSubItems(), ilObjSessionGUI\infoScreen(), ilContainerContentGUI\renderItem(), ilContainerContentGUI\renderItemGroup(), ilContainerObjectiveGUI\renderObjective(), ilObjLinkResourceGUI\saveSorting(), ilContainerGUI\saveSortingObject(), ilAdministrationExplorerGUI\sortChilds(), ilRepositorySelectorExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), ilShopRepositoryExplorer\sortNodes(), and ilRepositoryExplorer\sortNodes().
|
static |
clone sorting
Definition at line 116 of file class.ilContainerSorting.php.
References $ilLog, $query, $res, $row, _getInstance(), ilObject\_lookupObjId(), and DB_FETCHMODE_OBJECT.
ilContainerSorting::getSortMode | ( | ) |
get sort mode
public
@return |
Definition at line 68 of file class.ilContainerSorting.php.
References $sorting_mode.
Referenced by sortItems(), and sortSubItems().
ilContainerSorting::isManualSortingEnabled | ( | ) |
is manual sorting enabled
public
Definition at line 286 of file class.ilContainerSorting.php.
References $manual_sort_enabled.
|
static |
Get positions of subitems.
int | $a_obj_id |
Definition at line 96 of file class.ilContainerSorting.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilLinkResourceItems\sortItems().
|
private |
Read.
private
Definition at line 393 of file class.ilContainerSorting.php.
References $query, $res, $row, ilContainerSortingSettings\_isManualSortingEnabled(), ilContainerSortingSettings\_lookupSortMode(), and DB_FETCHMODE_OBJECT.
Referenced by __construct().
|
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 334 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 298 of file class.ilContainerSorting.php.
References $ilLog, saveItems(), and saveSubItems().
|
protected |
Save subitem ordering (sessions, learning objectives)
string | $a_parent_type | |
integer | $a_parent_id | |
array | $a_items |
Definition at line 363 of file class.ilContainerSorting.php.
Referenced by savePost().
ilContainerSorting::sortItems | ( | $a_items | ) |
sort subitems
public
array | item data |
Definition at line 176 of file class.ilContainerSorting.php.
References getSortMode(), ORDER_DEFAULT, ilContainer\SORT_ACTIVATION, ilContainer\SORT_TITLE, and ilUtil\sortArray().
ilContainerSorting::sortSubItems | ( | $a_parent_type, | |
$a_parent_id, | |||
$a_items | |||
) |
sort subitems (items of sessions or learning objectives)
public
@return |
Definition at line 254 of file class.ilContainerSorting.php.
References getSortMode(), ORDER_DEFAULT, ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, and ilUtil\sortArray().
|
protected |
Definition at line 37 of file class.ilContainerSorting.php.
|
staticprotected |
Definition at line 34 of file class.ilContainerSorting.php.
|
protected |
Definition at line 39 of file class.ilContainerSorting.php.
Referenced by isManualSortingEnabled().
|
protected |
Definition at line 36 of file class.ilContainerSorting.php.
|
protected |
Definition at line 40 of file class.ilContainerSorting.php.
Referenced by getSortMode().
const ilContainerSorting::ORDER_DEFAULT = 999999 |
Definition at line 42 of file class.ilContainerSorting.php.
Referenced by sortItems(), and sortSubItems().