1 <?php
2 /* --------------------------------------------------------------
3 ContentViewInterface.inc.php 2015-02-15 gm
4 Gambio GmbH
5 http://www.gambio.de
6 Copyright (c) 2015 Gambio GmbH
7 Released under the GNU General Public License (Version 2)
8 [http://www.gnu.org/licenses/gpl-2.0.html]
9 --------------------------------------------------------------
10 */
11
12
13 /**
14 * Interface ContentViewInterface
15 *
16 * @category System
17 * @package Http
18 * @subpackage Interfaces
19 */
20 interface ContentViewInterface
21 {
22 /**
23 * Sets the content template file.
24 *
25 * @param $templateFile
26 *
27 * @return void
28 */
29 public function set_content_template($templateFile);
30
31
32 /**
33 * Inject the content data to the template file that they are accessible in template with variables.
34 *
35 * @param string $key Variable name in the template file.
36 * @param mixed $value Value in the template which can get accessed by the $key inside the set template file.
37 *
38 * @return void
39 */
40 public function set_content_data($key, $value);
41
42
43 /**
44 * Sets the template directory path.
45 *
46 * @param string $templateDirectoryPath Absolute path to the template directory.
47 *
48 * @return void
49 */
50 public function set_template_dir($templateDirectoryPath);
51 }