PHP Class FormLayout

Show file Open project: openeyes/openeyes Class Usage Examples

Public Properties

Property Type Description
$layoutColumns be merged into the widget options.

Public Methods

Method Description
columns ( mixed $key = 'label', $end = false ) : string Generates a CSS class that is used for the layout columns.
widget ( $className, $properties = [], $captureOutput = false ) We override this method so we can pass through the layoutColumns from the 'form' into the widget.

Method Details

columns() public method

Generates a CSS class that is used for the layout columns.
public columns ( mixed $key = 'label', $end = false ) : string
$key mixed The column key ('label', or 'field') or column value (integer).
return string The CSS class.

widget() public method

We override this method so we can pass through the layoutColumns from the 'form' into the widget.
public widget ( $className, $properties = [], $captureOutput = false )

Property Details

$layoutColumns public property

be merged into the widget options.
public $layoutColumns