/**
  * @return CSort the sorting object. If this is false, it means the sorting is disabled.
  */
 public function getSort()
 {
     if (($sort = parent::getSort()) !== false) {
         $sort->modelClass = $this->modelClass;
     }
     return $sort;
 }
Ejemplo n.º 2
0
 /**
  * Returns the sorting object.
  *
  * @param string $className
  *            the sorting object class name. Parameter is available since version 1.1.13.
  * @return CSort the sorting object. If this is false, it means the sorting is disabled.
  */
 public function getSort($className = 'CSort')
 {
     if (($sort = parent::getSort($className)) !== false) {
         $sort->modelClass = $this->modelClass;
     }
     return $sort;
 }