PHP 클래스 Msieprawski\ResourceTable\ResourceTable

파일 보기 프로젝트 열기: msieprawski/resource-table 1 사용 예제들

공개 메소드들

메소드 설명
collection ( ) : Collection Returns "last set" Collection object after calling ResourceTable::of
getSearchValue ( string $name ) : mixed Returns search form default value
of ( Builder | Builder $builder ) : Collection Sets builder and returns collection
setCustomView ( string $customView ) Set custom view name if you've created your own ResourceTable template
setFilter ( boolean $filter ) Set true if you wan to enable filter
setPage ( integer $page ) Current page
setPaginate ( boolean $paginate ) Set false if you dont want to use pagination
setPaginationPresenter ( string $presenter ) Set pagination presenter class name
setPerPage ( integer $perPage ) How many results per page
setRendererNamespace ( string $namespace ) Set renderers default namespace to prevent long renderers names
setView ( string $view ) Set ResourceTable built-in view name
validColumnType ( string $type ) : boolean Returns array with valid column type options

비공개 메소드들

메소드 설명
_addCustomAttributes ( Collection $collection ) : Collection Sets custom configuration (if set) on given Collection

메소드 상세

collection() 공개 정적인 메소드

Returns "last set" Collection object after calling ResourceTable::of
public static collection ( ) : Collection
리턴 Msieprawski\ResourceTable\Generators\Collection

getSearchValue() 공개 정적인 메소드

Returns search form default value
public static getSearchValue ( string $name ) : mixed
$name string
리턴 mixed

of() 공개 정적인 메소드

Sets builder and returns collection
public static of ( Builder | Builder $builder ) : Collection
$builder Illuminate\Database\Eloquent\Builder | Illuminate\Database\Query\Builder
리턴 Msieprawski\ResourceTable\Generators\Collection

setCustomView() 공개 정적인 메소드

Set custom view name if you've created your own ResourceTable template
public static setCustomView ( string $customView )
$customView string

setFilter() 공개 정적인 메소드

Set true if you wan to enable filter
public static setFilter ( boolean $filter )
$filter boolean

setPage() 공개 정적인 메소드

Current page
public static setPage ( integer $page )
$page integer

setPaginate() 공개 정적인 메소드

Set false if you dont want to use pagination
public static setPaginate ( boolean $paginate )
$paginate boolean

setPaginationPresenter() 공개 정적인 메소드

Set pagination presenter class name
public static setPaginationPresenter ( string $presenter )
$presenter string

setPerPage() 공개 정적인 메소드

How many results per page
public static setPerPage ( integer $perPage )
$perPage integer

setRendererNamespace() 공개 정적인 메소드

Set renderers default namespace to prevent long renderers names
public static setRendererNamespace ( string $namespace )
$namespace string

setView() 공개 정적인 메소드

Set ResourceTable built-in view name
public static setView ( string $view )
$view string

validColumnType() 공개 정적인 메소드

Returns array with valid column type options
public static validColumnType ( string $type ) : boolean
$type string
리턴 boolean