silverstripe-cms/code/Model/CurrentPageIdentifier.php

26 lines
511 B
PHP
Raw Normal View History

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