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

Interface PanelRowCollectionInterface

This interface describes a panel row collection.

DcGeneral\DataDefinition\Definition\View\PanelRowCollectionInterface implements IteratorAggregate

Direct known implementers

DcGeneral\DataDefinition\Definition\View\DefaultPanelRowCollection
Namespace: DcGeneral\DataDefinition\Definition\View
Package: DcGeneral\DataDefinition\Definition\View
Located at DataDefinition/Definition/View/PanelRowCollectionInterface.php
Methods summary
public array
# getRows( )

Return rows of panel element names.

Return rows of panel element names.

This will return the following for example: array(array('filter[prop1]', 'filter[prop2]'), array('search', 'limit'))

Note that each panel element decides its name on its own.

Returns

array
public DcGeneral\DataDefinition\Definition\View\PanelRowInterface
# addRow( integer $index = -1 )

Add a new row - optionally at the given position.

Add a new row - optionally at the given position.

If the given position is zero or any other positive value, the new row will get placed at the given position. If the index is negative or greater than the total amount of rows present, the new row will get placed at the end of the list.

Parameters

$index
integer
$index Target position for the new row.

Returns

DcGeneral\DataDefinition\Definition\View\PanelRowInterface
public DcGeneral\DataDefinition\Definition\View\PanelRowCollectionInterface
# deleteRow( integer $index )

Delete a row from the collection.

Delete a row from the collection.

Parameters

$index
integer
$index Remove the row with the given index.

Returns

DcGeneral\DataDefinition\Definition\View\PanelRowCollectionInterface
public integer
# getRowCount( )

Retrieve the amount of rows.

Retrieve the amount of rows.

Returns

integer
public DcGeneral\DataDefinition\Definition\View\PanelRowInterface
# getRow( integer $index )

Retrieve the row at the given position.

Retrieve the row at the given position.

If the given index is out of bounds (less than zero or greater than the amount of rows) an exception is fired.

Parameters

$index
integer
$index Position of the row.

Returns

DcGeneral\DataDefinition\Definition\View\PanelRowInterface
public DcGeneral\DataDefinition\Definition\View\PanelRowInterface[]
# getIterator( )

Retrieve an external iterator.

Retrieve an external iterator.

Returns

DcGeneral\DataDefinition\Definition\View\PanelRowInterface[]

Link

http://php.net/manual/en/iteratoraggregate.getiterator.php

Implementation of

IteratorAggregate::getIterator()
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0