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

Class DefaultConfig

Class DefaultConfig.

This class is the default implementation of the ConfigInterface.

DcGeneral\Data\DefaultConfig implements DcGeneral\Data\ConfigInterface
Namespace: DcGeneral\Data
Package: DcGeneral\Data
Located at Data/DefaultConfig.php
Methods summary
private
# __construct( )

Create object.

Create object.

Private as only the data provider shall know how to instantiate.

public static DcGeneral\Data\ConfigInterface
# init( )

Static constructor.

Static constructor.

Returns

DcGeneral\Data\ConfigInterface

Todo:

do we want to keep this behaviour? Third party will not know the correct class anyway.

Implementation of

DcGeneral\Data\ConfigInterface::init()
public mixed
# getId( )

Get specific id.

Get specific id.

Returns

mixed

Implementation of

DcGeneral\Data\ConfigInterface::getId()
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

Implementation of

DcGeneral\Data\ConfigInterface::setId()
public array
# getIds( )

Get list of specific ids to be retrieved.

Get list of specific ids to be retrieved.

Returns

array

Implementation of

DcGeneral\Data\ConfigInterface::getIds()
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

Implementation of

DcGeneral\Data\ConfigInterface::setIds()
public boolean
# getIdOnly( )

Return flag if only ids should be returned.

Return flag if only ids should be returned.

Returns

boolean

Implementation of

DcGeneral\Data\ConfigInterface::getIdOnly()
public boolean
# 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

boolean

Implementation of

DcGeneral\Data\ConfigInterface::setIdOnly()
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

Implementation of

DcGeneral\Data\ConfigInterface::getStart()
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

Implementation of

DcGeneral\Data\ConfigInterface::setStart()
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

Implementation of

DcGeneral\Data\ConfigInterface::getAmount()
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

Implementation of

DcGeneral\Data\ConfigInterface::setAmount()
public array
# getFilter( )

Get the list with filter options.

Get the list with filter options.

Returns

array

Implementation of

DcGeneral\Data\ConfigInterface::getFilter()
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

Implementation of

DcGeneral\Data\ConfigInterface::setFilter()
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

Implementation of

DcGeneral\Data\ConfigInterface::getSorting()
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

Implementation of

DcGeneral\Data\ConfigInterface::setSorting()
public array
# getFields( )

Get the list of fields to be retrieved.

Get the list of fields to be retrieved.

Returns

array

Implementation of

DcGeneral\Data\ConfigInterface::getFields()
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

Implementation of

DcGeneral\Data\ConfigInterface::setFields()
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

Implementation of

DcGeneral\Data\ConfigInterface::get()
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

Implementation of

DcGeneral\Data\ConfigInterface::set()
Properties summary
protected mixed $mixId null
#

The id of the element to be retrieved.

The id of the element to be retrieved.

protected array $arrIds array()
#

The ids to be retrieved.

The ids to be retrieved.

protected boolean $blnIdOnly false
#

Flag determining if only the ids shall get fetched or models.

Flag determining if only the ids shall get fetched or models.

See

fetch
protected integer $intStart 0
#

Offset for retrieving entries.

Offset for retrieving entries.

protected integer $intAmount 0
#

Amount of entries to be retrieved.

Amount of entries to be retrieved.

protected array|null $arrFilter null
#

The filters to use.

The filters to use.

protected array(string $arrSorting array()
#

The properties to use for sorting.

The properties to use for sorting.

protected array|null $arrFields null
#

The properties to retrieve.

The properties to retrieve.

protected array $arrData array()
#

Miscellaneous arbitrary data stored in the config.

Miscellaneous arbitrary data stored in the config.

See

DcGeneral\Data\DefaultConfig::set()
DcGeneral\Data\DefaultConfig::get()
contao-community-alliance/dc-general API documentation generated by ApiGen 2.8.0