PHP Class Kyslik\ColumnSortable\SortableLink

Exibir arquivo Open project: kyslik/column-sortable Class Usage Examples

Public Methods

Method Description
explodeSortParameter ( $parameter ) : array Explodes parameter if possible and returns array [relation, column] Empty array is returned if explode could not run eg: separator was not found.
parseParameters ( array $parameters ) : array
render ( array $parameters ) : string

Private Methods

Method Description
applyFormatting ( string $title ) : string
getAnchorClass ( ) : string

Method Details

explodeSortParameter() public static method

Explodes parameter if possible and returns array [relation, column] Empty array is returned if explode could not run eg: separator was not found.
public static explodeSortParameter ( $parameter ) : array
$parameter
return array

parseParameters() public static method

public static parseParameters ( array $parameters ) : array
$parameters array
return array

render() public static method

public static render ( array $parameters ) : string
$parameters array
return string