mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/template-engine] Added docblocks and boilerplate to new files.
PHPBB3-9726
This commit is contained in:
parent
b5444a7d7d
commit
1cba674b9a
4 changed files with 76 additions and 0 deletions
|
@ -1,5 +1,26 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package phpBB3
|
||||||
|
* @version $Id$
|
||||||
|
* @copyright (c) 2011 phpBB Group
|
||||||
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stores variables assigned to template.
|
||||||
|
*
|
||||||
|
* @package phpBB3
|
||||||
|
*/
|
||||||
class phpbb_template_context
|
class phpbb_template_context
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,10 +1,28 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package phpBB3
|
||||||
|
* @version $Id$
|
||||||
|
* @copyright (c) 2011 phpBB Group
|
||||||
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Template executor interface.
|
* Template executor interface.
|
||||||
*
|
*
|
||||||
* Objects implementing this interface encapsulate a means of executing
|
* Objects implementing this interface encapsulate a means of executing
|
||||||
* (i.e. rendering) a template.
|
* (i.e. rendering) a template.
|
||||||
|
*
|
||||||
|
* @package phpBB3
|
||||||
*/
|
*/
|
||||||
interface phpbb_template_executor
|
interface phpbb_template_executor
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,26 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package phpBB3
|
||||||
|
* @version $Id$
|
||||||
|
* @copyright (c) 2011 phpBB Group
|
||||||
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Template executor that stores compiled template's php code and
|
* Template executor that stores compiled template's php code and
|
||||||
* evaluates it via eval.
|
* evaluates it via eval.
|
||||||
|
*
|
||||||
|
* @package phpBB3
|
||||||
*/
|
*/
|
||||||
class phpbb_template_executor_eval implements phpbb_template_executor
|
class phpbb_template_executor_eval implements phpbb_template_executor
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,8 +1,27 @@
|
||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package phpBB3
|
||||||
|
* @version $Id$
|
||||||
|
* @copyright (c) 2011 phpBB Group
|
||||||
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @ignore
|
||||||
|
*/
|
||||||
|
if (!defined('IN_PHPBB'))
|
||||||
|
{
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Template executor that stores path to php file with template code
|
* Template executor that stores path to php file with template code
|
||||||
* and evaluates it by including the file.
|
* and evaluates it by including the file.
|
||||||
|
*
|
||||||
|
* @package phpBB3
|
||||||
*/
|
*/
|
||||||
class phpbb_template_executor_include implements phpbb_template_executor
|
class phpbb_template_executor_include implements phpbb_template_executor
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue