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

  • AbstractModel
  • DCGE
  • DefaultCollection
  • DefaultConfig
  • DefaultDataProvider
  • DefaultLanguageInformation
  • DefaultLanguageInformationCollection
  • DefaultModel
  • MultiLanguageDataProvider
  • NoOpDataProvider
  • PropertyValueBag
  • TableRowsAsRecordsDataProvider

Interfaces

  • CollectionInterface
  • ConfigInterface
  • DataProviderInterface
  • LanguageInformationCollectionInterface
  • LanguageInformationInterface
  • ModelInterface
  • MultiLanguageDataProviderInterface
  • PropertyValueBagInterface
  • VersionModelInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo

Interface ConfigInterface

Interface ConfigInterface.

This interface describes the configuration objects to use when retrieving models and collections from a data provider.

Direct known implementers

DcGeneral\Data\DefaultConfig
Namespace: DcGeneral\Data
Package: DcGeneral\Data
Located at Data/ConfigInterface.php
Methods summary
public static mixed
# init( )

Static constructor.

Static constructor.

Returns

mixed

Todo:

do we want to keep this behaviour? Third party will not know the correct class anyway.
public mixed
# getId( )

Get specific id.

Get specific id.

Returns

mixed
public DcGeneral\Data\ConfigInterface
# setId( mixed $mixId )

Set a specific id for an element to be retrieved.

Set a specific id for an element to be retrieved.

Parameters

$mixId
mixed
$mixId The id of the element to be retrieved.

Returns

DcGeneral\Data\ConfigInterface
public array
# getIds( )

Get list of specific ids to be retrieved.

Get list of specific ids to be retrieved.

Returns

array
public DcGeneral\Data\ConfigInterface
# setIds( array $arrIds )

Set list of specific ids to be retrieved.

Set list of specific ids to be retrieved.

Parameters

$arrIds
array
$arrIds The list of ids to be retrieved.

Returns

DcGeneral\Data\ConfigInterface
public boolean
# getIdOnly( )

Return flag if only ids should be returned.

Return flag if only ids should be returned.

Returns

boolean
public DcGeneral\Data\ConfigInterface
# setIdOnly( boolean $blnIdOnly )

Set flag for return id only.

Set flag for return id only.

Parameters

$blnIdOnly
boolean
$blnIdOnly Boolean flag to determine that only Ids shall be returned when calling fetchAll().

Returns

DcGeneral\Data\ConfigInterface
public integer
# getStart( )

Get the offset to start with.

Get the offset to start with.

This is the offset to use for pagination.

Returns

integer
public DcGeneral\Data\ConfigInterface
# setStart( integer $intStart )

Set the offset to start with.

Set the offset to start with.

This is the offset to use for pagination.

Parameters

$intStart
integer
$intStart Number of first element to return.

Returns

DcGeneral\Data\ConfigInterface
public integer
# getAmount( )

Get the limit for results.

Get the limit for results.

This is the amount of items to return for pagination.

Returns

integer
public DcGeneral\Data\ConfigInterface
# setAmount( integer $intAmount )

Set the limit for results.

Set the limit for results.

This is the amount of items to return for pagination.

Parameters

$intAmount
integer
$intAmount The amount to use.

Returns

DcGeneral\Data\ConfigInterface
public array
# getFilter( )

Get the list with filter options.

Get the list with filter options.

Returns

array
public DcGeneral\Data\ConfigInterface
# setFilter( array $arrFilter )

Set the list with filter options.

Set the list with filter options.

Parameters

$arrFilter
array
$arrFilter The array containing the filter values.

Returns

DcGeneral\Data\ConfigInterface
public array
# getSorting( )

Get the list of all defined sortings.

Get the list of all defined sortings.

The returning array will be of 'property name' => 'ASC|DESC' nature.

Returns

array
public array
# setSorting( array $arrSorting )

Set the list of all defined sortings.

Set the list of all defined sortings.

The array must be of 'property name' => 'ASC|DESC' nature.

Parameters

$arrSorting
array
$arrSorting The sorting array to use.

Returns

array
public array
# getFields( )

Get the list of fields to be retrieved.

Get the list of fields to be retrieved.

Returns

array
public DcGeneral\Data\ConfigInterface
# setFields( array $arrFields )

Set the list of fields to be retrieved.

Set the list of fields to be retrieved.

Parameters

$arrFields
array
$arrFields Array of property names.

Returns

DcGeneral\Data\ConfigInterface
public mixed
# get( string $strKey )

Get the additional information.

Get the additional information.

Parameters

$strKey
string
$strKey The name of the information to retrieve.

Returns

mixed
|| null
public DcGeneral\Data\ConfigInterface
# set( string $strKey, mixed $varValue )

Set the additional information.

Set the additional information.

Parameters

$strKey
string
$strKey The name of the information to retrieve.
$varValue
mixed
$varValue The value to store.

Returns

DcGeneral\Data\ConfigInterface
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0