Property | Type | Description | |
---|---|---|---|
$_apps | array | List of apps to load blocks from. | |
$_blocks | array | A hash storing the information about all available blocks from all applications. | |
$_layout | string | Layout configuration preference name. |
Method | Description | |
---|---|---|
__construct ( array $apps, string $layout ) | Constructor. | |
_loadBlocks ( ) | Loads the blocks from all applications. | |
getBlock ( string $app, string $name, array $params = null ) : Horde_Core_Block | Gets a block object. | |
getBlocksList ( ) : array | Returns a pretty printed list of all available blocks. | |
getBlocksWidget ( string $cur_app = null, string $cur_block = null, boolean $onchange = false, boolean $readonly = false ) : string | Returns a select widget with all available blocks. | |
getDefaultValue ( string $app, string $block, string $param ) : string | Returns the default value of the specified parameter. | |
getFixedBlocks ( ) : string | Returns a layout with all fixed blocks as per configuration. | |
getLayout ( ) : array | Return the layout configuration for this collection. | |
getLayoutManager ( ) : Horde_Core_Block_Layout_Manager | Return the layout manager for this collection. | |
getName ( string $app, string $block ) : string | Returns the name of the specified block. | |
getOptionRequired ( $app, $block, $param_id ) : TODO | Returns whether the option is required or not. Defaults to true. | |
getOptionType ( $app, $block, $param_id ) : TODO | Returns the option type. | |
getOptionValues ( $app, $block, $param_id ) : TODO | Returns the values for an option. | |
getOptionsWidget ( $app, $block, $param_id, $val = null ) : TODO | Returns the widget necessary to configure this block. | |
getParamName ( string $app, string $block, string $param ) : string | Returns the (clear text) name of the specified parameter. | |
getParams ( string $app, string $block ) : array | Returns the parameter list of the specified block. | |
isEditable ( string $app, string $block ) : boolean | Returns if the specified block is customizeable by the user. | |
serialize ( ) | * Serializable methods. | |
unserialize ( $data ) |
public __construct ( array $apps, string $layout ) | ||
$apps | array | The applications whose blocks to list. |
$layout | string | Layout configuration preference name. |
public getBlocksList ( ) : array | ||
return | array | A hash with block IDs as keys and application plus block block names as values. |
public getBlocksWidget ( string $cur_app = null, string $cur_block = null, boolean $onchange = false, boolean $readonly = false ) : string | ||
$cur_app | string | The block from this application gets selected. |
$cur_block | string | The block with this name gets selected. |
$onchange | boolean | Include the onchange action |
$readonly | boolean | Indicates if this block type is changeable. |
return | string | The select tag with all available blocks. |
public getFixedBlocks ( ) : string | ||
return | string | A default serialized block layout. |
public getLayoutManager ( ) : Horde_Core_Block_Layout_Manager | ||
return | Horde_Core_Block_Layout_Manager | Layout manager object. |
public getOptionRequired ( $app, $block, $param_id ) : TODO | ||
$app | TODO | |
$block | TODO | |
$param_id | TODO | |
return | TODO |
public getOptionType ( $app, $block, $param_id ) : TODO | ||
$app | TODO | |
$block | TODO | |
$param_id | TODO | |
return | TODO |
public getOptionValues ( $app, $block, $param_id ) : TODO | ||
$app | TODO | |
$block | TODO | |
$param_id | TODO | |
return | TODO |
public getOptionsWidget ( $app, $block, $param_id, $val = null ) : TODO | ||
$app | TODO | |
$block | TODO | |
$param_id | TODO | |
$val | TODO | |
return | TODO |
protected array $_blocks | ||
return | array |
protected string $_layout | ||
return | string |