\Hazaar\View\Helper
Extra
Extra output functionality

This view helper provides some built-in output functionality for producing view content. Currently there is built-in support for Buttons and button groups. These buttons have a nice pleasing style.

Button styles have been blatently stolen from the Twitter Bootstrap project. See: http://twitter.github.com/bootstrap

Tags

Since

1.0.0

Summary
Methods Properties Constants
set
No constants
Properties
Inherited
$args
$args
Inherited
$view
$view
Methods
button()
button($name, $label, $style = null, $size = null, $args = Array ( ) )

This method can be used to render pleasant looking buttons using style information from the Twitter Bootstrap project. A number of different button styles are available. This method is also 100% compatible with the Font Awesome helper so that you can use FA icons in your button labels.

For information on what button styles are available, see: http://twitter.github.com/bootstrap/base-css.html#buttons

Here is an example using the Font Awesome helper to include an icon on the button.


extra->button($this->fontawesome->icon(‘cog’) . ‘ Settings’); ?>

Take note of the space before the string label. This is required to add a nice gap between the icon and the label.

Tags

Since

1.0.0

Parameters

$namestring

A unique name to give to the button. This will be used in the ID attribute and can be used in your jQuery selectors.

$labelstring

The label to put on the button.

$stylestring

Any extra style info for the button. For example, ‘success’ will render a ‘btn-success’ button.

$sizestring

A size style to apply to the button. Valid sizes are large, small, mini.

$argsArray

An array of optional arguments to pass to the HTML block element.

buttonGroup()
buttonGroup($buttons, $args = Array ( ) )

Parameters

$buttons

No description

$args

No description

gravatar()
gravatar($address)

Parameters

$address

No description

import()
import()
init()
init($view, $args = Array ( ) )

Initialise the view helper and include the buttons.css file. Adds a requirement for the HTML view helper.

Parameters

$view

No description

$args

No description

Inherited
import()
import()
Inherited
init()
init($view, $args = Array ( ) )

Parameters

$view

No description

$args

No description

Inherited
initialise()
initialise($args = null)

Parameters

$args

No description

Inherited
requires()
requires($helper, $args = Array ( ) )

Parameters

$helper

No description

$args

No description

Inherited
set()
set($arg, $value)

Parameters

$arg

No description

$value

No description