1 <?php
2 /**
3 * This interface lets us set up objects that will tell us what the current page is.
4 * @package sapphire
5 * @subpackage model
6 */
7 interface CurrentPageIdentifier {
8 /**
9 * Get the current page ID.
10 * @return int
11 */
12 function currentPageID();
13
14 /**
15 * Check if the given DataObject is the current page.
16 * @param DataObject $page The page to check.
17 * @return boolean
18 */
19 function isCurrentPage(DataObject $page);
20 }
21
22 ?>