FORMfields


FORMfields.FfListHelper

Class FfListHelper

FfListHelper

public class FfListHelper

FfListHelper a helper class for displaying HTML lists.

Since:
FORMfields v3.0

Field Summary
mixed

$cssClass

The class name associated with this list.

mixed

$values

The array of list values.

Constructor Summary

FfListHelper(array values, string cssClass)

Constructs a new FfListHelper.

__construct(array values, string cssClass)

Constructs a new FfListHelper.

Method Summary
void

addValue(string value)

Appends a value to the list of values.

string

getHtml()

Returns the HTML to display this list.

Field Detail

cssClass

public mixed $cssClass

The class name associated with this list.

Since:
FORMfields v3.0

values

public mixed $values = array()

The array of list values.

Since:
FORMfields v3.0

Constructor Detail

FfListHelper

public FfListHelper(array values, string cssClass)

Constructs a new FfListHelper.

Parameters:
values - the list values or null
cssClass - the value of the class attribute in the ul and li tags. Defaulted to ffListHelper.
Since:
FORMfields v3.0
Deprecated:
deprecated on 2005.12.19 as constructor syntax is not expected in PHP 5 - will be removed once PHP 5 becomes a minimum requirement for FORMfields

__construct

public __construct(array values, string cssClass)

Constructs a new FfListHelper.

Parameters:
values - the list values or null
cssClass - the value of the class attribute in the ul and li tags. Defaulted to ffListHelper.
Since:
FORMfields v3.0

Method Detail

addValue

public void addValue(string value)

Appends a value to the list of values.

Parameters:
value - the value to append
Since:
FORMfields v3.0

getHtml

public string getHtml()

Returns the HTML to display this list.

Returns:
the HTML to display this list
Since:
FORMfields v3.0

FORMfields