ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ($a_obj_id=0) | |
Constructor. More... | |
loadEffectiveSettings () | |
Load inherited settings. More... | |
getInheritedSettings ($a_container_obj_id) | |
Read inherited settings of course/group. More... | |
getSortMode () | |
get sort mode More... | |
getSortDirection () | |
Get sort direction. More... | |
getSortNewItemsPosition () | |
GET new item position. More... | |
getSortNewItemsOrder () | |
GET new item order. More... | |
setSortMode ($a_mode) | |
set sort mode More... | |
setSortDirection ($a_direction) | |
Set sort direction. More... | |
setSortNewItemsPosition ($a_position) | |
SET new item position. More... | |
setSortNewItemsOrder ($a_order) | |
SET new item order. More... | |
update () | |
Update. More... | |
save () | |
save settings More... | |
delete () | |
Delete setting. More... | |
Static Public Member Functions | |
static | getInstanceByObjId ($a_obj_id) |
Get singleton instance. More... | |
static | _readSortMode ($a_obj_id) |
static | _lookupSortMode ($a_obj_id) |
lookup sort mode More... | |
static | lookupSortModeFromParentContainer ($a_obj_id) |
Lookup sort mode from parent container. More... | |
static | _cloneSettings ($a_old_id, $a_new_id) |
Clone settings. More... | |
static | sortModeToString ($a_sort_mode) |
get String representation of sort mode More... | |
static | _exportContainerSortingSettings (ilXmlWriter $xml, $obj_id) |
sorting XML-export for all container objects More... | |
static | _importContainerSortingSettings ($attibs, $obj_id) |
sorting import for all container objects More... | |
Protected Member Functions | |
read () | |
read settings More... | |
Static Private Attributes | |
static | $instances = array() |
Definition at line 35 of file class.ilContainerSortingSettings.php.
ilContainerSortingSettings::__construct | ( | $a_obj_id = 0 | ) |
Constructor.
public
Definition at line 59 of file class.ilContainerSortingSettings.php.
References $DIC, $ilDB, and read().
|
static |
Clone settings.
public
int | orig obj_id @þaram int new obj_id |
Definition at line 211 of file class.ilContainerSortingSettings.php.
References $DIC, $ilDB, $query, $res, and $row.
Referenced by ilContainer\_exportContainerSettings().
|
static |
sorting XML-export for all container objects
ilXmlWriter | $xml | |
$obj_id |
Definition at line 428 of file class.ilContainerSortingSettings.php.
References $obj_id, 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
$attibs | array (type, direction, position, order) |
$obj_id |
Definition at line 489 of file class.ilContainerSortingSettings.php.
References $obj_id, 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 ilGroupXMLParser\__initContainerSorting(), ilFolderXmlParser\handlerBeginTag(), ilCourseXMLParser\handlerBeginTag(), and ilCategoryXmlParser\handlerBeginTag().
|
static |
lookup sort mode
public
int | obj_id |
Definition at line 169 of file class.ilContainerSortingSettings.php.
References $DIC, $ilDB, $query, $res, $row, $tree, ilDBConstants\FETCHMODE_OBJECT, and ilContainer\SORT_INHERIT.
Referenced by ilObjLinkResourceGUI\activateTabs(), ilContainerGUI\addHeaderRow(), ilObjLinkResourceGUI\initFormSettings(), ilWebResourceLinkTableGUI\initSorting(), ilContainerGUI\isActiveItemOrdering(), ilObjFolder\read(), ilObjCourse\read(), ilObjGroup\read(), ilContainer\read(), ilLinkResourceItems\sortItems(), ilObjLinkResource\toXML(), and ilObjLinkResourceGUI\view().
|
static |
Definition at line 144 of file class.ilContainerSortingSettings.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and ilContainer\SORT_INHERIT.
ilContainerSortingSettings::delete | ( | ) |
ilContainerSortingSettings::getInheritedSettings | ( | $a_container_obj_id | ) |
Read inherited settings of course/group.
int | $a_container_obj_id |
Definition at line 113 of file class.ilContainerSortingSettings.php.
References $obj_id, $tree, ilObject\_getAllReferences(), ilObject\_lookupObjId(), and ilContainer\SORT_INHERIT.
Referenced by loadEffectiveSettings().
|
static |
Get singleton instance.
type | $a_obj_id |
Definition at line 77 of file class.ilContainerSortingSettings.php.
Referenced by ilCourseXMLParser\handlerBeginTag(), and ilContainerSorting\read().
ilContainerSortingSettings::getSortDirection | ( | ) |
Get sort direction.
Definition at line 255 of file class.ilContainerSortingSettings.php.
References ilContainer\SORT_DIRECTION_ASC.
Referenced by ilContainerGUI\initSortingDirectionForm().
ilContainerSortingSettings::getSortMode | ( | ) |
get sort mode
public
Definition at line 246 of file class.ilContainerSortingSettings.php.
Referenced by ilObjFolderGUI\getEditFormCustomValues(), and loadEffectiveSettings().
ilContainerSortingSettings::getSortNewItemsOrder | ( | ) |
GET new item order.
Definition at line 273 of file class.ilContainerSortingSettings.php.
References $new_items_order.
Referenced by ilContainerGUI\initManualSortingOptionForm().
ilContainerSortingSettings::getSortNewItemsPosition | ( | ) |
GET new item position.
Definition at line 264 of file class.ilContainerSortingSettings.php.
References $new_items_position.
Referenced by ilContainerGUI\initManualSortingOptionForm().
ilContainerSortingSettings::loadEffectiveSettings | ( | ) |
Load inherited settings.
Definition at line 89 of file class.ilContainerSortingSettings.php.
References getInheritedSettings(), getSortMode(), ilContainer\SORT_INHERIT, and ilContainer\SORT_TITLE.
|
static |
Lookup sort mode from parent container.
object | $a_obj_id |
Definition at line 195 of file class.ilContainerSortingSettings.php.
Referenced by ilContainerGUI\initSortingForm().
|
protected |
read settings
private
Definition at line 375 of file class.ilContainerSortingSettings.php.
References $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by __construct().
ilContainerSortingSettings::save | ( | ) |
ilContainerSortingSettings::setSortDirection | ( | $a_direction | ) |
Set sort direction.
type | $a_direction |
Definition at line 294 of file class.ilContainerSortingSettings.php.
ilContainerSortingSettings::setSortMode | ( | $a_mode | ) |
set sort mode
public
int | MODE_TITLE | MODE_MANUAL | MODE_ACTIVATION |
Definition at line 285 of file class.ilContainerSortingSettings.php.
Referenced by ilObjFolderGUI\afterSave(), ilObjGroupGUI\afterSave(), and ilObjLinkResourceGUI\saveSettings().
ilContainerSortingSettings::setSortNewItemsOrder | ( | $a_order | ) |
SET new item order.
int | $a_order |
Definition at line 312 of file class.ilContainerSortingSettings.php.
ilContainerSortingSettings::setSortNewItemsPosition | ( | $a_position | ) |
SET new item position.
int | $a_position |
Definition at line 303 of file class.ilContainerSortingSettings.php.
|
static |
get String representation of sort mode
int | $a_sort_mode |
Definition at line 399 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 | ( | ) |
Update.
public
Definition at line 323 of file class.ilContainerSortingSettings.php.
References $db, $ilDB, $query, $res, and save().
|
protected |
Definition at line 50 of file class.ilContainerSortingSettings.php.
|
staticprivate |
Definition at line 42 of file class.ilContainerSortingSettings.php.
|
protected |
Definition at line 48 of file class.ilContainerSortingSettings.php.
Referenced by getSortNewItemsOrder().
|
protected |
Definition at line 47 of file class.ilContainerSortingSettings.php.
Referenced by getSortNewItemsPosition().
|
protected |
Definition at line 44 of file class.ilContainerSortingSettings.php.
Referenced by _exportContainerSortingSettings(), _importContainerSortingSettings(), and getInheritedSettings().
|
protected |
Definition at line 46 of file class.ilContainerSortingSettings.php.
|
protected |
Definition at line 45 of file class.ilContainerSortingSettings.php.
|
protected |
Definition at line 40 of file class.ilContainerSortingSettings.php.
Referenced by _lookupSortMode(), and getInheritedSettings().