| ILIAS
    Release_4_1_x_branch Revision 61804
    | 
 Collaboration diagram for ilContainerSorting:
 Collaboration diagram for ilContainerSorting:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilContainerSorting::getSortMode | ( | ) | 
get sort mode
public
| @return | 
Definition at line 66 of file class.ilContainerSorting.php.
References $sorting_mode.
Referenced by sortItems(), and sortSubItems().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | 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().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 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().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | 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().