PHP Class OpenSkill\Datatable\Versions\Datatable19Version

Inheritance: extends OpenSkill\Datatable\Versions\Version
Show file Open project: openskill/datatable Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack ) Datatable19Version constructor.
createResponse ( ResponseData $data, OpenSkill\Datatable\Queries\QueryConfiguration $queryConfiguration, array $columnConfigurations ) : Symfony\Component\HttpFoundation\JsonResponse Is responsible to take the generated data and prepare a response for it.
scriptView ( ) : string
tableView ( ) : string

Method Details

__construct() public method

Datatable19Version constructor.
public __construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack )
$requestStack Symfony\Component\HttpFoundation\RequestStack The current request

createResponse() public method

Is responsible to take the generated data and prepare a response for it.
public createResponse ( ResponseData $data, OpenSkill\Datatable\Queries\QueryConfiguration $queryConfiguration, array $columnConfigurations ) : Symfony\Component\HttpFoundation\JsonResponse
$data OpenSkill\Datatable\Data\ResponseData The processed data.
$queryConfiguration OpenSkill\Datatable\Queries\QueryConfiguration the query configuration for the current request.
$columnConfigurations array the column configurations for the current data table.
return Symfony\Component\HttpFoundation\JsonResponse the response that should be returned to the client.

scriptView() public method

public scriptView ( ) : string
return string The name of the view that this version should use for the script.

tableView() public method

public tableView ( ) : string
return string The name of the view that this version should use fot the table.