Version: current

# Class TabularStyle

This is a form decorator (a class that wraps around a form) providing us with some functions to display it in a Tabular style.

  Object
  ViewableData implements IteratorAggregate
  TabularStyle

Package: forms\transformations
Located at sapphire/forms/TabularStyle.php

## Methods summary

`public` | # `__construct( `TabularStyle::$form` $form )` Represent the given form in a tabular style Represent the given form in a tabular style #### Parameters $form form The form to decorate. #### Overrides `Object::__construct`
`public` | # `AsTableRow( )` Return a representation of this form as a table row Return a representation of this form as a table row
`public` | # `CellFields( )`
`public` | # `CellActions( )`
`public mixed` | # `__call( string $func, array $args )` This is the 'wrapper' aspect of the code This is the 'wrapper' aspect of the code #### Parameters $func string $method $args array $arguments #### Returns `mixed` mixed #### Overrides `Object::__call`
`public mixed` | # `__get( string $field )` Get the value of a property/field on this object. This will check if a method called get{$property} exists, then check if a field is available using `ViewableData::getField()`, then fall back on a failover object. Get the value of a property/field on this object. This will check if a method called get{$property} exists, then check if a field is available using `ViewableData::getField()`, then fall back on a failover object. #### Parameters $field string $property #### Returns `mixed` mixed #### Overrides `ViewableData::__get`
`public` | # `__set( string $field, mixed $val )` Set a property/field on this object. This will check for the existence of a method called set{$property}, then use the `ViewableData::setField()` method. Set a property/field on this object. This will check for the existence of a method called set{$property}, then use the `ViewableData::setField()` method. #### Parameters $field string $property $val mixed $value #### Overrides `ViewableData::__set`

### Methods inherited from ViewableData

`ATT_val()`, `BaseHref()`, `CSSClasses()`, `ColumnBreak()`, `ColumnCalc()`, `ColumnNumber()`, `ColumnPad()`, `ColumnPos()`, `CurrentMember()`, `CurrentPage()`, `Debug()`, `Even()`, `EvenOdd()`, `First()`, `FirstLast()`, `HasPerm()`, `IsAjax()`, `JS_val()`, `Last()`, `Me()`, `Middle()`, `MiddleString()`, `Modulus()`, `MultipleOf()`, `Odd()`, `Pos()`, `RAW_val()`, `SQL_val()`, `ThemeDir()`, `ThemeName()`, `Top()`, `TotalItems()`, `XML_val()`, `__isset()`, `buildCastingCache()`, `cachedCall()`, `castingClass()`, `castingHelper()`, `castingHelperPair()`, `castingObjectCreator()`, `castingObjectCreatorPair()`, `customise()`, `defineMethods()`, `escapeTypeForField()`, `getField()`, `getIterator()`, `getSecurityID()`, `getXMLValues()`, `hasField()`, `hasValue()`, `i18nLocale()`, `iteratorProperties()`, `obj()`, `renderWith()`, `setCustomisedObj()`, `setField()`

### Methods inherited from Object

`__toString()`, `__wakeup()`, `addMethodsFrom()`, `addStaticVars()`, `addWrapperMethod()`, `add_extension()`, `add_static_var()`, `allMethodNames()`, `cacheToFile()`, `cacheToFileWithArgs()`, `clearCache()`, `combined_static()`, `create()`, `createMethod()`, `create_from_string()`, `exists()`, `extInstance()`, `extend()`, `getCustomClass()`, `getExtensionInstance()`, `getExtensionInstances()`, `get_extensions()`, `get_static()`, `hasExtension()`, `hasMethod()`, `has_extension()`, `invokeWithExtensions()`, `is_a()`, `loadCache()`, `parentClass()`, `parse_class_spec()`, `remove_extension()`, `sanitiseCachename()`, `saveCache()`, `set_stat()`, `set_static()`, `set_uninherited()`, `stat()`, `strong_create()`, `uninherited()`, `uninherited_static()`, `useCustomClass()`

### Magic methods summary

## Properties summary

`protected mixed` | $form | #

### Properties inherited from ViewableData

`$casting`, `$customisedObject`, `$default_cast`, `$failover`, `$iteratorPos`, `$iteratorTotalItems`

### Properties inherited from Object

`$class`, `$extension_instances`, `$extensions`

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -