-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCtkRenderable.php
49 lines (44 loc) · 1 KB
/
CtkRenderable.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
<?php
/**
* Interface for objects that can be rendered.
*
* PHP 5
*
* Cake Toolkit (http://caketoolkit.org)
* Copyright 2012, James Watts (http://github.com/jameswatts)
*
* Licensed under The MIT License
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright 2012, James Watts (http://github.com/jameswatts)
* @link http://caketoolkit.org Cake Toolkit
* @package Ctk.Lib
* @since CakePHP(tm) v 2.2.0.0
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
/**
* Interface for renderable objects.
*
* @package Ctk.Lib
*/
interface CtkRenderable {
/**
* Parses the template for the node.
*
* @param string $path Path to the template.
* @return string
*/
public function template($path);
/**
* Renders the node using the the View renderer.
*
* @return string
*/
public function render();
/**
* Renders the child nodes of this node.
*
* @return string
*/
public function renderChildren();
}