ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Public Member Functions | |
__construct (\ilPageObject $page, ?ContentIdGeneratorInterface $generator=null) | |
addHierIDsToDom () | |
Add hierarchical ID (e.g. More... | |
getHierIds () | |
get all hierarchical ids More... | |
stripHierIDsFromDom () | |
generatePCId () | |
insertPCIds () | |
getDuplicatePCIds () | |
hasDuplicatePCIds () | |
stripPCIDs () | |
checkPCIds () | |
getAllPCIds () | |
getHierIdsForPCIds (array $a_pc_ids) | |
getHierIdForPcId (string $pcid) | |
getPCIdsForHierIds (array $hier_ids) | |
getPCIdForHierId (string $hier_id) | |
Protected Member Functions | |
incEdId (string $ed_id) | |
Increases an hierarchical editing id at lowest level (last number) More... | |
decEdId (string $ed_id) | |
Decreases an hierarchical editing id at lowest level (last number) More... | |
Protected Attributes | |
const | ID_ELEMENTS |
array | $hier_ids = [] |
ilPageObject | $page |
DomUtil | $dom_util |
ContentIdGenerator | $generator |
Definition at line 28 of file class.ContentIdManager.php.
ILIAS\COPage\ID\ContentIdManager::__construct | ( | \ilPageObject | $page, |
?ContentIdGeneratorInterface | $generator = null |
||
) |
Definition at line 46 of file class.ContentIdManager.php.
References $DIC, and ILIAS\COPage\ID\ContentIdManager\$page.
ILIAS\COPage\ID\ContentIdManager::addHierIDsToDom | ( | ) |
Add hierarchical ID (e.g.
for editing) attributes "HierId" to current dom tree. This attribute will be added to the following elements: PageObject, Paragraph, Table, TableRow, TableData. Only elements of these types are counted as "childs" here. Hierarchical IDs have the format "x_y_z_...", e.g. "1_4_2" means: second child of fourth child of first child of page. The PageObject element gets the special id "pg". The first child of the page starts with id 1. The next child gets the 2 and so on. Another example: The first child of the page is a Paragraph -> id 1. The second child is a table -> id 2. The first row gets the id 2_1, the
Definition at line 75 of file class.ContentIdManager.php.
References $path, and ILIAS\COPage\ID\ContentIdManager\incEdId().
ILIAS\COPage\ID\ContentIdManager::checkPCIds | ( | ) |
Definition at line 260 of file class.ContentIdManager.php.
References ILIAS\COPage\ID\ContentIdManager\$page, $path, and ilPageObject\buildDom().
|
protected |
Decreases an hierarchical editing id at lowest level (last number)
string | $ed_id | hierarchical ID |
Definition at line 180 of file class.ContentIdManager.php.
References $id.
ILIAS\COPage\ID\ContentIdManager::generatePCId | ( | ) |
Definition at line 187 of file class.ContentIdManager.php.
Referenced by ILIAS\COPage\ID\ContentIdManager\insertPCIds().
ILIAS\COPage\ID\ContentIdManager::getAllPCIds | ( | ) |
Definition at line 279 of file class.ContentIdManager.php.
References ILIAS\COPage\ID\ContentIdManager\$page, $path, and ilPageObject\buildDom().
ILIAS\COPage\ID\ContentIdManager::getDuplicatePCIds | ( | ) |
Definition at line 212 of file class.ContentIdManager.php.
References $path.
Referenced by ILIAS\COPage\ID\ContentIdManager\hasDuplicatePCIds().
ILIAS\COPage\ID\ContentIdManager::getHierIdForPcId | ( | string | $pcid | ) |
Definition at line 323 of file class.ContentIdManager.php.
References ILIAS\COPage\ID\ContentIdManager\getHierIdsForPCIds().
ILIAS\COPage\ID\ContentIdManager::getHierIds | ( | ) |
get all hierarchical ids
Definition at line 141 of file class.ContentIdManager.php.
References ILIAS\COPage\ID\ContentIdManager\$hier_ids.
ILIAS\COPage\ID\ContentIdManager::getHierIdsForPCIds | ( | array | $a_pc_ids | ) |
Definition at line 302 of file class.ContentIdManager.php.
References $path.
Referenced by ILIAS\COPage\ID\ContentIdManager\getHierIdForPcId().
ILIAS\COPage\ID\ContentIdManager::getPCIdForHierId | ( | string | $hier_id | ) |
Definition at line 351 of file class.ContentIdManager.php.
References ILIAS\COPage\ID\ContentIdManager\getPCIdsForHierIds().
ILIAS\COPage\ID\ContentIdManager::getPCIdsForHierIds | ( | array | $hier_ids | ) |
Definition at line 329 of file class.ContentIdManager.php.
References ILIAS\COPage\ID\ContentIdManager\$page, $path, and ilPageObject\getDomDoc().
Referenced by ILIAS\COPage\ID\ContentIdManager\getPCIdForHierId().
ILIAS\COPage\ID\ContentIdManager::hasDuplicatePCIds | ( | ) |
Definition at line 240 of file class.ContentIdManager.php.
References ILIAS\COPage\ID\ContentIdManager\getDuplicatePCIds().
|
protected |
Increases an hierarchical editing id at lowest level (last number)
string | $ed_id | hierarchical ID |
Definition at line 168 of file class.ContentIdManager.php.
References $id.
Referenced by ILIAS\COPage\ID\ContentIdManager\addHierIDsToDom().
ILIAS\COPage\ID\ContentIdManager::insertPCIds | ( | ) |
Definition at line 192 of file class.ContentIdManager.php.
References $id, $path, and ILIAS\COPage\ID\ContentIdManager\generatePCId().
ILIAS\COPage\ID\ContentIdManager::stripHierIDsFromDom | ( | ) |
ILIAS\COPage\ID\ContentIdManager::stripPCIDs | ( | ) |
|
protected |
Definition at line 43 of file class.ContentIdManager.php.
|
protected |
Definition at line 44 of file class.ContentIdManager.php.
|
protected |
Definition at line 41 of file class.ContentIdManager.php.
Referenced by ILIAS\COPage\ID\ContentIdManager\getHierIds().
|
protected |
Definition at line 42 of file class.ContentIdManager.php.
Referenced by ILIAS\COPage\ID\ContentIdManager\__construct(), ILIAS\COPage\ID\ContentIdManager\checkPCIds(), ILIAS\COPage\ID\ContentIdManager\getAllPCIds(), and ILIAS\COPage\ID\ContentIdManager\getPCIdsForHierIds().
|
protected |
Definition at line 30 of file class.ContentIdManager.php.