ContentModule.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2020 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
11 namespace wcmf\lib\presentation;
12 
13 /**
14  * Interface for smarty content modules.
15  *
16  * @author ingo herwig <ingo@wemove.com>
17  */
18 interface ContentModule {
19  /**
20  * Initialize the instance
21  * @param $parentTemplate Template object that includes this content module
22  * @param $params Associative array of parameters passed to the smarty {module} tag
23  */
24  public function initialize(\Smarty_Internal_Template $parentTemplate, array $params);
25 
26  /**
27  * Render the content
28  */
29  public function render();
30 }
31 ?>
Interface for smarty content modules.
initialize(\Smarty_Internal_Template $parentTemplate, array $params)
Initialize the instance.
Presentation related interfaces and classes.
Definition: namespaces.php:59