RedBeanSort Class Reference

Public Member Functions

 resolveAttribute ($attribute)
 resolveLabel ($attribute)
 getDirections ()
 getSortAttribute ()
 setSortAttribute ($sortAttribute)
 getSortDescending ()
 setSortDescending ($sortDescending)

Detailed Description

Definition at line 37 of file RedBeanSort.php.


Member Function Documentation

resolveAttribute ( attribute  ) 

Override so that the model can be retrieved using redBean model and not CActiveRecord. Also made 'id' attribute automatically return itself since this is always an attribute on the model

Definition at line 49 of file RedBeanSort.php.

resolveLabel ( attribute  ) 

Override so that the model can be retrieved using redBean model and not CActiveRecord

Definition at line 100 of file RedBeanSort.php.

getDirections (  ) 

Override the default method to read from model in case attribute is not present in request

Returns:
array sort directions indexed by attribute names. Sort direction can be either CSort::SORT_ASC for ascending order or CSort::SORT_DESC for descending order.

Definition at line 138 of file RedBeanSort.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Oct 21 07:10:29 2017