ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct () | |
ilAdvancedMDRecordObjectOrderings constructor. More... | |
deleteByObjId (int $obj_id) | |
Delete entries by obj_id. More... | |
sortRecords (array $records, int $obj_id=null) | |
compareRecords (\ilAdvancedMDRecord $a, \ilAdvancedMDRecord $b) | |
compareLocalRecords (\ilAdvancedMDRecord $a, \ilAdvancedMDRecord $b) | |
Protected Member Functions | |
readPositionsForObject (int $obj_id) | |
Read local positions for object. More... | |
Private Attributes | |
$db | |
$record_position_map = [] | |
Definition at line 10 of file class.ilAdvancedMDRecordObjectOrderings.php.
ilAdvancedMDRecordObjectOrderings::__construct | ( | ) |
ilAdvancedMDRecordObjectOrderings constructor.
Definition at line 25 of file class.ilAdvancedMDRecordObjectOrderings.php.
References $DIC.
ilAdvancedMDRecordObjectOrderings::compareLocalRecords | ( | \ilAdvancedMDRecord | $a, |
\ilAdvancedMDRecord | $b | ||
) |
ilAdvancedMDRecord | $a | |
ilAdvancedMDRecord | $b |
Definition at line 117 of file class.ilAdvancedMDRecordObjectOrderings.php.
References ilAdvancedMDRecord\getGlobalPosition(), and ilAdvancedMDRecord\getRecordId().
ilAdvancedMDRecordObjectOrderings::compareRecords | ( | \ilAdvancedMDRecord | $a, |
\ilAdvancedMDRecord | $b | ||
) |
\ilAdvancedMDRecord | $a | |
\ilAdvancedMDRecord | $b |
Definition at line 92 of file class.ilAdvancedMDRecordObjectOrderings.php.
References ilAdvancedMDRecord\getGlobalPosition(), and ilAdvancedMDRecord\setGlobalPosition().
ilAdvancedMDRecordObjectOrderings::deleteByObjId | ( | int | $obj_id | ) |
Delete entries by obj_id.
int | $obj_id |
Definition at line 39 of file class.ilAdvancedMDRecordObjectOrderings.php.
References $query.
|
protected |
Read local positions for object.
int | $obj_id |
Definition at line 149 of file class.ilAdvancedMDRecordObjectOrderings.php.
References $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by sortRecords().
ilAdvancedMDRecordObjectOrderings::sortRecords | ( | array | $records, |
int | $obj_id = null |
||
) |
array | $records | |
int | obj_id |
Definition at line 51 of file class.ilAdvancedMDRecordObjectOrderings.php.
References $records, ilContainer\_lookupContainerSetting(), ilObjectServiceSettingsGUI\CUSTOM_METADATA, and readPositionsForObject().
|
private |
Definition at line 15 of file class.ilAdvancedMDRecordObjectOrderings.php.
|
private |
Definition at line 20 of file class.ilAdvancedMDRecordObjectOrderings.php.