Removed Page interfaces

This commit is contained in:
Djamil Legato
2017-12-11 11:49:19 -08:00
parent 8d82fce89f
commit d34fad65b5
6 changed files with 0 additions and 179 deletions

View File

@@ -5,7 +5,6 @@
* Added `Grav\Framework\Cache` classes providing PSR-16 `Simple Cache` implementation
* Added `Grav\Framework\ContentBlock` classes for nested HTML blocks with CSS/JS assets
* Added `Grav\Framework\Object` classes for creating collections of objects
* Added `Grav\Framework\Page` interfaces
* Added `|nicenumber` Twig filter
* Added `{% try %} ... {% catch %} Error: {{ e.message }} {% endcatch %}` tag to allow basic exception handling inside Twig
* Added `{% script %}` and `{% style %}` tags for Twig templates

View File

@@ -1,37 +0,0 @@
<?php
/**
* @package Grav\Framework\Page
*
* @copyright Copyright (C) 2014 - 2017 RocketTheme, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Framework\Page;
use RocketTheme\Toolbox\File\File;
interface FilePageInterface extends PageInterface
{
/**
* Create a new page by filename.
*
* @param string $filename
* @return static
*/
public static function createFromFilename($filename);
/**
* Create a new page by SplFileInfo object.
*
* @param \SplFileInfo $file
* @return static
*/
public static function createFromFileInfo(\SplFileInfo $file);
/**
* Get file object from the page.
*
* @return File
*/
public function getFile();
}

View File

@@ -1,15 +0,0 @@
<?php
/**
* @package Grav\Framework\Page
*
* @copyright Copyright (C) 2014 - 2017 RocketTheme, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Framework\Page;
use Grav\Framework\Collection\CollectionInterface;
interface PageCollectionInterface extends CollectionInterface
{
}

View File

@@ -1,13 +0,0 @@
<?php
/**
* @package Grav\Framework\Page
*
* @copyright Copyright (C) 2014 - 2017 RocketTheme, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Framework\Page;
interface PageHeaderInterface extends \ArrayAccess
{
}

View File

@@ -1,98 +0,0 @@
<?php
/**
* @package Grav\Framework\Page
*
* @copyright Copyright (C) 2014 - 2017 RocketTheme, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Framework\Page;
use Grav\Common\Data\Blueprint;
use Grav\Framework\ContentBlock\ContentBlockInterface;
use RocketTheme\Toolbox\ArrayTraits\ExportInterface;
interface PageInterface extends ExportInterface
{
/**
* Attach another page to the
*
* @param PageInterface $page
* @param string $relationship One of: auto|child|parent|alternate|translation|modular|media
*/
public function attach(PageInterface $page, $relationship = 'auto');
/**
* Get the header of the page.
*
* @return PageHeaderInterface
*/
public function getHeader();
/**
* Get the content of the page.
*
* @param string $type One of content|summary
* @return string
*/
public function getContent($type = 'content');
/**
* Get the associated media for the page.
*
* @return PageMediaCollectionInterface
*/
public function getMedia();
/**
* Get blueprint for the page.
*
* @return Blueprint
*/
public function getBlueprint();
/**
* Get the route for the page.
*
* @return string The route for the Page.
*/
public function getRoute();
/**
* Get the parent page.
*
* @return PageInterface|null the parent page object if it exists.
*/
public function getParent();
/**
* Get all children of this page.
*
* @return PageCollectionInterface
*/
public function getChildren();
/**
* Get all translations for the page.
*
* @return PageCollectionInterface
*/
public function getTranslations();
/**
* Render page with context into a Content Block object.
*
* @param array $context Context variables for the page.
* @param string $format Rendering format, defaults to html.
* @return ContentBlockInterface
*/
public function render(array $context = [], $format = 'html');
/**
* Render page and its associated HTTP headers to a PSR 7 response object.
*
* @param Response $response
* @return Response
*/
public function setResponse(Response $response);
}

View File

@@ -1,15 +0,0 @@
<?php
/**
* @package Grav\Framework\Page
*
* @copyright Copyright (C) 2014 - 2017 RocketTheme, LLC. All rights reserved.
* @license MIT License; see LICENSE file for details.
*/
namespace Grav\Framework\Page;
use Grav\Framework\Collection\CollectionInterface;
interface PageMediaCollectionInterface extends CollectionInterface
{
}