PHP 클래스 OpenSkill\Datatable\DatatableService

파일 보기 프로젝트 열기: openskill/datatable 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( OpenSkill\Datatable\Providers\Provider $provider, OpenSkill\Datatable\Columns\ColumnConfiguration[] $columnConfigurations, VersionEngine $versionEngine, Illuminate\Contracts\View\Factory $viewFactory, Illuminate\Contracts\Config\Repository $configRepository ) 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 ) : DatatableView

메소드 상세

__construct() 공개 메소드

DatatableService constructor.
public __construct ( OpenSkill\Datatable\Providers\Provider $provider, OpenSkill\Datatable\Columns\ColumnConfiguration[] $columnConfigurations, VersionEngine $versionEngine, Illuminate\Contracts\View\Factory $viewFactory, Illuminate\Contracts\Config\Repository $configRepository )
$provider OpenSkill\Datatable\Providers\Provider The provider that will prepare the data
$columnConfigurations OpenSkill\Datatable\Columns\ColumnConfiguration[]
$versionEngine OpenSkill\Datatable\Versions\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

handleRequest() 공개 메소드

Will handle the current request and returns the correct response
public handleRequest ( ) : Symfony\Component\HttpFoundation\JsonResponse
리턴 Symfony\Component\HttpFoundation\JsonResponse the response that should be returned to the client.

prepareRequest() 공개 메소드

Prepare a request for processing (without doing the actual datatable).
public prepareRequest ( ) : OpenSkill\Datatable\Versions\Version
리턴 OpenSkill\Datatable\Versions\Version

setVersion() 공개 메소드

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

shouldHandle() 공개 메소드

public shouldHandle ( ) : boolean
리턴 boolean True if any version should handle the current request

view() 공개 메소드

public view ( string $tableView = null, string $scriptView = null ) : DatatableView
$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
리턴 OpenSkill\Datatable\Views\DatatableView