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

  • Command
  • CommandCollection
  • CutCommand
  • DefaultListingConfig
  • DefaultModelFormatterConfig
  • DefaultPanelLayout
  • DefaultPanelRow
  • DefaultPanelRowCollection

Interfaces

  • CommandCollectionInterface
  • CommandInterface
  • CutCommandInterface
  • ListingConfigInterface
  • ModelFormatterConfigInterface
  • PanelLayoutInterface
  • PanelRowCollectionInterface
  • PanelRowInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Class DefaultModelFormatterConfig

Format a model and create a listing child record.

DcGeneral\DataDefinition\Definition\View\DefaultModelFormatterConfig implements DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface
Namespace: DcGeneral\DataDefinition\Definition\View
Package: DcGeneral\DataDefinition\Definition\View
Located at DataDefinition/Definition/View/DefaultModelFormatterConfig.php
Methods summary
public DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface
# setPropertyNames( array $propertyNames )

Set the used property names.

Set the used property names.

Parameters

$propertyNames
array
$propertyNames The property names.

Returns

DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface

Implementation of

DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface::setPropertyNames()
public array
# getPropertyNames( )

Return the used property names.

Return the used property names.

Returns

array

Implementation of

DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface::getPropertyNames()
public DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface
# setFormat( string $format )

Set the format string.

Set the format string.

Parameters

$format
string
$format The format string to use.

Returns

DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface

Implementation of

DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface::setFormat()
public string
# getFormat( )

Return the format string.

Return the format string.

Returns

string

Implementation of

DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface::getFormat()
public DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface
# setMaxLength( integer|null $maxLength )

Set the formatted maximum length.

Set the formatted maximum length.

Parameters

$maxLength
integer|null
$maxLength The length to use - pass null to clear the cutting.

Returns

DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface

Implementation of

DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface::setMaxLength()
public integer|null
# getMaxLength( )

Return the formatted maximum length.

Return the formatted maximum length.

Returns

integer|null

Implementation of

DcGeneral\DataDefinition\Definition\View\ModelFormatterConfigInterface::getMaxLength()
Properties summary
protected array $propertyNames array()
#

The used property names.

The used property names.

protected string $format '%s'
#

The format string.

The format string.

protected integer|null $maxLength null
#

The maximum length of the formatted string.

The maximum length of the formatted string.

contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0