src/DB/TableReader.php
protected function getOrderQuery( $orders = array() )
	{
		if( is_array( $orders ) && count( $orders ) )
		{
			$order = array();
			foreach( $orders as $key => $value )
				$order[] = $key.' '.$value;
			$orders = ' ORDER BY '.implode( ', ', $order );
		}
		else
			$orders = '';
		return $orders;
	}
protected function getOrderQuery( $orders = array() )
	{
		if( is_array( $orders ) && count( $orders ) )
		{
			$order = array();
			foreach( $orders as $key => $value )
				$order[] = $key.' '.$value;
			$orders = ' ORDER BY '.implode( ', ', $order );
		}
		else
			$orders = '';
		return $orders;
	}
protected function getOrderQuery ( $ orders = array ( ) ) { if ( is_array ( $ orders ) && count ( $ orders ) ) { $ order = array ( ) ; foreach ( $ orders as $ key => $ value ) $ order [ ] = $ key . ' ' . $ value ; $ orders = ' ORDER BY ' . implode ( ', ' , $ order ) ; } else $ orders = '' ; return $ orders ; }
Builds Query Order.
@access		protected
@param		array		$orders			Array of Orders, like array('field1'=>'ASC','field'=>'DESC')
@return		string
Builds Query Order .