PHP Class OpenSkill\Datatable\Versions\DatatableVersion

Inheritance: extends OpenSkill\Datatable\Versions\Version
Afficher le fichier Open project: openskill/datatable Class Usage Examples

Protected Properties

Свойство Type Description
$queryParser OpenSkill\Datatable\Queries\Parser\QueryParser

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack, OpenSkill\Datatable\Queries\Parser\QueryParser $queryParser ) DatatableVersion constructor.
canParseRequest ( ) : boolean Method to determine if this parser can handle the query parameters. If so then the parser should return true and be able to return a DTQueryConfiguration
parseRequest ( array $columnConfiguration ) : OpenSkill\Datatable\Queries\QueryConfiguration Method that should parse the request and return a DTQueryConfiguration

Private Methods

Méthode Description
getRequest ( ) : Request Get the request out of the request stack

Method Details

__construct() public méthode

DatatableVersion constructor.
public __construct ( Symfony\Component\HttpFoundation\RequestStack $requestStack, OpenSkill\Datatable\Queries\Parser\QueryParser $queryParser )
$requestStack Symfony\Component\HttpFoundation\RequestStack
$queryParser OpenSkill\Datatable\Queries\Parser\QueryParser

canParseRequest() public méthode

Method to determine if this parser can handle the query parameters. If so then the parser should return true and be able to return a DTQueryConfiguration
public canParseRequest ( ) : boolean
Résultat boolean true if the parser is able to parse the query parameters and to return a DTQueryConfiguration

parseRequest() public méthode

Method that should parse the request and return a DTQueryConfiguration
public parseRequest ( array $columnConfiguration ) : OpenSkill\Datatable\Queries\QueryConfiguration
$columnConfiguration array The configuration of the columns
Résultat OpenSkill\Datatable\Queries\QueryConfiguration the configuration the provider can use to prepare the data

Property Details

$queryParser protected_oe property

protected QueryParser,OpenSkill\Datatable\Queries\Parser $queryParser
Résultat OpenSkill\Datatable\Queries\Parser\QueryParser