include/EditView/EditView2.php
\EditView
New EditView
- Children
- \SearchForm
- \DetailView2
- \QuickCreate
- Api
Properties
Methods
display(
\$showTitle $showTitle
=
true, \$ajaxSave $ajaxSave
=
false
)
:
\HTML
display This method makes the Smarty variable assignments and then displays the generated view.
Name | Type | Description |
---|---|---|
$showTitle | \$showTitle | boolean value indicating whether or not to show a title on the resulting page |
$ajaxSave | \$ajaxSave | boolean value indicating whether or not the operation is an Ajax save request |
Type | Description |
---|---|
\HTML | display for view as String |
enableFormatting(
\$format $format
=
true
)
:
void
enableFormatting This method is used to manually turn on/off the field formatting
Name | Type | Description |
---|---|---|
$format | \$format | boolean value to turn on/off field formatting |
getPanelWithFillers(
array $panel
)
:
array
Adds fillers to each row if required
Panel alignment will be off if the panel doesn't have a row with the max column It will not be aligned to the other panels so we fill out the columns in the last row
Name | Type | Description |
---|---|---|
$panel | array |
Type | Description |
---|---|
array |
getTemplateHandler(
)
:
\TemplateHandler
Get template handler object
Type | Description |
---|---|
\TemplateHandler |
getValueFromRequest(
\request $request, \name $name
)
:
String
getValueFromRequest This is a helper method to extract a value from the request Array. We do some special processing for fields that start with 'date_' by checking to see if they also include time and meridiem values
Name | Type | Description |
---|---|---|
$request | \request | The request Array |
$name | \name | The field name to extract value for |
Type | Description |
---|---|
String | value for given name |
process(
$checkFormName
=
false, $formName
=
''
)
:
void
Name | Type | Description |
---|---|---|
$checkFormName | ||
$formName |
setup(
\$module $module, \$focus $focus
=
null, \$id $metadataFile
=
null, \$metadataFile $tpl
=
'include/EditView/EditView.tpl', \tpl $createFocus
=
true
)
:
void
EditView constructor This is the EditView constructor responsible for processing the new Meta-Data framework
Name | Type | Description |
---|---|---|
$module | \$module | String value of module this Edit view is for |
$focus | \$focus | An empty sugarbean object of module |
$metadataFile | \$id | The record id to retrieve and populate data for |
$tpl | \$metadataFile | String value of file location to use in overriding default metadata file |
$createFocus | \tpl | String value of file location to use in overriding default Smarty template |