ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Public Member Functions | |
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) | |
renderSingleCustomBlock ($a_id) | |
renderDetails (ilTemplate $a_tpl) | |
Protected Member Functions | |
getViewMode () | |
processBlockPositions () | |
renderHelperCustomBlock (ilTemplate $a_block_tpl, $a_block_id, bool $a_is_single=false) | |
renderHelperTypeBlock (ilTemplate $a_block_tpl, string $a_type, bool $a_is_single=false) | |
renderHelperGeneric (ilTemplate $a_block_tpl, $a_block_id, array $a_block, bool $a_is_single=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... | |
Protected Attributes | |
const | UNIQUE_SEPARATOR = "-" |
bool | $admin_panel |
ilLanguage | $lng |
ilSetting | $settings |
ilObjectDefinition | $obj_definition |
ilContainerGUI | $container_gui |
bool | $enable_manage_select_all |
bool | $enable_multi_download |
bool | $active_block_ordering |
array | $type_blocks = [] |
array | $custom_blocks = [] |
array | $items = [] |
array | $hidden_items = [] |
array | $block_items = [] |
array | $details = [] |
array | $item_ids = [] |
array | $rendered_blocks = [] |
int | $bl_cnt = 0 |
array | $block_pos = [] |
array | $block_custom_pos = [] |
int | $order_cnt = 0 |
array | $show_more = [] |
int | $view_mode |
ILIAS DI UIServices | $ui |
ilCtrl | $ctrl |
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 123 of file class.ilContainerRenderer.php.
References hasCustomBlock().
ilContainerRenderer::addDetailsLevel | ( | int | $a_level, |
string | $a_url, | ||
bool | $a_active = false |
||
) |
Definition at line 281 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 602 of file class.ilContainerRenderer.php.
References $ilSetting, $lng, $obj_definition, $settings, $type, 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().
ilContainerRenderer::addItemId | ( | $a_item_id | ) |
mixed | $a_item_id |
Definition at line 267 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 229 of file class.ilContainerRenderer.php.
References addItemId(), hasItem(), and isValidBlock().
|
protected |
Definition at line 717 of file class.ilContainerRenderer.php.
References ilTemplate\parseCurrentBlock(), and ilTemplate\setCurrentBlock().
Referenced by getHTML().
ilContainerRenderer::addShowMoreButton | ( | $a_block_id | ) |
Add show more button to a block.
mixed | $a_block_id |
Definition at line 276 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 682 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 98 of file class.ilContainerRenderer.php.
References hasTypeBlock().
|
protected |
Get downloadable repository object types.
Definition at line 726 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow().
ilContainerRenderer::getHTML | ( | ) |
Definition at line 314 of file class.ilContainerRenderer.php.
References $valid, addSeparatorRow(), initBlockTemplate(), processBlockPositions(), renderDetails(), renderHelperCustomBlock(), and renderHelperTypeBlock().
|
protected |
Definition at line 89 of file class.ilContainerRenderer.php.
References $view_mode.
Referenced by renderHelperGeneric().
ilContainerRenderer::hasCustomBlock | ( | $a_id | ) |
Custom block already exists?
mixed | $a_id |
Definition at line 144 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 216 of file class.ilContainerRenderer.php.
Referenced by addItemToBlock(), and removeItem().
ilContainerRenderer::hasTypeBlock | ( | string | $a_type | ) |
Definition at line 114 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 169 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 592 of file class.ilContainerRenderer.php.
Referenced by getHTML(), renderSingleCustomBlock(), and renderSingleTypeBlock().
ilContainerRenderer::isValidBlock | ( | $a_id | ) |
Any block with id exists?
mixed | $a_id |
Definition at line 153 of file class.ilContainerRenderer.php.
References hasCustomBlock(), and hasTypeBlock().
Referenced by addItemToBlock(), processBlockPositions(), and setBlockPosition().
|
protected |
Definition at line 373 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 182 of file class.ilContainerRenderer.php.
References $parts, and hasItem().
ilContainerRenderer::renderDetails | ( | ilTemplate | $a_tpl | ) |
Definition at line 731 of file class.ilContainerRenderer.php.
References $lng, ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), and ilLanguage\txt().
Referenced by getHTML().
|
protected |
mixed | $a_block_id |
Definition at line 423 of file class.ilContainerRenderer.php.
References hasCustomBlock(), and renderHelperGeneric().
Referenced by getHTML(), and renderSingleCustomBlock().
|
protected |
mixed | $a_block_id |
Definition at line 450 of file class.ilContainerRenderer.php.
References $active_block_ordering, $admin_panel, $ctrl, Vendor\Package\$f, $id, $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 434 of file class.ilContainerRenderer.php.
References hasTypeBlock(), and renderHelperGeneric().
Referenced by getHTML(), and renderSingleTypeBlock().
|
protected |
Render "select all".
Definition at line 705 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 358 of file class.ilContainerRenderer.php.
References initBlockTemplate(), and renderHelperCustomBlock().
ilContainerRenderer::renderSingleTypeBlock | ( | string | $a_type | ) |
Definition at line 345 of file class.ilContainerRenderer.php.
References initBlockTemplate(), and renderHelperTypeBlock().
ilContainerRenderer::resetDetails | ( | ) |
Definition at line 292 of file class.ilContainerRenderer.php.
ilContainerRenderer::setBlockPosition | ( | $a_block_id, | |
int | $a_pos | ||
) |
mixed | $a_block_id |
Definition at line 305 of file class.ilContainerRenderer.php.
References isValidBlock().
|
protected |
Definition at line 37 of file class.ilContainerRenderer.php.
Referenced by renderHelperGeneric().
|
protected |
Definition at line 27 of file class.ilContainerRenderer.php.
Referenced by renderHelperGeneric().
|
protected |
Definition at line 50 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 54 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 44 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 53 of file class.ilContainerRenderer.php.
Referenced by processBlockPositions().
|
protected |
Definition at line 32 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 60 of file class.ilContainerRenderer.php.
Referenced by renderHelperGeneric().
|
protected |
Definition at line 41 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 45 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 35 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 36 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 43 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 46 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 42 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 29 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow(), renderDetails(), and renderSelectAllBlock().
|
protected |
Definition at line 31 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow().
|
protected |
Definition at line 55 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 49 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 30 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow().
|
protected |
Definition at line 57 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 40 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 59 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 58 of file class.ilContainerRenderer.php.
Referenced by getViewMode().
|
protected |
Definition at line 26 of file class.ilContainerRenderer.php.