ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
__construct (int $a_obj_id=0) | |
loadEffectiveSettings () | |
Load inherited settings. More... | |
getInheritedSettings (int $a_container_obj_id) | |
getSortMode () | |
getSortDirection () | |
getSortNewItemsPosition () | |
getSortNewItemsOrder () | |
setSortMode (int $a_mode) | |
setSortDirection (int $a_direction) | |
setSortNewItemsPosition (int $a_position) | |
setSortNewItemsOrder (int $a_order) | |
update () | |
save () | |
delete () | |
Static Public Member Functions | |
static | getInstanceByObjId (int $a_obj_id) |
static | _readSortMode (int $a_obj_id) |
static | _lookupSortMode (int $a_obj_id) |
static | lookupSortModeFromParentContainer (int $a_obj_id) |
static | _cloneSettings (int $a_old_id, int $a_new_id) |
static | sortModeToString (int $a_sort_mode) |
Get string representation of sort mode. More... | |
static | _exportContainerSortingSettings (ilXmlWriter $xml, int $obj_id) |
sorting XML-export for all container objects More... | |
static | _importContainerSortingSettings (array $attibs, int $obj_id) |
sorting import for all container objects More... | |
Protected Member Functions | |
read () | |
Protected Attributes | |
ilTree | $tree |
int | $obj_id |
int | $sort_mode = ilContainer::SORT_TITLE |
int | $sort_direction = ilContainer::SORT_DIRECTION_ASC |
int | $new_items_position = ilContainer::SORT_NEW_ITEMS_POSITION_BOTTOM |
int | $new_items_order = ilContainer::SORT_NEW_ITEMS_ORDER_TITLE |
ilDBInterface | $db |
Static Private Attributes | |
static array | $instances = [] |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning
Definition at line 22 of file class.ilContainerSortingSettings.php.
ilContainerSortingSettings::__construct | ( | int | $a_obj_id = 0 | ) |
Definition at line 34 of file class.ilContainerSortingSettings.php.
References $DIC, $ilDB, and read().
|
static |
Definition at line 148 of file class.ilContainerSortingSettings.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilContainer\_exportContainerSettings().
|
static |
sorting XML-export for all container objects
Definition at line 304 of file class.ilContainerSortingSettings.php.
References ILIAS\LTI\ToolProvider\$settings, ilContainer\SORT_ACTIVATION, ilContainer\SORT_CREATION, ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_INHERIT, ilContainer\SORT_MANUAL, ilContainer\SORT_NEW_ITEMS_ORDER_ACTIVATION, ilContainer\SORT_NEW_ITEMS_ORDER_CREATION, ilContainer\SORT_NEW_ITEMS_ORDER_TITLE, ilContainer\SORT_NEW_ITEMS_POSITION_BOTTOM, ilContainer\SORT_TITLE, and ilXmlWriter\xmlElement().
Referenced by ilCategoryXmlWriter\export(), ilGroupXMLWriter\start(), ilCourseXMLWriter\start(), and ilFolderXmlWriter\write().
|
static |
sorting import for all container objects
Definition at line 365 of file class.ilContainerSortingSettings.php.
References ILIAS\LTI\ToolProvider\$settings, ilContainer\SORT_ACTIVATION, ilContainer\SORT_CREATION, ilContainer\SORT_DIRECTION_ASC, ilContainer\SORT_DIRECTION_DESC, ilContainer\SORT_MANUAL, ilContainer\SORT_NEW_ITEMS_ORDER_ACTIVATION, ilContainer\SORT_NEW_ITEMS_ORDER_CREATION, ilContainer\SORT_NEW_ITEMS_ORDER_TITLE, ilContainer\SORT_NEW_ITEMS_POSITION_BOTTOM, ilContainer\SORT_NEW_ITEMS_POSITION_TOP, and ilContainer\SORT_TITLE.
Referenced by ilFolderXmlParser\handlerBeginTag(), ilCategoryXmlParser\handlerBeginTag(), ilCourseXMLParser\handlerBeginTag(), and ilGroupXMLParser\initContainerSorting().
|
static |
Definition at line 122 of file class.ilContainerSortingSettings.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ilContainer\SORT_INHERIT.
Referenced by ilObjLinkResourceGUI\activateTabs(), ilContainerGUI\addHeaderRow(), ilObjLinkResourceGUI\initFormSettings(), ilContainerGUI\isActiveItemOrdering(), ilObjFolder\read(), ilObjCourse\read(), ilObjGroup\read(), ilContainer\read(), ilWebLinkItemsContainer\sort(), ilObjLinkResource\toXML(), and ilObjLinkResourceGUI\view().
|
static |
Definition at line 106 of file class.ilContainerSortingSettings.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ilContainer\SORT_INHERIT.
ilContainerSortingSettings::delete | ( | ) |
ilContainerSortingSettings::getInheritedSettings | ( | int | $a_container_obj_id | ) |
Definition at line 75 of file class.ilContainerSortingSettings.php.
References $obj_id, $ref_id, $tree, ilObject\_getAllReferences(), ilObject\_lookupObjId(), ilTree\checkForParentType(), and ilContainer\SORT_INHERIT.
Referenced by loadEffectiveSettings().
|
static |
Definition at line 47 of file class.ilContainerSortingSettings.php.
Referenced by ilCourseXMLParser\handlerBeginTag(), and ilContainerSorting\read().
ilContainerSortingSettings::getSortDirection | ( | ) |
Definition at line 183 of file class.ilContainerSortingSettings.php.
References ilContainer\SORT_DIRECTION_ASC.
Referenced by ilContainerGUI\initSortingDirectionForm().
ilContainerSortingSettings::getSortMode | ( | ) |
Definition at line 178 of file class.ilContainerSortingSettings.php.
Referenced by ilObjFolderGUI\getEditFormCustomValues(), and loadEffectiveSettings().
ilContainerSortingSettings::getSortNewItemsOrder | ( | ) |
Definition at line 193 of file class.ilContainerSortingSettings.php.
References $new_items_order.
Referenced by ilContainerGUI\initManualSortingOptionForm().
ilContainerSortingSettings::getSortNewItemsPosition | ( | ) |
Definition at line 188 of file class.ilContainerSortingSettings.php.
References $new_items_position.
Referenced by ilContainerGUI\initManualSortingOptionForm().
ilContainerSortingSettings::loadEffectiveSettings | ( | ) |
Load inherited settings.
Definition at line 55 of file class.ilContainerSortingSettings.php.
References getInheritedSettings(), getSortMode(), ilContainer\SORT_INHERIT, and ilContainer\SORT_TITLE.
Referenced by ilContainerSorting\read().
|
static |
Definition at line 141 of file class.ilContainerSortingSettings.php.
References ILIAS\LTI\ToolProvider\$settings.
Referenced by ilContainerGUI\initSortingForm().
|
protected |
Definition at line 256 of file class.ilContainerSortingSettings.php.
References $query, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by __construct().
ilContainerSortingSettings::save | ( | ) |
ilContainerSortingSettings::setSortDirection | ( | int | $a_direction | ) |
Definition at line 206 of file class.ilContainerSortingSettings.php.
ilContainerSortingSettings::setSortMode | ( | int | $a_mode | ) |
int | $a_mode | MODE_TITLE | MODE_MANUAL | MODE_ACTIVATION |
Definition at line 201 of file class.ilContainerSortingSettings.php.
Referenced by ilObjFolderGUI\afterSave(), ilObjGroupGUI\afterSave(), and ilObjLinkResourceGUI\saveSettings().
ilContainerSortingSettings::setSortNewItemsOrder | ( | int | $a_order | ) |
Definition at line 216 of file class.ilContainerSortingSettings.php.
ilContainerSortingSettings::setSortNewItemsPosition | ( | int | $a_position | ) |
Definition at line 211 of file class.ilContainerSortingSettings.php.
|
static |
Get string representation of sort mode.
Definition at line 278 of file class.ilContainerSortingSettings.php.
References $DIC, $lng, ilContainer\SORT_ACTIVATION, ilContainer\SORT_CREATION, ilContainer\SORT_MANUAL, and ilContainer\SORT_TITLE.
Referenced by ilContainerGUI\initSortingForm().
ilContainerSortingSettings::update | ( | ) |
|
protected |
Definition at line 32 of file class.ilContainerSortingSettings.php.
|
staticprivate |
Definition at line 26 of file class.ilContainerSortingSettings.php.
|
protected |
Definition at line 31 of file class.ilContainerSortingSettings.php.
Referenced by getSortNewItemsOrder().
|
protected |
Definition at line 30 of file class.ilContainerSortingSettings.php.
Referenced by getSortNewItemsPosition().
|
protected |
Definition at line 27 of file class.ilContainerSortingSettings.php.
Referenced by getInheritedSettings().
|
protected |
Definition at line 29 of file class.ilContainerSortingSettings.php.
|
protected |
Definition at line 28 of file class.ilContainerSortingSettings.php.
|
protected |
Definition at line 24 of file class.ilContainerSortingSettings.php.
Referenced by getInheritedSettings().