ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilContainerRenderer. More...
Public Member Functions | |
__construct ($a_enable_manage_select_all=false, $a_enable_multi_download=false, $a_active_block_ordering=false, array $a_block_custom_positions=null) | |
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... | |
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 | |
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 | |
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 , |
|||
array | $a_block_custom_positions = null |
||
) |
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 63 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 121 of file class.ilContainerRenderer.php.
References array, and 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 261 of file class.ilContainerRenderer.php.
References array.
|
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 531 of file class.ilContainerRenderer.php.
References $a_type, $ilSetting, $lng, $obj_definition, $settings, $title, $type, array, ilItemGroupBehaviour\EXPANDABLE_CLOSED, getDownloadableTypes(), ilUtil\getImagePath(), ilObjectPlugin\getRepoPluginObjectByType(), 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 231 of file class.ilContainerRenderer.php.
References array, hasItem(), and isValidBlock().
|
protected |
Render separator row.
ilTemplate | $a_tpl |
Definition at line 655 of file class.ilContainerRenderer.php.
References ilTemplate\parseCurrentBlock(), and ilTemplate\setCurrentBlock().
Referenced by getHTML().
|
protected |
Render item row.
ilTemplate | $a_tpl | |
string | $a_html | |
int | $a_ref_id |
Definition at line 611 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 89 of file class.ilContainerRenderer.php.
References $a_type, array, and hasTypeBlock().
|
protected |
Get downloadable repository object types.
Definition at line 675 of file class.ilContainerRenderer.php.
References array.
Referenced by addHeaderRow().
ilContainerRenderer::getHTML | ( | ) |
Get rendered html (of all blocks)
Definition at line 300 of file class.ilContainerRenderer.php.
References $valid, addSeparatorRow(), initBlockTemplate(), processBlockPositions(), renderDetails(), renderHelperCustomBlock(), and renderHelperTypeBlock().
ilContainerRenderer::hasCustomBlock | ( | $a_id | ) |
Custom block already exists?
mixede | $a_id |
Definition at line 140 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 215 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 108 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 167 of file class.ilContainerRenderer.php.
|
protected |
Init template.
Definition at line 508 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 151 of file class.ilContainerRenderer.php.
References hasCustomBlock(), and hasTypeBlock().
Referenced by addItemToBlock(), processBlockPositions(), and setBlockPosition().
|
protected |
Process block positions.
Definition at line 368 of file class.ilContainerRenderer.php.
References $block_pos, array, and isValidBlock().
Referenced by getHTML().
ilContainerRenderer::removeItem | ( | $a_id | ) |
Remove item (from any block)
mixed | $a_id |
Definition at line 181 of file class.ilContainerRenderer.php.
References $items, and hasItem().
ilContainerRenderer::renderDetails | ( | ilTemplate | $a_tpl | ) |
Render detail level.
ilTemplate | $a_tpl |
Definition at line 685 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 424 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 460 of file class.ilContainerRenderer.php.
References $active_block_ordering, addHeaderRow(), addStandardRow(), and array.
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 440 of file class.ilContainerRenderer.php.
References $a_type, hasTypeBlock(), and renderHelperGeneric().
Referenced by getHTML(), and renderSingleTypeBlock().
|
protected |
Render "select all".
ilTemplate $lng
Definition at line 638 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 349 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 334 of file class.ilContainerRenderer.php.
References $a_type, initBlockTemplate(), and renderHelperTypeBlock().
ilContainerRenderer::resetDetails | ( | ) |
Reset/remove all detail levels.
Definition at line 272 of file class.ilContainerRenderer.php.
References array.
|
protected |
Reset internal row type.
Definition at line 664 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 288 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 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 34 of file class.ilContainerRenderer.php.
const ilContainerRenderer::UNIQUE_SEPARATOR = "-" |
Definition at line 52 of file class.ilContainerRenderer.php.