1 | <?php |
||
13 | class Carbon_Breadcrumb_Admin { |
||
14 | |||
15 | /** |
||
16 | * Settings container. |
||
17 | * |
||
18 | * @access public |
||
19 | * |
||
20 | * @var Carbon_Breadcrumb_Admin_Settings |
||
21 | */ |
||
22 | public $settings = null; |
||
23 | |||
24 | /** |
||
25 | * Constructor. |
||
26 | * |
||
27 | * Creates the administration functionality wrapper. |
||
28 | * |
||
29 | * @access public |
||
30 | */ |
||
31 | public function __construct() { |
||
41 | |||
42 | /** |
||
43 | * Include the administration files. |
||
44 | * |
||
45 | * @access public |
||
46 | */ |
||
47 | public function include_files() { |
||
55 | |||
56 | /** |
||
57 | * Initialize breadcrumb administration. |
||
58 | * |
||
59 | * @access public |
||
60 | */ |
||
61 | public function admin_menu() { |
||
65 | |||
66 | /** |
||
67 | * Initialize breadcrumb frontend. |
||
68 | * |
||
69 | * @access public |
||
70 | */ |
||
71 | public function init() { |
||
75 | |||
76 | /** |
||
77 | * Register and setup the settings page and fields. |
||
78 | * |
||
79 | * @access public |
||
80 | */ |
||
81 | public function register_settings() { |
||
85 | |||
86 | /** |
||
87 | * Apply the settings to the breadcrumb trail renderer |
||
88 | * |
||
89 | * @access public |
||
90 | * |
||
91 | * @param array $settings The default settings. |
||
92 | * @return array $settings The modified settings. |
||
93 | */ |
||
94 | public function apply_settings( $settings = array() ) { |
||
106 | |||
107 | /** |
||
108 | * Whether the administration interface should be enabled. |
||
109 | * |
||
110 | * @access public |
||
111 | * |
||
112 | * @return bool $is_enabled True if the admin interface is enabled. |
||
113 | */ |
||
114 | public function is_enabled() { |
||
132 | |||
133 | /** |
||
134 | * Returns the current directory. |
||
135 | * Useful for covering multiple cases in unit tests. |
||
136 | * |
||
137 | * @access public |
||
138 | * |
||
139 | * @return string The absolute directory of the current file. |
||
140 | */ |
||
141 | public function current_dir() { |
||
144 | |||
145 | } |
||
146 |