DiscussionModel::getAllowedSorts PHP Method

getAllowedSorts() public static method

public static getAllowedSorts ( ) : array
return array The current sort array.
    public static function getAllowedSorts()
    {
        self::initStatic();
        return self::$allowedSorts;
    }

Usage Example

コード例 #1
0
 /**
  * Checks whether we should even render this whole thing.
  *
  * @return bool Whether to render the module.
  */
 public function prepare()
 {
     $this->sorts = DiscussionModel::getAllowedSorts();
     $this->filters = DiscussionModel::getAllowedFilters();
     return !empty($this->sorts) || !empty($this->filters);
 }