gyro/core/lib/interfaces/isorteradapter.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Translate an URL into Sorting 00004 * 00005 * @todo Needs to be filled 00006 * 00007 * @author Gerd Riesselmann 00008 * @ingroup Interfaces 00009 */ 00010 interface ISorterAdapter { 00011 /** 00012 * Return column key of column to sort after 00013 * 00014 * @return string 00015 */ 00016 public function get_column(); 00017 00018 /** 00019 * Returns sort order ('forward' or 'backward') 00020 * 00021 * False if no order was set 00022 * 00023 * @return string 00024 */ 00025 public function get_order(); 00026 00027 /** 00028 * Return link to invoke sorting on given column with given order 00029 * 00030 * @param string $column 00031 * @param string $order 00032 * @return Url 00033 */ 00034 public function get_url_for_sort($column, $order); 00035 }