Interface ConfigInterface.
This interface describes the configuration objects to use when retrieving
models and collections from a data provider.
Methods summary
public static
mixed
|
#
init( )
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.
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|