ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
setBlockPrefixClosure (Closure $f) | |
setBlockPostfixClosure (Closure $f) | |
setItemHiddenClosure (Closure $f) | |
addTypeBlock (string $a_type, ?string $a_prefix=null, ?string $a_postfix=null) | |
hasTypeBlock (string $a_type) | |
addCustomBlock ( $a_id, string $a_caption, ?string $a_actions=null, array $a_data=[]) | |
Add custom block. More... | |
hasCustomBlock ($a_id) | |
Custom block already exists? More... | |
isValidBlock ($a_id) | |
Any block with id exists? More... | |
hideItem ($a_id) | |
Mark item id as used, but do not render. More... | |
removeItem ($a_id) | |
Remove item (from any block) More... | |
hasItem ($a_id) | |
Item with id exists? More... | |
addItemToBlock ( $a_block_id, string $a_item_type, $a_item_id, $a_item_html, bool $a_force=false) | |
Add item to existing block. More... | |
addItemId ($a_item_id) | |
addShowMoreButton ($a_block_id) | |
Add show more button to a block. More... | |
addDetailsLevel (int $a_level, string $a_url, bool $a_active=false) | |
resetDetails () | |
setBlockPosition ( $a_block_id, int $a_pos) | |
getHTML () | |
renderSingleTypeBlock (string $a_type, bool $exhausted=false) | |
renderSingleCustomBlock ($a_id) | |
renderDetails (ilTemplate $a_tpl) | |
getItemRenderer () | |
Render Item Block Sequence. More... | |
renderItemBlockSequence (\ILIAS\Container\Content\ItemBlock\ItemBlockSequence $sequence) | |
Protected Member Functions | |
getViewMode () | |
processBlockPositions () | |
renderHelperCustomBlock (ilTemplate $a_block_tpl, $a_block_id, bool $a_is_single=false, bool $is_exhausted=false) | |
renderHelperTypeBlock (ilTemplate $a_block_tpl, string $a_type, bool $a_is_single=false, bool $is_exhausted=false) | |
getViewModeOfItemGroup (int $ref_id) | |
getListPresentationOfItemGroup (int $ref_id) | |
renderHelperGeneric (ilTemplate $a_block_tpl, $a_block_id, array $a_block, bool $a_is_single=false, bool $is_exhausted=false) | |
initBlockTemplate () | |
addHeaderRow (ilTemplate $a_tpl, string $a_type="", string $a_text="", ?array $a_types_in_block=null, string $a_commands_html="", string $a_order_id="", array $a_data=[]) | |
Render block header. More... | |
addStandardRow (ilTemplate $a_tpl, string $a_html, int $a_ref_id=0) | |
renderSelectAllBlock (ilTemplate $a_tpl) | |
Render "select all". More... | |
addSeparatorRow (ilTemplate $a_tpl) | |
getDownloadableTypes () | |
Get downloadable repository object types. More... | |
renderContainerPage () | |
getDetailsLevel (int $a_item_id) | |
addItemGroupBlock (string $block_id, int $block_pos=0) | |
replaces ilContainerContentGUI::renderItemGroup More... | |
getBlockPrefix ($block_id) | |
getBlockPostfix ($block_id) | |
isItemHidden (string $block_id, int $ref_id) | |
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 Class ilContainerRenderer
Definition at line 24 of file class.ilContainerRenderer.php.
ilContainerRenderer::addCustomBlock | ( | $a_id, | |
string | $a_caption, | ||
?string | $a_actions = null , |
||
array | $a_data = [] |
||
) |
Add custom block.
mixed | $a_id |
Definition at line 182 of file class.ilContainerRenderer.php.
References hasCustomBlock().
Referenced by addItemGroupBlock(), and renderItemBlockSequence().
ilContainerRenderer::addDetailsLevel | ( | int | $a_level, |
string | $a_url, | ||
bool | $a_active = false |
||
) |
Definition at line 339 of file class.ilContainerRenderer.php.
|
protected |
Render block header.
string | $a_order_id | item group id or type, e.g. "crs" |
ilTemplateException |
Definition at line 677 of file class.ilContainerRenderer.php.
References $ilSetting, $lng, $obj_definition, $settings, ilItemGroupBehaviour\EXPANDABLE_CLOSED, getDownloadableTypes(), ilUtil\getImagePath(), ilObjectPlugin\getPluginObjectByType(), ILIAS\Repository\lng(), ilTemplate\parseCurrentBlock(), renderSelectAllBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), ilTemplate\touchBlock(), and ilLanguage\txt().
Referenced by renderHelperGeneric().
|
protected |
replaces ilContainerContentGUI::renderItemGroup
Definition at line 1049 of file class.ilContainerRenderer.php.
References $data, addCustomBlock(), ilItemGroupBehaviour\ALWAYS_OPEN, ilItemGroupBehaviour\EXPANDABLE_CLOSED, ilItemGroupBehaviour\EXPANDABLE_OPEN, ilObjItemGroup\lookupHideTitle(), and ILIAS\Repository\user().
Referenced by renderItemBlockSequence().
ilContainerRenderer::addItemId | ( | $a_item_id | ) |
mixed | $a_item_id |
Definition at line 325 of file class.ilContainerRenderer.php.
Referenced by addItemToBlock().
ilContainerRenderer::addItemToBlock | ( | $a_block_id, | |
string | $a_item_type, | ||
$a_item_id, | |||
$a_item_html, | |||
bool | $a_force = false |
||
) |
Add item to existing block.
mixed | $a_block_id | |
mixed | $a_item_id | |
mixed | $a_item_html |
Definition at line 288 of file class.ilContainerRenderer.php.
References addItemId(), hasItem(), and isValidBlock().
Referenced by renderItemBlockSequence().
|
protected |
Definition at line 792 of file class.ilContainerRenderer.php.
References ilTemplate\parseCurrentBlock(), and ilTemplate\setCurrentBlock().
Referenced by getHTML(), and renderItemBlockSequence().
ilContainerRenderer::addShowMoreButton | ( | $a_block_id | ) |
Add show more button to a block.
mixed | $a_block_id |
Definition at line 334 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 757 of file class.ilContainerRenderer.php.
References ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), and ilTemplate\touchBlock().
Referenced by renderHelperGeneric().
ilContainerRenderer::addTypeBlock | ( | string | $a_type, |
?string | $a_prefix = null , |
||
?string | $a_postfix = null |
||
) |
Definition at line 157 of file class.ilContainerRenderer.php.
References hasTypeBlock().
Referenced by renderItemBlockSequence().
|
protected |
Definition at line 1134 of file class.ilContainerRenderer.php.
References $block_postfix_closure, and $c.
Referenced by renderItemBlockSequence().
|
protected |
Definition at line 1125 of file class.ilContainerRenderer.php.
References $block_prefix_closure, and $c.
Referenced by renderItemBlockSequence().
|
protected |
Definition at line 831 of file class.ilContainerRenderer.php.
References ilContainerContentGUI\DETAILS_DEACTIVATED, ilContainerContentGUI\DETAILS_TITLE, and null.
Referenced by renderItemBlockSequence().
|
protected |
Get downloadable repository object types.
Definition at line 801 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow().
ilContainerRenderer::getHTML | ( | ) |
Definition at line 372 of file class.ilContainerRenderer.php.
References $valid, addSeparatorRow(), initBlockTemplate(), processBlockPositions(), renderDetails(), renderHelperCustomBlock(), and renderHelperTypeBlock().
ilContainerRenderer::getItemRenderer | ( | ) |
Render Item Block Sequence.
Definition at line 821 of file class.ilContainerRenderer.php.
References $item_renderer.
|
protected |
Definition at line 518 of file class.ilContainerRenderer.php.
Referenced by renderItemBlockSequence().
|
protected |
Definition at line 148 of file class.ilContainerRenderer.php.
References $view_mode.
Referenced by renderHelperGeneric().
|
protected |
Definition at line 506 of file class.ilContainerRenderer.php.
References $view_mode, ilContainerContentGUI\VIEW_MODE_LIST, and ilContainerContentGUI\VIEW_MODE_TILE.
ilContainerRenderer::hasCustomBlock | ( | $a_id | ) |
Custom block already exists?
mixed | $a_id |
Definition at line 203 of file class.ilContainerRenderer.php.
Referenced by addCustomBlock(), isValidBlock(), and renderHelperCustomBlock().
ilContainerRenderer::hasItem | ( | $a_id | ) |
Item with id exists?
mixed | $a_id |
Definition at line 275 of file class.ilContainerRenderer.php.
Referenced by addItemToBlock(), and removeItem().
ilContainerRenderer::hasTypeBlock | ( | string | $a_type | ) |
Definition at line 173 of file class.ilContainerRenderer.php.
Referenced by addTypeBlock(), isValidBlock(), and renderHelperTypeBlock().
ilContainerRenderer::hideItem | ( | $a_id | ) |
Mark item id as used, but do not render.
mixed | $a_id |
Definition at line 228 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 667 of file class.ilContainerRenderer.php.
Referenced by getHTML(), renderItemBlockSequence(), renderSingleCustomBlock(), and renderSingleTypeBlock().
|
protected |
Definition at line 1143 of file class.ilContainerRenderer.php.
References $c, and $item_hidden_closure.
Referenced by renderItemBlockSequence().
ilContainerRenderer::isValidBlock | ( | $a_id | ) |
Any block with id exists?
mixed | $a_id |
Definition at line 212 of file class.ilContainerRenderer.php.
References hasCustomBlock(), and hasTypeBlock().
Referenced by addItemToBlock(), processBlockPositions(), and setBlockPosition().
|
protected |
Definition at line 430 of file class.ilContainerRenderer.php.
References $block_pos, and isValidBlock().
Referenced by getHTML().
ilContainerRenderer::removeItem | ( | $a_id | ) |
Remove item (from any block)
mixed | $a_id |
Definition at line 241 of file class.ilContainerRenderer.php.
References $parts, and hasItem().
|
protected |
Definition at line 826 of file class.ilContainerRenderer.php.
Referenced by renderItemBlockSequence().
ilContainerRenderer::renderDetails | ( | ilTemplate | $a_tpl | ) |
Definition at line 806 of file class.ilContainerRenderer.php.
References $lng, ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), and ilLanguage\txt().
Referenced by getHTML(), and renderItemBlockSequence().
|
protected |
mixed | $a_block_id |
Definition at line 480 of file class.ilContainerRenderer.php.
References hasCustomBlock(), and renderHelperGeneric().
Referenced by getHTML(), renderItemBlockSequence(), and renderSingleCustomBlock().
|
protected |
mixed | $a_block_id |
Definition at line 527 of file class.ilContainerRenderer.php.
References $active_block_ordering, $admin_panel, $ctrl, Vendor\Package\$f, $id, $renderer, $url, ilContainer\_lookupContainerSetting(), addHeaderRow(), addStandardRow(), ilCtrl\getLinkTarget(), getViewMode(), ilCtrl\isAsynch(), ILIAS\Repository\lng(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), ilCtrl\setParameter(), HTML_Template_IT\setVariable(), ilContainer\TILE_EXTRA_LARGE, ilContainer\TILE_FULL, ilContainer\TILE_LARGE, ilContainer\TILE_SMALL, ILIAS\Repository\ui(), ilContainerContentGUI\VIEW_MODE_LIST, ilContainerContentGUI\VIEW_MODE_TILE, and ILIAS\UI\Implementation\Component\Button\withLoadingAnimationOnClick().
Referenced by renderHelperCustomBlock(), and renderHelperTypeBlock().
|
protected |
Definition at line 492 of file class.ilContainerRenderer.php.
References hasTypeBlock(), and renderHelperGeneric().
Referenced by getHTML(), renderItemBlockSequence(), and renderSingleTypeBlock().
ilContainerRenderer::renderItemBlockSequence | ( | \ILIAS\Container\Content\ItemBlock\ItemBlockSequence | $sequence | ) |
Definition at line 845 of file class.ilContainerRenderer.php.
References $id, $ref_id, $valid, ilObject\_lookupObjId(), ILIAS\Repository\access(), addCustomBlock(), addItemGroupBlock(), addItemToBlock(), addSeparatorRow(), addTypeBlock(), ILIAS\Containter\Content\ItemRenderer\CHECKBOX_ADMIN, ILIAS\Containter\Content\ItemRenderer\CHECKBOX_DOWNLOAD, ILIAS\Containter\Content\ItemRenderer\CHECKBOX_NONE, ilObjectListGUI\CONTEXT_REPOSITORY, getBlockPostfix(), getBlockPrefix(), getDetailsLevel(), ilObjectActivation\getItemsByEvent(), getListPresentationOfItemGroup(), initBlockTemplate(), isItemHidden(), ILIAS\Repository\lng(), renderContainerPage(), renderDetails(), renderHelperCustomBlock(), renderHelperTypeBlock(), renderSingleCustomBlock(), and renderSingleTypeBlock().
|
protected |
Render "select all".
Definition at line 780 of file class.ilContainerRenderer.php.
References $lng, ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), and ilLanguage\txt().
Referenced by addHeaderRow().
ilContainerRenderer::renderSingleCustomBlock | ( | $a_id | ) |
mixed | $a_id |
Definition at line 415 of file class.ilContainerRenderer.php.
References initBlockTemplate(), and renderHelperCustomBlock().
Referenced by renderItemBlockSequence().
ilContainerRenderer::renderSingleTypeBlock | ( | string | $a_type, |
bool | $exhausted = false |
||
) |
Definition at line 403 of file class.ilContainerRenderer.php.
References initBlockTemplate(), and renderHelperTypeBlock().
Referenced by renderItemBlockSequence().
ilContainerRenderer::resetDetails | ( | ) |
Definition at line 350 of file class.ilContainerRenderer.php.
ilContainerRenderer::setBlockPosition | ( | $a_block_id, | |
int | $a_pos | ||
) |
mixed | $a_block_id |
Definition at line 363 of file class.ilContainerRenderer.php.
References isValidBlock().
ilContainerRenderer::setBlockPostfixClosure | ( | Closure | $f | ) |
ilContainerRenderer::setBlockPrefixClosure | ( | Closure | $f | ) |
ilContainerRenderer::setItemHiddenClosure | ( | Closure | $f | ) |
|
protected |
Definition at line 28 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 43 of file class.ilContainerRenderer.php.
Referenced by renderHelperGeneric().
|
protected |
Definition at line 33 of file class.ilContainerRenderer.php.
Referenced by renderHelperGeneric().
|
protected |
Definition at line 56 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 60 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 50 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 59 of file class.ilContainerRenderer.php.
Referenced by processBlockPositions().
|
protected |
Definition at line 68 of file class.ilContainerRenderer.php.
Referenced by getBlockPostfix().
|
protected |
Definition at line 67 of file class.ilContainerRenderer.php.
Referenced by getBlockPrefix().
|
protected |
Definition at line 70 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 38 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 66 of file class.ilContainerRenderer.php.
Referenced by renderHelperGeneric().
|
protected |
Definition at line 47 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 51 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 41 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 42 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 49 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 69 of file class.ilContainerRenderer.php.
Referenced by isItemHidden().
|
protected |
Definition at line 52 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 27 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 32 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 31 of file class.ilContainerRenderer.php.
Referenced by getItemRenderer().
|
protected |
Definition at line 48 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 35 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow(), renderDetails(), and renderSelectAllBlock().
|
protected |
Definition at line 37 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow().
|
protected |
Definition at line 30 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 61 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 55 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 36 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow().
|
protected |
Definition at line 63 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 46 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 65 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 29 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 64 of file class.ilContainerRenderer.php.
Referenced by getViewMode(), and getViewModeOfItemGroup().
|
protected |
Definition at line 26 of file class.ilContainerRenderer.php.