PHP 클래스 OpenSkill\Datatable\Datatable

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

공개 메소드들

메소드 설명
__construct ( VersionEngine $versionEngine, Illuminate\Contracts\View\Factory $viewFactory, Illuminate\Contracts\Config\Repository $configRepository ) Datatable constructor.
make ( OpenSkill\Datatable\Providers\Provider $provider ) : ColumnComposer Will create a new DataComposer with the given provider as implementation.
view ( string $tableView = null, string $scriptView = null ) : DatatableView Will return a default DatatableView with no columns defined, but with the view and the version prepared.

메소드 상세

__construct() 공개 메소드

Datatable constructor.
public __construct ( VersionEngine $versionEngine, Illuminate\Contracts\View\Factory $viewFactory, Illuminate\Contracts\Config\Repository $configRepository )
$versionEngine OpenSkill\Datatable\Versions\VersionEngine The version engine that determines the correct version
$viewFactory Illuminate\Contracts\View\Factory The factory used to handle the view generation
$configRepository Illuminate\Contracts\Config\Repository The repository responsible to get config values

make() 공개 메소드

Will create a new DataComposer with the given provider as implementation.
public make ( OpenSkill\Datatable\Providers\Provider $provider ) : ColumnComposer
$provider OpenSkill\Datatable\Providers\Provider The provider for the underlying data.
리턴 OpenSkill\Datatable\Composers\ColumnComposer

view() 공개 메소드

The user is responsible to populate the view with the wished columns, because they can not be derived from the server side column configuration.
public view ( string $tableView = null, string $scriptView = null ) : DatatableView
$tableView string the name of the table view to render
$scriptView string the name of the script view to render
리턴 OpenSkill\Datatable\Views\DatatableView the view to work with