Class SmartSort
Filters GET parameters by unique id to prevent issues that arise when
multiple instances of X2GridView * are on the same page.
-
CComponent
-
CSort
-
SmartSort
Methods summary
public
string
|
#
getOrderBy( CDbCriteria $criteria = null )
Parameters
- $criteria
CDbCriteria $criteria the query criteria
Returns
string the order-by columns represented by this sort object. This can be put in the
ORDER BY clause of a SQL statement.
Since
1.1.0
Overrides
CSort::getOrderBy()
|
public
|
#
__construct( string $modelClass = null, mixed $uniqueId = null )
Overrides parent __construct ().
Overrides parent __construct ().
Parameters
- $modelClass
string $uniqueId (optional) If set, will be used to uniquely identify this sort
instance. This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/
- $uniqueId
Overrides
CSort::__construct()
|
public
string
|
#
createUrl( CController $controller, array $directions )
Added filtering of GET params so that only those related to the current sort
get used to generate the url.
Added filtering of GET params so that only those related to the current sort
get used to generate the url.
This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/
Parameters
- $controller
CController $controller the controller that will be used to create the URL.
- $directions
array $directions the sort directions indexed by attribute names. The sort direction
can be either CSort::SORT_ASC for ascending order or CSort::SORT_DESC for
descending order.
Returns
string the URL for sorting
Overrides
CSort::createUrl()
|
Methods inherited from CSort
applyOrder(),
createLink(),
getDirection(),
getDirections(),
getModel(),
link(),
resolveAttribute(),
resolveLabel()
|
Methods inherited from CComponent
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
Constants inherited from CSort
SORT_ASC,
SORT_DESC
|
Properties inherited from CSort
$attributes,
$defaultOrder,
$descTag,
$modelClass,
$multiSort,
$params,
$route,
$separators,
$sortVar
|
Magic properties inherited from CSort
$directions,
$orderBy
|