Class BaseView
Class BaseView.
This class is the base class for the different backend view mode sub classes.
- DcGeneral\Contao\View\Contao2BackendView\BaseView implements DcGeneral\Contao\View\Contao2BackendView\BackendViewInterface
Direct known subclasses
DcGeneral\Contao\View\Contao2BackendView\ListView, DcGeneral\Contao\View\Contao2BackendView\ParentView, DcGeneral\Contao\View\Contao2BackendView\TreeViewPackage: DcGeneral\Contao\View\Contao2BackendView
Located at Contao/View/Contao2BackendView/BaseView.php
protected
|
#
dispatchEvent( string $eventName, Symfony\Component\EventDispatcher\Event $event )
Dispatch an event to the dispatcher. |
public
ViewInterface
|
|
public
|
|
protected
|
|
protected
string
|
|
protected
|
|
public
|
|
public
|
|
protected
|
|
protected
|
|
protected
boolean
|
|
protected
boolean
|
|
protected
array|null
|
|
public
string
|
#
formatCurrentValue( string $field,
Return the formatted value for use in group headers as string. |
protected
string
|
|
protected
array
|
|
protected
array
|
|
public
|
|
protected
boolean
|
|
protected
|
#
checkLanguage( )
Check if the data provider is multi language and prepare the data provider with the selected language. |
protected
|
#
getTemplate( string $strTemplate )
Create a new instance of ContaoBackendViewTemplate with the template file of the given name. |
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
string
|
|
protected
|
#
handleSubmit(
Handle the submit and determine which button has been triggered. |
protected
|
#
checkRestoreVersion( )
Check the submitted data if we want to restore a previous version of a model. |
public
|
#
enforceModelRelationship(
Abstract method to be overridden in the certain child classes. |
protected
|
#
createEmptyModelWithDefaults( )
Create an empty model using the default values from the definition. |
protected
|
#
storeVersion(
Update the versioning information in the data provider for a given model (if necessary). |
public
string
|
|
protected
string
|
#
createEditMask(
Create the edit mask. |
protected
string
|
#
getLabelForShow(
Calculate the label of a property to se in "show" view. |
public
string
|
|
public
string
|
|
public
string
|
#
generateAjaxPalette( string $strSelector )
Generates a sub palette for the given selector (field name). |
protected
|
|
protected
|
|
protected
|
|
protected
string
|
#
generateHeaderButton(
Render a single header button. |
protected
string
|
|
protected
string
|
#
buildCommand(
Render a command button. |
public
string
|
#
renderPasteIntoButton(
Render the paste into button. |
public
string
|
#
renderPasteAfterButton(
Render the paste after button. |
protected
string
|
#
generateButtons(
Compile buttons from the table configuration array and return them as HTML. |
protected
string
|
|
protected
string
|
|
public
null|
|
#
processInput(
Process input and return all modified properties or null if there is no input. |
public
array
|
#
formatModel(
Format a model accordingly to the current configuration. |
public
mixed
|
#
getReadableFieldValue(
Get for a field the readable value. |
protected
string
|
$notImplMsg | '<div style="text-align:center; font-weight:bold; padding:40px;">
The function/view "%s" is not implemented.
</div>' |
#
The error message format string to use when a method is not implemented. |
protected
|
$environment |
|
#
The attached environment. |
protected
|
$panel |
|
#
The panel container in use. |