-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
CmsObject.php
61 lines (53 loc) · 1.2 KB
/
CmsObject.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?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 function getFilePath($fileName = null);
/**
* Returns the file name.
* @return string
*/
public function getFileName();
/**
* Returns the file name without the extension.
* @return string
*/
public function getBaseFileName();
/**
* Returns the file content.
* @return string
*/
public function getContent();
/**
* Returns the Twig content string.
*
* @return string
*/
public function getTwigContent();
/**
* Returns the key used by the Twig cache.
* @return string
*/
public function getTwigCacheKey();
}