Returns a single instance of the Horde_Blocks class.
-
string
$type: The kind of blocks to list.
-
array
$apps: The applications whose blocks to list.
Constructor.
Horde_Block_Collection
Horde_Block_Collection
([string $type = null], [array $apps = array()])
-
string
$type: The kind of blocks to list.
-
array
$apps: The applications whose blocks to list.
void
&getBlock
( $app, $name, [ $params = null], [ $row = null], [ $col = null])
-
$app
-
$name
-
$params
-
$row
-
$col
Returns a pretty printed list of all available blocks.
array
getBlocksList
()
Returns a select widget with all available blocks.
string
getBlocksWidget
([string $cur_app = null], [string $cur_block = null], [boolean $onchange = false], [boolean $readonly = false])
-
string
$cur_app: The block from this application gets selected.
-
string
$cur_block: The block with this name gets selected.
-
boolean
$onchange: Indicates if the onchnage handler is included.
-
boolean
$readonly: Indicates if this block's type is changeable.
Returns the default value of the specified parameter.
string
getDefaultValue
(string $app, string $block, string $param)
-
string
$app: An application name.
-
string
$block: A block name.
-
string
$param: A parameter name.
Returns a layout with all fixed blocks as per configuration.
string
getFixedBlocks
()
Returns the name of the specified block.
string
getName
(string $app, string $block)
-
string
$app: An application name.
-
string
$block: A block name.
Returns whether the option is required or not. Defaults to true.
void
getOptionRequired
( $app, $block, $param_id)
Returns the widget necessary to configure this block.
void
getOptionsWidget
( $app, $block, $param_id, [ $val = null])
-
$app
-
$block
-
$param_id
-
$val
Returns the option type.
void
getOptionType
( $app, $block, $param_id)
Returns the values for an option.
void
&getOptionValues
( $app, $block, $param_id)
Returns the (clear text) name of the specified parameter.
string
getParamName
(string $app, string $block, string $param)
-
string
$app: An application name.
-
string
$block: A block name.
-
string
$param: A parameter name.
Returns the parameter list of the specified block.
array
getParams
(string $app, string $block)
-
string
$app: An application name.
-
string
$block: A block name.
Returns if the specified block is customizeable by the user.
boolean
isEditable
(string $app, string $block)
-
string
$app: An application name.
-
string
$block: A block name.
Block sorting helper
void
_sortBlockCollection
( $a, $b)