Class RecordView
Abstract Class for rendering the Form view and Detail View Some things are awkward from being retroactivly applied. STRUCTURE: With a given form layout:
RenderMain (getMainOptions) RenderSections (getSectionOptions) RenderSectionTitle RenderRows (getRowOptions) RenderColumns (getColumnOptions) RenderItems (getItemOptions) RenderLabel RenderAttribute
The get<part>Options() function return an array of html options for that section. This makes it easier to override classes you want to add on specific elements
- CComponent
- CBaseController
- CWidget
- X2Widget
- RecordView
abstract public
string
|
#
renderAttribute( array $item,
Renders the Attribute of a form item. For a View, this is the value of the field. For a Form, this is the inpute of the field |
abstract public
array
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
string
|
|
protected
|
|
public
string
|
#
renderSection( mixed $section, mixed $collapsed )
Renders the tag for all sections and renders the interior rows |
public
|
|
public
|
|
public
|
#
renderColumn( array $col, integer $count )
Renders .formSectionColumn and interior Items Note that this is a table |
public
|
|
public
|
#
renderNoneLabel( mixed $item,
Renders the None Label type. Omits the label and increases colspan to to 2 |
public
|
|
public
[type]
|
#
renderTopLabel( [type] $item,
Renders the top label type. Renders the label in it's own row, increases colspan to 2 |
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|
__construct(),
ajaxRender(),
behaviors(),
getModule(),
renderFile(),
setModule()
|
actions(),
getController(),
getId(),
getOwner(),
getViewFile(),
getViewPath(),
render(),
setId()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderInternal(),
widget()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
public
array
|
$htmlOptions | array (
'class' => 'x2-layout-island'
) |
#
$htmlOptions |
public
string
|
$JSClass | 'RecordView' |
#
JS Class |
public
string
|
$modelName |
|
#
Model Name of the record being displayed |
public
[type]
|
$model |
|
#
Model obejct of the record being displayed |
public
string
|
$scenario | 'Default' |
#
Scenario of the form. options: Default, Inline |
public
array
|
$suppressFields | array() |
#
Fields to hide from the form |
public
array
|
$specialFields | array() |
#
Special fields to render within the view |
public
array
|
$layoutData |
|
#
The parsed JSON created from the form layout editor |
protected
array
|
$_formSettings |
|
#
The form settings that contains the saved collapsed sections |
protected
array
|
$_fieldPermissions |
|
#
Array of field permissions |
protected
array
|
$_fields |
|
#
Array of fields objects to extract settings from |
$_module
|
$actionPrefix,
$skin
|
$module
|
$controller,
$id,
$owner,
$viewPath
|