1 | <?php |
||
11 | abstract class Carbon_Pagination_Item_Direction_Page extends Carbon_Pagination_Item { |
||
12 | |||
13 | /** |
||
14 | * Initialize the item. |
||
15 | * Generate the sub items of this item. |
||
16 | */ |
||
17 | 2 | public function init() { |
|
31 | |||
32 | /** |
||
33 | * The HTML of the direction item. |
||
34 | * |
||
35 | * @abstract |
||
36 | * @return string $html The direction item HTML. |
||
37 | */ |
||
38 | abstract public function get_direction_html(); |
||
39 | |||
40 | /** |
||
41 | * The result of the condition which would disable this item. |
||
42 | * If true, this item wont be displayed. |
||
43 | * |
||
44 | * @abstract |
||
45 | * @return bool $result The condition result. |
||
46 | */ |
||
47 | abstract public function get_direction_disabled(); |
||
48 | |||
49 | /** |
||
50 | * The number of the page to link to. |
||
51 | * |
||
52 | * @abstract |
||
53 | * @return int $page The number of the page to link to. |
||
54 | */ |
||
55 | abstract public function get_direction_page_number(); |
||
56 | |||
57 | } |