$_editUrl
$_editUrl : string
Edit URL.
Provides manipulation of block layouts.
Copyright 2003-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
$_collection : \Horde_Core_Block_Collection
Our Horde_Core_Block_Collection instance.
getHeaderIcons(integer $row, integer $col, boolean $edit, $url = null) : string
Returns the actions for the block header.
integer | $row | A layout row. |
integer | $col | A layout column. |
boolean | $edit | Whether to include the edit icon. |
$url | TODO |
HTML code for the block action icons.
__construct(\Horde_Core_Block_Collection $collection)
Constructor.
\Horde_Core_Block_Collection | $collection | TODO |
getBlock(integer $row, integer $col) : \Horde_Core_Block
Returns the block object at the specified position.
integer | $row | A layout row. |
integer | $col | A layout column. |
The block from that position.
getBlockAt(integer $row, integer $col) : array
Returns the coordinates of the block covering the specified field.
integer | $row | A layout row. |
integer | $col | A layout column. |
The top-left row-column-coordinate of the block covering the specified field or null if the field is empty.
getBlockInfo(integer $row, integer $col) : array
Returns a hash with some useful information about the specified block.
Returned hash values: 'app': application name 'block': block name 'params': parameter hash
integer | $row | A layout row. |
integer | $col | A layout column. |
The information hash.
setBlockInfo(integer $row, integer $col, array $info = array())
Sets a batch of information about the specified block.
integer | $row | A layout row. |
integer | $col | A layout column. |
array | $info | A hash with information values. Possible elements are: 'app': application name 'block': block name 'params': parameter hash |
isBlock(integer $row, integer $col) : boolean
Returns if the specified location is the top left field of a block.
integer | $row | A layout row. |
integer | $col | A layout column. |
True if the specified position is a block, false if the field doesn't exist, is empty or covered.
getControl(string $type, integer $row, integer $col) : string
Returns a control (linked arrow) for a certain action on the specified block.
string | $type | A control type in the form "modification/direction". Possible values for modification: expand, shrink, move. Possible values for direction: up, down, left, right. |
integer | $row | A layout row. |
integer | $col | A layout column. |
A link containing an arrow representing the requested control.
getWidth(integer $row, integer $col) : integer
Get the width of the block at a given location.
This returns the width if there is a block at this location, otherwise returns 1.
integer | $row | A layout row. |
integer | $col | A layout column. |
The number of columns this block spans.
getHeight(integer $row, integer $col) : integer
Get the height of the block at a given location.
This returns the height if there is a block at this location, otherwise returns 1.
integer | $row | A layout row. |
integer | $col | A layout column. |
The number of rows this block spans.