2011-03-22 22:23:43 +01:00
|
|
|
<?php
|
2016-06-16 06:57:19 +02:00
|
|
|
|
2016-07-22 01:32:32 +02:00
|
|
|
namespace SilverStripe\CMS\Model;
|
|
|
|
|
2016-06-16 06:57:19 +02:00
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
|
2011-03-22 22:23:43 +01:00
|
|
|
/**
|
|
|
|
* This interface lets us set up objects that will tell us what the current page is.
|
|
|
|
*/
|
2017-01-25 21:59:25 +01:00
|
|
|
interface CurrentPageIdentifier
|
|
|
|
{
|
2016-08-10 06:08:39 +02:00
|
|
|
|
2017-01-25 21:59:25 +01:00
|
|
|
/**
|
|
|
|
* Get the current page ID.
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function currentPageID();
|
2016-03-08 21:50:55 +01:00
|
|
|
|
2017-01-25 21:59:25 +01:00
|
|
|
/**
|
|
|
|
* Check if the given DataObject is the current page.
|
|
|
|
* @param DataObject $page The page to check.
|
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
public function isCurrentPage(DataObject $page);
|
2011-03-22 22:23:43 +01:00
|
|
|
}
|