EssaysReportsGenerator::addAdditionalOrderBy( $strOrder )
Add additional order sql statement
Description
Source
File: bp-integrations/learndash/buddypress/generators/EssaysReportsGenerator.php
public function addAdditionalOrderBy($strOrder) { $strOrder = 'GREATEST(essay_modify_date, essay_post_date) DESC'; if ($this->hasArg('order')) { $columns = $this->columns(); $columnIndex = $this->args['order'][0]['column']; $column = $columns[$this->args['columns'][$columnIndex]['name']]; $strOrder = "{$column['order_key']} {$this->args['order'][0]['dir']}, {$strOrder}"; } return $strOrder; }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.