data\BaseDataProvider setSort()

setSort() public method

Sets the sort definition for this data provider.

public void setSort ( $value )
$value array|yii\data\Sort|boolean

The sort definition to be used by this data provider. This can be one of the following:

  • a configuration array for creating the sort definition object. The "class" element defaults to 'yii\data\Sort'
  • an instance of yii\data\Sort or its subclass
  • false, if sorting needs to be disabled.
throws yii\base\InvalidParamException
doc_Yii
2016-10-30 16:55:51
Comments
Leave a Comment

Please login to continue.