com\setasign\Konquadrat\Datasource

DatasourceFactoryInterface Interface DatasourceFactoryInterface

File: /Konquadrat/src/Datasource/DatasourceFactoryInterface.php

Implemented in

Summary

Methods

buildDatasourceByGridConfig()

abstract public DatasourceFactoryInterface::buildDatasourceByGridConfig (
\com\setasign\SetaFramework\Config\Config $gridConfig,
?int $context
): DatasourceInterface

Find and build the datasource matching to the given grid configuration and context.

Parameters
$gridConfig : \com\setasign\SetaFramework\Config\Config
 
$context : ?int
 

buildDatasourceById()

abstract public DatasourceFactoryInterface::buildDatasourceById (
int|string $id,
?int $context
): DatasourceInterface

Find and build the datasource matching to the given id and context. Cannot find ObjectDatasources because they cannot exist without a grid configuration.

Parameters
$id : int|string
 
$context : ?int