LLMS_Admin_Table::get_new_order( $orderby = '' )

Gets the opposite of the current order Used to determine what order should be displayed when resorting


Description Description


Return Return

(string)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.admin.table.php

	protected function get_new_order( $orderby = '' ) {

		// current order matches submitted order, return opposite
		if ( $this->orderby === $orderby ) {
			return ( 'ASC' === $this->order ) ? 'DESC' : 'ASC';
		} // End if().
		else {
			return 'ASC';
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.





Permalink: