Method |
Description |
|
__construct ( Horde_Core_Block_Collection $collection ) |
Constructor. |
|
addBlock ( integer $row, integer $col ) |
Adds an empty block at the specified position. |
|
addCol ( integer $col ) |
Adds a new column to the layout. |
|
addRow ( integer $row ) |
Adds a new row to the layout. |
|
colExists ( integer $col ) : boolean |
Does a column exist? |
|
columns ( integer $row ) : integer |
Returns the number of columns in the specified row of the
current layout. |
|
count ( ) : integer |
Returns the number of blocks in the current layout. |
|
expandDown ( integer $row, integer $col ) |
Makes a block one row taller by moving the bottom down. |
|
expandLeft ( integer $row, integer $col ) |
Makes a block one column wider by moving the left side out. |
|
expandRight ( integer $row, integer $col ) |
Makes a block one column wider by moving the right side out. |
|
expandUp ( integer $row, integer $col ) |
Makes a block one row taller by moving the top up. |
|
getBlock ( integer $row, integer $col ) : Horde_Core_Block |
Returns the block object at the specified position. |
|
getBlockAt ( integer $row, integer $col ) : array |
Returns the coordinates of the block covering the specified
field. |
|
getBlockInfo ( integer $row, integer $col ) : array |
Returns a hash with some useful information about the specified
block. |
|
getControl ( string $type, integer $row, integer $col ) : string |
Returns a control (linked arrow) for a certain action on the
specified block. |
|
getCurrentBlock ( ) : array |
Get the current block row and column. |
|
getHeight ( integer $row, integer $col ) : integer |
Get the height of the block at a given location. |
|
getWidth ( integer $row, integer $col ) : integer |
Get the width of the block at a given location. |
|
handle ( string $action, integer $row, integer $col, string $url = null ) |
Process a modification to the current layout. |
|
isBlock ( integer $row, integer $col ) : boolean |
Returns if the specified location is the top left field of
a block. |
|
isChanged ( integer $row, integer $col ) : boolean |
Returns if the specified block has been changed last. |
|
isCovered ( integer $row, integer $col ) : boolean |
Returns if the field at the specified position is covered by
another block. |
|
isEmpty ( integer $row, integer $col ) : boolean |
Checks to see if a given location if being used by a block. |
|
moveDown ( integer $row, integer $col ) |
Moves a block one row down. |
|
moveDownBelow ( integer $row ) : boolean |
Moves all blocks below a certain row one row down. |
|
moveLeft ( integer $row, integer $col ) |
Moves a block one column left. |
|
moveRight ( integer $row, integer $col ) |
Moves a block one column right. |
|
moveRightAfter ( integer $col ) : boolean |
Moves all blocks after a certain column one column right. |
|
moveUp ( integer $row, integer $col ) |
Moves a block one row up. |
|
removeBlock ( integer $row, integer $col ) |
Removes a block. |
|
removeColIfEmpty ( integer $col ) : boolean |
Removes a column if it's empty. |
|
removeRowIfEmpty ( integer $row ) : boolean |
Removes a row if it's empty. |
|
rowExists ( integer $row ) : boolean |
Does a row exist? |
|
rows ( ) : integer |
Returns the number of rows in the current layout. |
|
serialize ( ) : TODO |
Serialize and return the current block layout. |
|
setBlockInfo ( integer $row, integer $col, array $info = [] ) |
Sets a batch of information about the specified block. |
|
shrinkDown ( integer $row, integer $col ) |
Makes a block one row lower by moving the bottom up. |
|
shrinkLeft ( integer $row, integer $col ) |
Makes a block one column narrower by moving the left side in. |
|
shrinkRight ( integer $row, integer $col ) |
Makes a block one column narrower by moving the right side in. |
|
shrinkUp ( integer $row, integer $col ) |
Makes a block one row lower by moving the top down. |
|
unserialize ( $data ) |
Resets the current layout to the value stored in the preferences. |
|
updated ( ) : boolean |
Has the layout been changed since it was instantiated? |
|