PHP Class Devise\Support\Sortable\Link

Show file Open project: devisephp/cms Class Usage Examples

Public Methods

Method Description
__construct ( Framework $Framework, null $field = null, null $label = null, array $options = [], array $defaultOrderBy = [] ) Construct a new link
getClearSortLink ( $text, $options ) : string
getLink ( $cookie ) : string

Protected Methods

Method Description
bustUpField ( $field ) : array
getBaseClasses ( $options ) : array
getDirection ( $field, $relationship, $classes, $currentlySorted ) : array
getLinkParameters ( $field, $options, $currentDirection, $relationship = null ) : mixed

Private Methods

Method Description
findIfCurrentSorted ( $cookie, $relationship, $field ) : boolean
getMultiSortOrder ( $currentlySorted, $cookie ) : null | string

Method Details

__construct() public method

Construct a new link
public __construct ( Framework $Framework, null $field = null, null $label = null, array $options = [], array $defaultOrderBy = [] )
$Framework Devise\Support\Framework
$field null
$label null
$options array
$defaultOrderBy array

bustUpField() protected method

protected bustUpField ( $field ) : array
$field
return array

getBaseClasses() protected method

protected getBaseClasses ( $options ) : array
$options
return array

getDirection() protected method

protected getDirection ( $field, $relationship, $classes, $currentlySorted ) : array
$field
$classes
return array

getLinkParameters() protected method

protected getLinkParameters ( $field, $options, $currentDirection, $relationship = null ) : mixed
$field
$options
$currentDirection
$relationship
return mixed