Contao Utils Bundle

DC_Table_Utils extends DC_Table
in package

Table of Contents

Methods

__construct()  : mixed
Initialize the object.
createFromModel()  : static
Create a DataContainer instance from a given Model.
createFromModelData()  : static
Create a DataContainer instance from given model data.

Methods

__construct()

Initialize the object.

public __construct(string $strTable[, array<string|int, mixed> $arrModule = [] ]) : mixed
Parameters
$strTable : string
$arrModule : array<string|int, mixed> = []

createFromModel()

Create a DataContainer instance from a given Model.

public static createFromModel(Model $model) : static
Parameters
$model : Model
Return values
static

createFromModelData()

Create a DataContainer instance from given model data.

public static createFromModelData(array<string|int, mixed> $modelData, string $table[, string $field = null ]) : static
Parameters
$modelData : array<string|int, mixed>
$table : string
$field : string = null
Return values
static

        
On this page

Search results