2011-03-23 10:23:43 +13:00
|
|
|
<?php
|
2016-06-16 16:57:19 +12:00
|
|
|
|
2016-07-22 11:32:32 +12:00
|
|
|
namespace SilverStripe\CMS\Model;
|
|
|
|
|
2016-06-16 16:57:19 +12:00
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
|
2011-03-23 10:23:43 +13:00
|
|
|
/**
|
|
|
|
* This interface lets us set up objects that will tell us what the current page is.
|
2011-03-22 22:47:26 +13:00
|
|
|
* @package cms
|
2011-03-23 10:23:43 +13:00
|
|
|
* @subpackage model
|
|
|
|
*/
|
|
|
|
interface CurrentPageIdentifier {
|
2016-08-10 16:08:39 +12:00
|
|
|
|
2011-03-23 10:23:43 +13:00
|
|
|
/**
|
|
|
|
* Get the current page ID.
|
|
|
|
* @return int
|
|
|
|
*/
|
2012-09-19 12:07:46 +02:00
|
|
|
public function currentPageID();
|
2016-03-09 09:50:55 +13:00
|
|
|
|
2011-03-23 10:23:43 +13: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-23 10:23:43 +13:00
|
|
|
}
|
|
|
|
|