class BootstrapRow implements IComponent , IControl

Class BootstrapRow.

Represents a row in Bootstrap grid system.

Traits

SmartObject
Trait FakeControlTrait.

Properties

int $numOfColumns Number of columns in Bootstrap grid. Default is 12, but it can be customized.
string $gridBreakPoint Bootstrap breakpoint - usually xs, sm, md, lg. sm by default. Use NULL for no breakpoint.

Methods

getErrors()

Always returns an empty array

getValue()

Not supported

isDisabled()

No description

true
isOmitted()

Is control value excluded from $form->getValues() result?

setValue($value)

Not supported

validate()

Do nothing

__construct( Container $container, null $name = NULL)

BootstrapRow constructor.

addCell(int $numOfColumns = BootstrapCell::COLUMNS_NONE)

Adds a new cell to which a control can be added.

addComponent( IComponent $component, $name, null $insertBefore = NULL)

Delegate to underlying container and remember it.

getCells()

No description

Html
getElementPrototype()

The container without content

string
getGridBreakPoint()

No description

setGridBreakPoint(string $gridBreakPoint)

Sets the xs, sm, md, lg part.

string
getName()

Component name

Container
getParent()

Returns the container

setParent( IContainer $parent = NULL, null $name = NULL)

Sets the container

mixed|null
getOption(string $option, null $default = NULL)

Gets previously set option

Html
render()

Renders the row into a Html object

setOption($option, $value)

Sets option

Details

in FakeControlTrait at line 24
getErrors()

Always returns an empty array

in FakeControlTrait at line 33
getValue()

Not supported

in FakeControlTrait at line 38
isDisabled()

in FakeControlTrait at line 47
true isOmitted()

Is control value excluded from $form->getValues() result?

Return Value

true

in FakeControlTrait at line 56
setValue($value)

Not supported

Parameters

$value

in FakeControlTrait at line 65
validate()

Do nothing

at line 90
__construct( Container $container, null $name = NULL)

BootstrapRow constructor.

Parameters

Container $container Form or container this belongs to. Components will be added to this
null $name Optional name of this row. If none is supplied, it is generated automatically.

at line 106
BootstrapCell addCell(int $numOfColumns = BootstrapCell::COLUMNS_NONE)

Adds a new cell to which a control can be added.

Parameters

int $numOfColumns Number of grid columns to use up

Return Value

BootstrapCell the cell added.

at line 127
addComponent( IComponent $component, $name, null $insertBefore = NULL)

Delegate to underlying container and remember it.

Parameters

IComponent $component
$name
null $insertBefore

at line 137
BootstrapCell [] getCells()

Return Value

BootstrapCell []

See also

at line 147
Html getElementPrototype()

The container without content

Return Value

Html

See also

at line 156
string getGridBreakPoint()

Return Value

string

See also

at line 167
BootstrapRow setGridBreakPoint(string $gridBreakPoint)

Sets the xs, sm, md, lg part.

Parameters

string $gridBreakPoint . NULL for no breakpoint.

Return Value

BootstrapRow

See also

at line 178
string getName()

Component name

Return Value

string

at line 187
Container getParent()

Returns the container

Return Value

Container

at line 197
setParent( IContainer $parent = NULL, null $name = NULL)

Sets the container

Parameters

IContainer $parent
null $name ignored

at line 208
mixed|null getOption(string $option, null $default = NULL)

Gets previously set option

Parameters

string $option
null $default

Return Value

mixed|null

at line 217
Html render()

Renders the row into a Html object

Return Value

Html

at line 237
setOption($option, $value)

Sets option

Parameters

$option
$value