PHP Class Devise\Support\Sortable\Link

Afficher le fichier Open project: devisephp/cms Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

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

Private Methods

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

Method Details

__construct() public méthode

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 méthode

protected bustUpField ( $field ) : array
$field
Résultat array

getBaseClasses() protected méthode

protected getBaseClasses ( $options ) : array
$options
Résultat array

getDirection() protected méthode

protected getDirection ( $field, $relationship, $classes, $currentlySorted ) : array
$field
$classes
Résultat array

getLinkParameters() protected méthode

protected getLinkParameters ( $field, $options, $currentDirection, $relationship = null ) : mixed
$field
$options
$currentDirection
$relationship
Résultat mixed