ILIAS
Release_4_1_x_branch Revision 61804
|
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 |
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 |
|
static |
get instance by obj_id
public
int | obj_id |
Definition at line 80 of file class.ilContainerSorting.php.
Referenced by ilContainer\cloneDependencies(), cloneSorting(), ilContainer\getSubItems(), ilObjSessionGUI\infoScreen(), ilContainerContentGUI\renderItem(), ilContainerObjectiveGUI\renderObjective(), ilObjLinkResourceGUI\saveSortingObject(), ilContainerGUI\saveSortingObject(), and ilRepositoryExplorer\sortNodes().
|
static |
clone sorting
Definition at line 114 of file class.ilContainerSorting.php.
References $ilDB, $ilLog, $query, $res, $row, _getInstance(), ilObject\_lookupObjId(), and DB_FETCHMODE_OBJECT.
ilContainerSorting::getSortMode | ( | ) |
get sort mode
public
@return |
Definition at line 66 of file class.ilContainerSorting.php.
References $sorting_mode.
Referenced by sortItems(), and sortSubItems().
ilContainerSorting::isManualSortingEnabled | ( | ) |
is manual sorting enabled
public
Definition at line 269 of file class.ilContainerSorting.php.
References $manual_sort_enabled.
|
static |
Get positions of subitems.
int | $a_obj_id |
Definition at line 94 of file class.ilContainerSorting.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilLinkResourceItems\sortItems().
|
private |
Read.
private
Definition at line 376 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 317 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 281 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 346 of file class.ilContainerSorting.php.
References $ilDB.
Referenced by savePost().
ilContainerSorting::sortItems | ( | $a_items | ) |
sort subitems
public
array | item data |
Definition at line 174 of file class.ilContainerSorting.php.
References $data, getSortMode(), 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 237 of file class.ilContainerSorting.php.
References getSortMode(), 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().