|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Collaboration diagram for ilContainerSorting:Public Member Functions | |
| getSortingSettings () | |
| Get sorting settings. More... | |
| sortItems ($a_items) | |
| sort subitems More... | |
| sortSubItems ($a_parent_type, $a_parent_id, $a_items) | |
| sort subitems (items of sessions or learning objectives) More... | |
| savePost ($a_type_positions) | |
| Save post. More... | |
| getBlockPositions () | |
| Read block custom positions (for current object id) More... | |
Static Public Member Functions | |
| static | _getInstance ($a_obj_id) |
| get instance by obj_id More... | |
| static | lookupPositions ($a_obj_id) |
| Get positions of subitems. More... | |
| cloneSorting ($a_target_id, $a_copy_id) | |
| clone sorting More... | |
Data Fields | |
| const | ORDER_DEFAULT = 999999 |
Protected Member Functions | |
| saveItems ($a_items) | |
| save items More... | |
| saveSubItems ($a_parent_type, $a_parent_id, $a_items) | |
| Save subitem ordering (sessions, learning objectives) More... | |
| saveBlockPositions (array $a_values) | |
| Save block custom positions (for current object id) More... | |
Protected Attributes | |
| $obj_id | |
| $db | |
| $sorting_settings = null | |
Static Protected Attributes | |
| static | $instances = array() |
Private Member Functions | |
| __construct ($a_obj_id) | |
| Constructor. More... | |
| read () | |
| Read. More... | |
| sortOrderDefault ($items) | |
| Position and order sort order for new object without position in manual sorting type. More... | |
Definition at line 35 of file class.ilContainerSorting.php.
|
private |
Constructor.
@access private
| int | obj_id |
Definition at line 52 of file class.ilContainerSorting.php.
Here is the call graph for this function:
|
static |
get instance by obj_id
@access public
| int | obj_id |
Definition at line 79 of file class.ilContainerSorting.php.
Referenced by ilContainer\cloneDependencies(), ilObjStudyProgramme\getChildren(), ilObjStudyProgramme\getLPChildren(), ilObjCourse\getSubItems(), ilContainer\getSubItems(), ilWebLinkXmlParser\handlerEndTag(), ilObjSessionGUI\infoScreen(), ilContainerContentGUI\initRenderer(), ilContainerContentGUI\renderItem(), ilContainerContentGUI\renderItemGroup(), ilObjLinkResourceGUI\saveSorting(), ilContainerGUI\saveSortingObject(), ilAdministrationExplorerGUI\sortChilds(), ilRepositoryExplorerGUI\sortChilds(), ilRepositorySelectorExplorerGUI\sortChilds(), ilRepositoryExplorer\sortNodes(), and ilObjStudyProgrammeTreeGUI\storeTreeOrder().
Here is the caller graph for this function:
|
static |
clone sorting
Definition at line 113 of file class.ilContainerSorting.php.
References $ilDB, $ilLog, $query, $res, $row, ilObject\_getAllReferences(), ilCopyWizardOptions\_getInstance(), ilObject\_lookupObjectId(), ilObject\_lookupObjId(), ilDBConstants\FETCHMODE_OBJECT, and ilLoggerFactory\getLogger().
Here is the call graph for this function:| ilContainerSorting::getBlockPositions | ( | ) |
Read block custom positions (for current object id)
Definition at line 533 of file class.ilContainerSorting.php.
| ilContainerSorting::getSortingSettings | ( | ) |
Get sorting settings.
Definition at line 66 of file class.ilContainerSorting.php.
References $sorting_settings.
Referenced by sortItems(), sortOrderDefault(), and sortSubItems().
Here is the caller graph for this function:
|
static |
Get positions of subitems.
| int | $a_obj_id |
Definition at line 93 of file class.ilContainerSorting.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLinkResourceItems\sortItems().
Here is the caller graph for this function:
|
private |
Read.
@access private
Definition at line 554 of file class.ilContainerSorting.php.
References $query, $res, $row, $sorting_settings, ilDBConstants\FETCHMODE_OBJECT, and ilContainerSortingSettings\getInstanceByObjId().
Referenced by __construct().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Save block custom positions (for current object id)
| array | $a_values |
Definition at line 512 of file class.ilContainerSorting.php.
References $ilDB.
Referenced by savePost().
Here is the caller graph for this function:
|
protected |
save items
@access 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 455 of file class.ilContainerSorting.php.
References $ilDB.
Referenced by savePost().
Here is the caller graph for this function:| ilContainerSorting::savePost | ( | $a_type_positions | ) |
Save post.
@access public
| array | of positions e.g array(crs => array(1,2,3),'lres' => array(3,5,6)) |
Definition at line 415 of file class.ilContainerSorting.php.
References $ilLog, saveBlockPositions(), saveItems(), and saveSubItems().
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 484 of file class.ilContainerSorting.php.
References $ilDB.
Referenced by savePost().
Here is the caller graph for this function:| ilContainerSorting::sortItems | ( | $a_items | ) |
sort subitems
@access public
| array | item data |
Definition at line 231 of file class.ilContainerSorting.php.
References $data, getSortingSettings(), ORDER_DEFAULT, ilContainer\SORT_ACTIVATION, ilContainer\SORT_CREATION, ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, ilUtil\sortArray(), and sortOrderDefault().
Here is the call graph for this function:
|
private |
Position and order sort order for new object without position in manual sorting type.
| $items |
Definition at line 589 of file class.ilContainerSorting.php.
References getSortingSettings(), ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_NEW_ITEMS_ORDER_ACTIVATION, ilContainer\SORT_NEW_ITEMS_ORDER_CREATION, ilContainer\SORT_NEW_ITEMS_ORDER_TITLE, ilContainer\SORT_NEW_ITEMS_POSITION_TOP, and ilUtil\sortArray().
Referenced by sortItems(), and sortSubItems().
Here is the call graph for this function:
Here is the caller graph for this function:| ilContainerSorting::sortSubItems | ( | $a_parent_type, | |
| $a_parent_id, | |||
| $a_items | |||
| ) |
sort subitems (items of sessions or learning objectives)
@access public
return
Definition at line 363 of file class.ilContainerSorting.php.
References getSortingSettings(), ORDER_DEFAULT, ilContainer\SORT_ACTIVATION, ilContainer\SORT_CREATION, ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_MANUAL, ilContainer\SORT_TITLE, ilUtil\sortArray(), and sortOrderDefault().
Here is the call graph for this function:
|
protected |
Definition at line 40 of file class.ilContainerSorting.php.
|
staticprotected |
Definition at line 37 of file class.ilContainerSorting.php.
|
protected |
Definition at line 39 of file class.ilContainerSorting.php.
|
protected |
Definition at line 42 of file class.ilContainerSorting.php.
Referenced by getSortingSettings(), and read().
| const ilContainerSorting::ORDER_DEFAULT = 999999 |
Definition at line 43 of file class.ilContainerSorting.php.
Referenced by sortItems(), and sortSubItems().