메소드 | 설명 | |
---|---|---|
__construct ( OpenSkill\Datatable\Providers\Provider $provider, OpenSkill\Datatable\Columns\ColumnConfiguration[] $columnConfigurations, |
DatatableService constructor. | |
handleRequest ( ) : Symfony\Component\HttpFoundation\JsonResponse | Will handle the current request and returns the correct response | |
prepareRequest ( ) : OpenSkill\Datatable\Versions\Version | Prepare a request for processing (without doing the actual datatable). | |
setVersion ( OpenSkill\Datatable\Versions\Version $version ) | ||
shouldHandle ( ) : boolean | ||
view ( string $tableView = null, string $scriptView = null ) : |
public __construct ( OpenSkill\Datatable\Providers\Provider $provider, OpenSkill\Datatable\Columns\ColumnConfiguration[] $columnConfigurations, |
||
$provider | OpenSkill\Datatable\Providers\Provider | The provider that will prepare the data |
$columnConfigurations | OpenSkill\Datatable\Columns\ColumnConfiguration[] | |
$versionEngine | ||
$viewFactory | Illuminate\Contracts\View\Factory | The factory to render the views |
$configRepository | Illuminate\Contracts\Config\Repository | The repository to get the config values from |
public handleRequest ( ) : Symfony\Component\HttpFoundation\JsonResponse | ||
리턴 | Symfony\Component\HttpFoundation\JsonResponse | the response that should be returned to the client. |
public prepareRequest ( ) : OpenSkill\Datatable\Versions\Version | ||
리턴 | OpenSkill\Datatable\Versions\Version |
public setVersion ( OpenSkill\Datatable\Versions\Version $version ) | ||
$version | OpenSkill\Datatable\Versions\Version | The version that should be used to generate the view and the responses |
public shouldHandle ( ) : boolean | ||
리턴 | boolean | True if any version should handle the current request |
public view ( string $tableView = null, string $scriptView = null ) : |
||
$tableView | string | the view to use or null if the standard view should be used for the table and the script |
$scriptView | string | the view to use or null if the standard view should be used for the table and the script |
리턴 |