42 lines
777 B
PHP
42 lines
777 B
PHP
<?php
|
|
/**
|
|
* @package Kumwe CMS
|
|
*
|
|
* @created 18th April 2022
|
|
* @author Llewellyn van der Merwe <https://git.vdm.dev/Llewellyn>
|
|
* @git Kumwe CMS <https://git.vdm.dev/Kumwe/cms>
|
|
* @license GNU General Public License version 2; see LICENSE.txt
|
|
*/
|
|
|
|
namespace Kumwe\CMS\Model\Util;
|
|
|
|
/**
|
|
* Class for getting page data
|
|
*
|
|
* @since 1.0.0
|
|
*/
|
|
interface PageInterface
|
|
{
|
|
/**
|
|
* Get page data
|
|
*
|
|
* @param string $path The page path
|
|
*
|
|
* @return \stdClass
|
|
*
|
|
* @throws \RuntimeException
|
|
*/
|
|
public function getPageItemByPath(string $path): \stdClass;
|
|
|
|
/**
|
|
* Get page data
|
|
*
|
|
* @param int $item The item id
|
|
*
|
|
* @return \stdClass
|
|
*
|
|
* @throws \RuntimeException
|
|
*/
|
|
public function getPageItemById(int $item): \stdClass;
|
|
}
|