PHP 클래스 Piwik\DataTable\Filter\Sort

It is possible to specify a natural sorting (see php.net/natsort for details).
상속: extends Piwik\DataTable\BaseFilter
파일 보기 프로젝트 열기: piwik/piwik 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$columnToSort
$isSecondaryColumnSortEnabled
$naturalSort
$order

공개 메소드들

메소드 설명
__construct ( DataTable $table, string $columnToSort, string $order = 'desc', boolean $naturalSort = true, boolean $recursiveSort = true, boolean $doSortBySecondaryColumn = false ) Constructor.
filter ( DataTable $table ) : mixed See {@link Sort}.

비공개 메소드들

메소드 설명
sort ( Sorter $sorter, DataTable $table )

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( DataTable $table, string $columnToSort, string $order = 'desc', boolean $naturalSort = true, boolean $recursiveSort = true, boolean $doSortBySecondaryColumn = false )
$table Piwik\DataTable The table to eventually filter.
$columnToSort string The name of the column to sort by.
$order string order `'asc'` or `'desc'`.
$naturalSort boolean Whether to use a natural sort or not (see {@link http://php.net/natsort}).
$recursiveSort boolean Whether to sort all subtables or not.
$doSortBySecondaryColumn boolean If true will sort by a secondary column. The column is automatically detected and will be either nb_visits or label, if possible.

filter() 공개 메소드

See {@link Sort}.
public filter ( DataTable $table ) : mixed
$table Piwik\DataTable
리턴 mixed

프로퍼티 상세

$columnToSort 보호되어 있는 프로퍼티

protected $columnToSort

$isSecondaryColumnSortEnabled 보호되어 있는 프로퍼티

protected $isSecondaryColumnSortEnabled

$naturalSort 보호되어 있는 프로퍼티

protected $naturalSort

$order 보호되어 있는 프로퍼티

protected $order