Overview

Namespaces

  • DcGeneral
    • Clipboard
    • Contao
      • Callback
      • Compatibility
      • DataDefinition
        • Definition
      • Dca
        • Builder
          • Legacy
        • Definition
        • Palette
        • Populator
      • Event
      • View
        • Contao2BackendView
          • Event
    • Controller
    • Data
    • DataDefinition
      • Builder
      • Definition
        • Properties
        • View
          • Panel
      • ModelRelationship
      • Palette
        • Builder
          • Event
        • Condition
          • Palette
          • Property
    • EnvironmentPopulator
    • Event
    • Exception
    • Factory
      • Event
    • Panel
    • View
      • Event

Classes

  • BaseView
  • ContaoBackendViewTemplate
  • ContaoWidgetManager
  • ListView
  • ParentView
  • TreeView

Interfaces

  • BackendViewInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class ParentView

Class ParentView.

Implementation of the parent view.

DcGeneral\Contao\View\Contao2BackendView\BaseView implements DcGeneral\Contao\View\Contao2BackendView\BackendViewInterface
Extended by DcGeneral\Contao\View\Contao2BackendView\ParentView
Namespace: DcGeneral\Contao\View\Contao2BackendView
Package: DcGeneral\Contao\View\Contao2BackendView
Located at Contao/View/Contao2BackendView/ParentView.php
Methods summary
public DcGeneral\Data\CollectionInterface
# loadCollection( )

Load the collection of child items and the parent item for the currently selected parent item.

Load the collection of child items and the parent item for the currently selected parent item.

Consumes input parameter "id".

Returns

DcGeneral\Data\CollectionInterface
protected DcGeneral\Data\ModelInterface
# loadParentModel( )

Load the parent model for the current list.

Load the parent model for the current list.

Returns

DcGeneral\Data\ModelInterface

Throws

DcGeneral\Exception\DcGeneralRuntimeException
If the parent view requirements are not fulfilled - either no data provider defined or no parent model id given.
protected
# renderEntries( DcGeneral\Data\CollectionInterface $collection, array $groupingInformation )

Render the entries for parent view.

Render the entries for parent view.

Parameters

$collection
DcGeneral\Data\CollectionInterface
$collection The collection to render.
$groupingInformation
array
$groupingInformation The grouping information as retrieved via BaseView::getGroupingMode().
protected array
# renderFormattedHeaderFields( DcGeneral\Data\ModelInterface $parentModel )

Render the header of the parent view with information from the parent table.

Render the header of the parent view with information from the parent table.

Parameters

$parentModel
DcGeneral\Data\ModelInterface
$parentModel The parent model.

Returns

array
protected array
# getHeaderButtons( DcGeneral\Data\ModelInterface $parentModel )

Retrieve a list of html buttons to use in the top panel (submit area).

Retrieve a list of html buttons to use in the top panel (submit area).

Parameters

$parentModel
DcGeneral\Data\ModelInterface
$parentModel The parent model.

Returns

array
protected string
# viewParent( DcGeneral\Data\CollectionInterface $collection, DcGeneral\Data\ModelInterface $parentModel )

Show parent view mode 4.

Show parent view mode 4.

Parameters

$collection
DcGeneral\Data\CollectionInterface
$collection The collection containing the models.
$parentModel
DcGeneral\Data\ModelInterface
$parentModel The parent model.

Returns

string
HTML output
public
# enforceModelRelationship( DcGeneral\Data\ModelInterface $model )

Abstract method to be overridden in the certain child classes.

Abstract method to be overridden in the certain child classes.

Parameters

$model
DcGeneral\Data\ModelInterface
$model The model to be updated.

Overrides

DcGeneral\Contao\View\Contao2BackendView\BaseView::enforceModelRelationship()
public string
# showAll( )

Show all entries from one table.

Show all entries from one table.

Returns

string
HTML

Overrides

DcGeneral\Contao\View\Contao2BackendView\BaseView::showAll()
Methods inherited from DcGeneral\Contao\View\Contao2BackendView\BaseView
addToTemplate(), breadcrumb(), buildCommand(), checkClipboard(), checkLanguage(), checkRestoreVersion(), copy(), copyAll(), create(), createEditMask(), createEmptyModelWithDefaults(), cut(), cutAll(), delete(), dispatchEvent(), edit(), formatCurrentValue(), formatModel(), generateAjaxPalette(), generateButtons(), generateHeaderButton(), generateHeaderButtons(), getBackCommand(), getButtonLabel(), getClearClipboardCommand(), getCreateModelCommand(), getDataDefinition(), getEditButtons(), getEnvironment(), getGroupingMode(), getLabelForShow(), getPanel(), getReadableFieldValue(), getSelectButtons(), getTemplate(), getViewSection(), handleAjaxCall(), handleSubmit(), isMultiLanguage(), isPopup(), isSelectModeActive(), move(), panel(), paste(), processInput(), redirectHome(), renderPasteAfterButton(), renderPasteIntoButton(), setEnvironment(), setPanel(), show(), storeVersion(), translate(), undo()
Properties inherited from DcGeneral\Contao\View\Contao2BackendView\BaseView
$environment, $notImplMsg, $panel
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0