ILIAS
release_4-3 Revision
|
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(), ilContainer\getSubItems(), ilObjSessionGUI\infoScreen(), ilContainerContentGUI\renderItem(), ilContainerContentGUI\renderItemGroup(), ilContainerObjectiveGUI\renderObjective(), ilObjLinkResourceGUI\saveSorting(), ilContainerGUI\saveSortingObject(), 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 278 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 385 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 326 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 290 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 355 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 $data, 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 246 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().