ILIAS
Release_3_10_x_branch Revision 61812
|
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 | |
cloneSorting ($a_target_id, $a_copy_id) | |
clone sorting |
Protected Member Functions | |
saveItems ($a_parent_type, $a_parent_id, $a_items) | |
save items |
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 49 of file class.ilContainerSorting.php.
References read().
|
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(), ilContainerContentGUI\renderItem(), ilContainerObjectiveGUI\renderObjective(), ilContainerGUI\saveSortingObject(), and ilRepositoryExplorer\sortNodes().
|
static |
clone sorting
Definition at line 95 of file class.ilContainerSorting.php.
References $ilLog, $res, _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 236 of file class.ilContainerSorting.php.
References $manual_sort_enabled.
|
private |
Read.
private
Definition at line 303 of file class.ilContainerSorting.php.
References $res, 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 281 of file class.ilContainerSorting.php.
References $res.
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 248 of file class.ilContainerSorting.php.
References saveItems().
ilContainerSorting::sortItems | ( | $a_items | ) |
sort subitems
public
array | item data |
Definition at line 141 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 204 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().