Skip to content

Commit

Permalink
MINOR Moved CurrentPageIdentifier from 'sapphire' to 'cms' module
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Mar 27, 2011
1 parent f407c18 commit 0b5e9ba
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions code/CurrentPageIdentifier.php
@@ -0,0 +1,22 @@
<?php
/**
* This interface lets us set up objects that will tell us what the current page is.
* @package sapphire
* @subpackage model
*/
interface CurrentPageIdentifier {
/**
* Get the current page ID.
* @return int
*/
function currentPageID();

/**
* Check if the given DataObject is the current page.
* @param DataObject $page The page to check.
* @return boolean
*/
function isCurrentPage(DataObject $page);
}

?>

0 comments on commit 0b5e9ba

Please sign in to comment.