ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilContainerRenderer. More...
Public Member Functions | |
__construct ($a_enable_manage_select_all=false, $a_enable_multi_download=false, $a_active_block_ordering=false, $a_block_custom_positions, $container_gui_obj, $a_view_mode=ilContainerContentGUI::VIEW_MODE_LIST) | |
Constructor. More... | |
addTypeBlock ($a_type, $a_prefix=null, $a_postfix=null) | |
Add type block. More... | |
hasTypeBlock ($a_type) | |
Type block already exists? More... | |
addCustomBlock ($a_id, $a_caption, $a_actions=null, $a_data=array()) | |
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, $a_item_type, $a_item_id, $a_item_html, $a_force=false) | |
Add item to existing block. More... | |
addShowMoreButton ($a_block_id) | |
Add show more button to a block. More... | |
addDetailsLevel ($a_level, $a_url, $a_active=false) | |
Add details level. More... | |
resetDetails () | |
Reset/remove all detail levels. More... | |
setBlockPosition ($a_block_id, $a_pos) | |
Set block position. More... | |
getHTML () | |
Get rendered html (of all blocks) More... | |
renderSingleTypeBlock ($a_type) | |
Get rendered html of single type block. More... | |
renderSingleCustomBlock ($a_id) | |
Get rendered html of single custom block. More... | |
renderDetails (ilTemplate $a_tpl) | |
Render detail level. More... | |
Data Fields | |
const | UNIQUE_SEPARATOR = "-" |
Protected Member Functions | |
getViewMode () | |
Get view mode. More... | |
processBlockPositions () | |
Process block positions. More... | |
renderHelperCustomBlock (ilTemplate $a_block_tpl, $a_block_id, $a_is_single=false) | |
Render custom block. More... | |
renderHelperTypeBlock (ilTemplate $a_block_tpl, $a_type, $a_is_single=false) | |
Render type block. More... | |
renderHelperGeneric (ilTemplate $a_block_tpl, $a_block_id, array $a_block, $a_is_single=false) | |
Render block. More... | |
initBlockTemplate () | |
Init template. More... | |
addHeaderRow (ilTemplate $a_tpl, $a_type="", $a_text="", array $a_types_in_block=null, $a_commands_html=null, $a_order_id=null, $a_data=array()) | |
Render block header. More... | |
addStandardRow (ilTemplate $a_tpl, $a_html, $a_ref_id=0) | |
Render item row. More... | |
renderSelectAllBlock (ilTemplate $a_tpl) | |
Render "select all". More... | |
addSeparatorRow (ilTemplate $a_tpl) | |
Render separator row. More... | |
resetRowType () | |
Reset internal row type. More... | |
getDownloadableTypes () | |
Get downloadable repository object types. More... | |
Protected Attributes | |
$lng | |
$settings | |
$obj_definition | |
$enable_manage_select_all | |
$enable_multi_download | |
$active_block_ordering | |
$type_blocks = array() | |
$custom_blocks = array() | |
$items = array() | |
$hidden_items = array() | |
$block_items = array() | |
$details = array() | |
$item_ids = array() | |
$rendered_blocks = array() | |
$bl_cnt = 0 | |
$cur_row_type | |
$block_pos = array() | |
$block_custom_pos = array() | |
$order_cnt = 0 | |
$show_more = [] | |
$view_mode | |
$ui | |
$ctrl | |
Class ilContainerRenderer.
Definition at line 11 of file class.ilContainerRenderer.php.
ilContainerRenderer::__construct | ( | $a_enable_manage_select_all = false , |
|
$a_enable_multi_download = false , |
|||
$a_active_block_ordering = false , |
|||
$a_block_custom_positions, | |||
$container_gui_obj, | |||
$a_view_mode = ilContainerContentGUI::VIEW_MODE_LIST |
|||
) |
Constructor.
bool | $a_enable_manage_select_all | |
bool | $a_enable_multi_download | |
bool | $a_active_block_ordering | |
array | $a_block_custom_positions |
Definition at line 82 of file class.ilContainerRenderer.php.
References $DIC, and settings().
ilContainerRenderer::addCustomBlock | ( | $a_id, | |
$a_caption, | |||
$a_actions = null , |
|||
$a_data = array() |
|||
) |
Add custom block.
mixed | $a_id | |
string | $a_caption | |
string | $a_actions | html snippet |
Definition at line 152 of file class.ilContainerRenderer.php.
References hasCustomBlock().
ilContainerRenderer::addDetailsLevel | ( | $a_level, | |
$a_url, | |||
$a_active = false |
|||
) |
Add details level.
int | $a_level | |
string | $a_url | |
bool | $a_active |
Definition at line 307 of file class.ilContainerRenderer.php.
|
protected |
Render block header.
ilTemplate | $a_tpl | |
string | $a_type | |
string | $a_text | |
array | $a_types_in_block | |
string | $a_commands_html | |
int | $a_order_id |
Definition at line 622 of file class.ilContainerRenderer.php.
References $a_type, $ilSetting, $lng, $obj_definition, $settings, $title, $type, ilItemGroupBehaviour\EXPANDABLE_CLOSED, getDownloadableTypes(), ilUtil\getImagePath(), ilObjectPlugin\getPluginObjectByType(), ilTemplate\parseCurrentBlock(), renderSelectAllBlock(), resetRowType(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), and ilTemplate\touchBlock().
Referenced by renderHelperGeneric().
ilContainerRenderer::addItemToBlock | ( | $a_block_id, | |
$a_item_type, | |||
$a_item_id, | |||
$a_item_html, | |||
$a_force = false |
|||
) |
Add item to existing block.
mixed | $a_block_id | |
string | $a_item_type | repository object type |
mixed | $a_item_id | |
string | $a_item_html | html snippet |
bool | $a_force | enable multiple rendering |
Definition at line 262 of file class.ilContainerRenderer.php.
References hasItem(), and isValidBlock().
|
protected |
Render separator row.
ilTemplate | $a_tpl |
Definition at line 744 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.
Definition at line 295 of file class.ilContainerRenderer.php.
|
protected |
Render item row.
ilTemplate | $a_tpl | |
string | $a_html | |
int | $a_ref_id |
Definition at line 702 of file class.ilContainerRenderer.php.
References ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), and ilTemplate\touchBlock().
Referenced by renderHelperGeneric().
ilContainerRenderer::addTypeBlock | ( | $a_type, | |
$a_prefix = null , |
|||
$a_postfix = null |
|||
) |
Add type block.
string | $a_type | repository object type |
string | $a_prefix | html snippet |
string | $a_postfix | html snippet |
Definition at line 120 of file class.ilContainerRenderer.php.
References $a_type, and hasTypeBlock().
|
protected |
Get downloadable repository object types.
Definition at line 764 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow().
ilContainerRenderer::getHTML | ( | ) |
Get rendered html (of all blocks)
Definition at line 346 of file class.ilContainerRenderer.php.
References $valid, addSeparatorRow(), initBlockTemplate(), processBlockPositions(), renderDetails(), renderHelperCustomBlock(), and renderHelperTypeBlock().
|
protected |
Get view mode.
Definition at line 103 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 171 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 246 of file class.ilContainerRenderer.php.
Referenced by addItemToBlock(), and removeItem().
ilContainerRenderer::hasTypeBlock | ( | $a_type | ) |
Type block already exists?
string | $a_type | repository object type |
Definition at line 139 of file class.ilContainerRenderer.php.
References $a_type.
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 198 of file class.ilContainerRenderer.php.
|
protected |
Init template.
Definition at line 604 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 182 of file class.ilContainerRenderer.php.
References hasCustomBlock(), and hasTypeBlock().
Referenced by addItemToBlock(), processBlockPositions(), and setBlockPosition().
|
protected |
Process block positions.
Definition at line 414 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 212 of file class.ilContainerRenderer.php.
References $items, and hasItem().
ilContainerRenderer::renderDetails | ( | ilTemplate | $a_tpl | ) |
Render detail level.
ilTemplate | $a_tpl |
Definition at line 774 of file class.ilContainerRenderer.php.
References $lng, ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by getHTML().
|
protected |
Render custom block.
ilTemplate | $a_block_tpl | |
mixed | $a_block_id | |
bool | $a_is_single |
Definition at line 470 of file class.ilContainerRenderer.php.
References hasCustomBlock(), and renderHelperGeneric().
Referenced by getHTML(), and renderSingleCustomBlock().
|
protected |
Render block.
ilTemplate | $a_block_tpl | |
mixed | $a_block_id | |
array | $a_block | block properties |
bool | $a_is_single |
Definition at line 505 of file class.ilContainerRenderer.php.
References $active_block_ordering, $ctrl, $f, $html, $id, $url, addHeaderRow(), addStandardRow(), getViewMode(), ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), HTML_Template_IT\setVariable(), ilContainerContentGUI\VIEW_MODE_LIST, ilContainerContentGUI\VIEW_MODE_TILE, and ILIAS\UI\Implementation\Component\withLoadingAnimationOnClick().
Referenced by renderHelperCustomBlock(), and renderHelperTypeBlock().
|
protected |
Render type block.
ilTemplate | $a_block_tpl | |
string | $a_type | repository object type |
bool | $a_is_single |
Definition at line 486 of file class.ilContainerRenderer.php.
References $a_type, hasTypeBlock(), and renderHelperGeneric().
Referenced by getHTML(), and renderSingleTypeBlock().
|
protected |
Render "select all".
Definition at line 727 of file class.ilContainerRenderer.php.
References $lng, ilTemplate\parseCurrentBlock(), ilTemplate\setCurrentBlock(), and HTML_Template_IT\setVariable().
Referenced by addHeaderRow().
ilContainerRenderer::renderSingleCustomBlock | ( | $a_id | ) |
Get rendered html of single custom block.
mixed | $a_id |
Definition at line 395 of file class.ilContainerRenderer.php.
References initBlockTemplate(), and renderHelperCustomBlock().
ilContainerRenderer::renderSingleTypeBlock | ( | $a_type | ) |
Get rendered html of single type block.
string | $a_type | repository object type |
Definition at line 380 of file class.ilContainerRenderer.php.
References $a_type, initBlockTemplate(), and renderHelperTypeBlock().
ilContainerRenderer::resetDetails | ( | ) |
Reset/remove all detail levels.
Definition at line 318 of file class.ilContainerRenderer.php.
|
protected |
Reset internal row type.
Definition at line 753 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow().
ilContainerRenderer::setBlockPosition | ( | $a_block_id, | |
$a_pos | |||
) |
Set block position.
mixed | $a_block_id | |
int | $a_pos |
Definition at line 334 of file class.ilContainerRenderer.php.
References isValidBlock().
|
protected |
Definition at line 31 of file class.ilContainerRenderer.php.
Referenced by renderHelperGeneric().
|
protected |
Definition at line 44 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 49 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 38 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 48 of file class.ilContainerRenderer.php.
Referenced by processBlockPositions().
|
protected |
Definition at line 72 of file class.ilContainerRenderer.php.
Referenced by renderHelperGeneric().
|
protected |
Definition at line 45 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 35 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 39 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 29 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 30 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 37 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 40 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 36 of file class.ilContainerRenderer.php.
Referenced by removeItem().
|
protected |
Definition at line 16 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow(), renderDetails(), and renderSelectAllBlock().
|
protected |
Definition at line 26 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow().
|
protected |
Definition at line 50 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 43 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 21 of file class.ilContainerRenderer.php.
Referenced by addHeaderRow().
|
protected |
Definition at line 55 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 34 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 67 of file class.ilContainerRenderer.php.
|
protected |
Definition at line 62 of file class.ilContainerRenderer.php.
Referenced by getViewMode().
const ilContainerRenderer::UNIQUE_SEPARATOR = "-" |
Definition at line 57 of file class.ilContainerRenderer.php.