1: <?php
2:
3: namespace Charcoal\Cms;
4:
5: /**
6: * Defines a renderable object associated to a template.
7: */
8: interface TemplateableInterface
9: {
10: /**
11: * Set the renderable object's template identifier.
12: *
13: * @param mixed $template The template ID.
14: * @return self
15: */
16: public function setTemplateIdent($template);
17:
18: /**
19: * Retrieve the renderable object's template identifier.
20: *
21: * @return mixed
22: */
23: public function templateIdent();
24:
25: /**
26: * Set the renderable object's template controller identifier.
27: *
28: * @param mixed $ident The template controller identifier.
29: * @return self
30: */
31: public function setControllerIdent($ident);
32:
33: /**
34: * Retrieve the renderable object's template controller identifier.
35: *
36: * @return mixed
37: */
38: public function controllerIdent();
39:
40: /**
41: * Customize the template's options.
42: *
43: * @param array|string $options Template options.
44: * @return self
45: */
46: public function setTemplateOptions($options);
47:
48: /**
49: * Retrieve the template's customized options.
50: *
51: * @return array
52: */
53: public function templateOptions();
54: }
55: