Skip to content

Commit

Permalink
Add function populateState for default sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmert committed Feb 3, 2016
1 parent ea9f6d9 commit 0eb1f34
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions administrator/components/com_content/models/featured.php
Expand Up @@ -202,4 +202,21 @@ protected function getListQuery($resolveFKs = true)

return $query;
}

/**
* Method to auto-populate the model state.
*
* Note. Calling getState in this method will result in recursion.
*
* @param string $ordering An optional ordering field.
* @param string $direction An optional direction (asc|desc).
*
* @return void
*
* @since 1.6
*/
protected function populateState($ordering = 'a.title', $direction = 'asc')
{
parent::populateState($ordering, $direction);
}
}

0 comments on commit 0eb1f34

Please sign in to comment.