| 1 |
<?php
|
| 2 |
// $Id$
|
| 3 |
|
| 4 |
abstract class SimpleListFilterParent {
|
| 5 |
protected $cache_engine;
|
| 6 |
|
| 7 |
public function __construct($cache_engine) {
|
| 8 |
$this->cache_engine = $cache_engine;
|
| 9 |
}
|
| 10 |
|
| 11 |
protected function get_sort_order_from_sort_data($sort_data) {
|
| 12 |
return ($sort_data == 'DESC' || $sort_data == 'ASC' ? $sort_data : '');
|
| 13 |
}
|
| 14 |
|
| 15 |
abstract public function get_node_list($simple_list, $count, $offset, $paged);
|
| 16 |
abstract public static function get_filter_form($simplelist);
|
| 17 |
abstract public static function get_filter_form_validate(&$form, &$form_state);
|
| 18 |
abstract public static function get_filter_form_submit($form_id, &$form_state);
|
| 19 |
abstract public static function clear_existing_settings($slid, $form_id='', &$form_state=NULL);
|
| 20 |
}
|
| 21 |
?>
|