LLMS_Admin_Table::get_new_order( $orderby = '' )

Gets the opposite of the current order.


Description Description

Used to determine what order should be displayed when resorting.


Top ↑

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';
		} 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.