2011-03-22 22:23:43 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* This interface lets us set up objects that will tell us what the current page is.
|
2011-03-22 10:47:26 +01:00
|
|
|
* @package cms
|
2011-03-22 22:23:43 +01:00
|
|
|
* @subpackage model
|
|
|
|
*/
|
|
|
|
interface CurrentPageIdentifier {
|
|
|
|
/**
|
|
|
|
* Get the current page ID.
|
|
|
|
* @return int
|
|
|
|
*/
|
2012-09-19 12:07:46 +02:00
|
|
|
public function currentPageID();
|
2016-03-08 21:50:55 +01:00
|
|
|
|
2011-03-22 22:23:43 +01:00
|
|
|
/**
|
|
|
|
* Check if the given DataObject is the current page.
|
|
|
|
* @param DataObject $page The page to check.
|
|
|
|
* @return boolean
|
|
|
|
*/
|
2012-09-19 12:07:46 +02:00
|
|
|
public function isCurrentPage(DataObject $page);
|
2011-03-22 22:23:43 +01:00
|
|
|
}
|
|
|
|
|