ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
__construct ($a_obj_id=0) | |
Constructor. | |
getSortMode () | |
get sort mode | |
getSortDirection () | |
Get sort direction. | |
getSortNewItemsPosition () | |
GET new item position. | |
getSortNewItemsOrder () | |
GET new item order. | |
setSortMode ($a_mode) | |
set sort mode | |
setSortDirection ($a_direction) | |
Set sort direction. | |
setSortNewItemsPosition ($a_position) | |
SET new item position. | |
setSortNewItemsOrder ($a_order) | |
SET new item order. | |
update () | |
Update. | |
save () | |
save settings | |
delete () | |
Delete setting. |
Static Public Member Functions | |
static | getInstanceByObjId ($a_obj_id) |
Get singleton instance. | |
static | _readSortMode ($a_obj_id) |
static | _lookupSortMode ($a_obj_id) |
lookup sort mode | |
static | lookupSortModeFromParentContainer ($a_obj_id) |
Lookup sort mode from parent container. | |
static | _cloneSettings ($a_old_id, $a_new_id) |
Clone settings. | |
static | sortModeToString ($a_sort_mode) |
get String representation of sort mode | |
static | _exportContainerSortingSettings (ilXmlWriter $xml, $obj_id) |
sorting XML-export for all container objects | |
static | _importContainerSortingSettings ($attibs, $obj_id) |
sorting import for all container objects |
Protected Member Functions | |
read () | |
read settings |
Static Private Attributes | |
static | $instances = array() |
Definition at line 35 of file class.ilContainerSortingSettings.php.
ilContainerSortingSettings::__construct | ( | $a_obj_id = 0 | ) |
|
static |
Clone settings.
public
int | orig obj_id @þaram int new obj_id |
Definition at line 170 of file class.ilContainerSortingSettings.php.
References $ilDB, $query, $res, and $row.
|
static |
sorting XML-export for all container objects
ilXmlWriter | $xml | |
$obj_id |
Definition at line 386 of file class.ilContainerSortingSettings.php.
References $obj_id, getInstanceByObjId(), 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 449 of file class.ilContainerSortingSettings.php.
References $obj_id, getInstanceByObjId(), 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 103 of file class.ilContainerSortingSettings.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, lookupSortModeFromParentContainer(), and ilContainer\SORT_INHERIT.
Referenced by ilObjLinkResourceGUI\activateTabs(), ilContainerGUI\addStandardRow(), ilObjLinkResourceGUI\initFormSettings(), ilWebResourceLinkTableGUI\initSorting(), ilContainerGUI\isActiveItemOrdering(), ilObjFolder\read(), ilObjGroup\read(), ilObjCourse\read(), ilContainer\read(), ilLinkResourceItems\sortItems(), ilObjLinkResource\toXML(), and ilObjLinkResourceGUI\view().
|
static |
Definition at line 79 of file class.ilContainerSortingSettings.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and ilContainer\SORT_INHERIT.
Referenced by lookupSortModeFromParentContainer().
ilContainerSortingSettings::delete | ( | ) |
|
static |
Get singleton instance.
type | $a_obj_id |
Definition at line 69 of file class.ilContainerSortingSettings.php.
Referenced by _exportContainerSortingSettings(), _importContainerSortingSettings(), ilCourseXMLParser\handlerBeginTag(), and ilContainerSorting\read().
ilContainerSortingSettings::getSortDirection | ( | ) |
Get sort direction.
Definition at line 212 of file class.ilContainerSortingSettings.php.
References ilContainer\SORT_DIRECTION_ASC.
Referenced by ilContainerGUI\initSortingDirectionForm().
ilContainerSortingSettings::getSortMode | ( | ) |
get sort mode
public
Definition at line 203 of file class.ilContainerSortingSettings.php.
ilContainerSortingSettings::getSortNewItemsOrder | ( | ) |
GET new item order.
Definition at line 230 of file class.ilContainerSortingSettings.php.
References $new_items_order.
Referenced by ilContainerGUI\initManualSortingOptionForm().
ilContainerSortingSettings::getSortNewItemsPosition | ( | ) |
GET new item position.
Definition at line 221 of file class.ilContainerSortingSettings.php.
References $new_items_position.
Referenced by ilContainerGUI\initManualSortingOptionForm().
|
static |
Lookup sort mode from parent container.
object | $a_obj_id |
Definition at line 127 of file class.ilContainerSortingSettings.php.
References $ilDB, $ref_id, $sort_mode, ilObject\_getAllReferences(), ilObject\_lookupObjId(), ilObject\_lookupType(), _readSortMode(), ilContainer\SORT_INHERIT, and ilContainer\SORT_TITLE.
Referenced by _lookupSortMode(), and ilContainerGUI\initSortingForm().
|
protected |
read settings
private
Definition at line 332 of file class.ilContainerSortingSettings.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
ilContainerSortingSettings::save | ( | ) |
save settings
public
Definition at line 297 of file class.ilContainerSortingSettings.php.
References $ilDB, $query, and $res.
Referenced by update().
ilContainerSortingSettings::setSortDirection | ( | $a_direction | ) |
Set sort direction.
type | $a_direction |
Definition at line 251 of file class.ilContainerSortingSettings.php.
ilContainerSortingSettings::setSortMode | ( | $a_mode | ) |
set sort mode
public
int | MODE_TITLE | MODE_MANUAL | MODE_ACTIVATION |
Definition at line 242 of file class.ilContainerSortingSettings.php.
Referenced by ilObjFolderGUI\afterSave(), ilObjCategoryGUI\afterSave(), ilContainer\cloneObject(), ilObjGroupGUI\saveObject(), ilObjLinkResourceGUI\saveSettings(), and ilContainerGUI\saveSortingSettings().
ilContainerSortingSettings::setSortNewItemsOrder | ( | $a_order | ) |
SET new item order.
int | $a_order |
Definition at line 269 of file class.ilContainerSortingSettings.php.
ilContainerSortingSettings::setSortNewItemsPosition | ( | $a_position | ) |
SET new item position.
int | $a_position |
Definition at line 260 of file class.ilContainerSortingSettings.php.
|
static |
get String representation of sort mode
int | $a_sort_mode |
Definition at line 358 of file class.ilContainerSortingSettings.php.
References $lng, ilContainer\SORT_ACTIVATION, ilContainer\SORT_CREATION, ilContainer\SORT_MANUAL, and ilContainer\SORT_TITLE.
ilContainerSortingSettings::update | ( | ) |
Update.
public
Definition at line 280 of file class.ilContainerSortingSettings.php.
References $ilDB, $query, $res, and save().
|
protected |
Definition at line 45 of file class.ilContainerSortingSettings.php.
|
staticprivate |
Definition at line 37 of file class.ilContainerSortingSettings.php.
|
protected |
Definition at line 43 of file class.ilContainerSortingSettings.php.
Referenced by getSortNewItemsOrder().
|
protected |
Definition at line 42 of file class.ilContainerSortingSettings.php.
Referenced by getSortNewItemsPosition().
|
protected |
Definition at line 39 of file class.ilContainerSortingSettings.php.
Referenced by _exportContainerSortingSettings(), and _importContainerSortingSettings().
|
protected |
Definition at line 41 of file class.ilContainerSortingSettings.php.
|
protected |
Definition at line 40 of file class.ilContainerSortingSettings.php.
Referenced by lookupSortModeFromParentContainer().