mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
39 lines
771 B
PHP
39 lines
771 B
PHP
|
<?php namespace Cms\Contracts;
|
||
|
|
||
|
interface CmsObject
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* Loads the template.
|
||
|
*
|
||
|
* @param string $hostObj
|
||
|
* @param string $fileName
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public static function load($hostObj, $fileName);
|
||
|
|
||
|
/**
|
||
|
* Loads and caches the template.
|
||
|
*
|
||
|
* @param string $hostObj
|
||
|
* @param string $fileName
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public static function loadCached($hostObj, $fileName);
|
||
|
|
||
|
/**
|
||
|
* Returns the local file path to the template.
|
||
|
*
|
||
|
* @param string $fileName
|
||
|
* @return string
|
||
|
*/
|
||
|
// public static function getFilePath($fileName = null);
|
||
|
|
||
|
/**
|
||
|
* Returns the Twig content string.
|
||
|
*
|
||
|
* @return string
|
||
|
*/
|
||
|
public function getTwigContent();
|
||
|
|
||
|
}
|