1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[ticket/10756] Fixing variable declarations in style and template classes

Fixing variable declaration, removing function from template locator that does not belong there

PHPBB3-10756
This commit is contained in:
Vjacheslav Trushkin 2012-04-03 14:32:49 +03:00 committed by Nils Adermann
parent d91abbb146
commit ed9a58a6cc
3 changed files with 22 additions and 23 deletions

View File

@ -22,28 +22,33 @@ if (!defined('IN_PHPBB'))
class phpbb_style
{
/**
* @var phpbb_template Template class.
* Template class.
* Handles everything related to templates.
* @var phpbb_template
*/
private $template;
/**
* @var string phpBB root path
* phpBB root path
* @var string
*/
private $phpbb_root_path;
/**
* @var phpEx PHP file extension
* PHP file extension
* @var string
*/
private $phpEx;
/**
* @var phpbb_config phpBB config instance
* phpBB config instance
* @var phpbb_config
*/
private $config;
/**
* @var user current user
* Current user
* @var phpbb_user
*/
private $user;

View File

@ -35,18 +35,6 @@ if (!defined('IN_PHPBB'))
*/
interface phpbb_template_locator
{
/**
* Sets the list of style paths
*
* These paths will be searched for style files in the provided order.
* Paths may be outside of phpBB, but templates loaded from these paths
* will still be cached.
*
* @param array $style_paths An array of paths to style directories
* @return null
*/
public function set_paths($style_paths);
/**
* Sets the template filenames for handles. $filename_array
* should be a hash of handle => filename pairs.

View File

@ -32,33 +32,39 @@ if (!defined('IN_PHPBB'))
class phpbb_template
{
/**
* @var phpbb_template_context Template context.
* Template context.
* Stores template data used during template rendering.
* @var phpbb_template_context
*/
public $context;
/**
* @var string Path of the cache directory for the template
* Path of the cache directory for the template
* @var string
*/
public $cachepath = '';
/**
* @var string phpBB root path
* phpBB root path
* @var string
*/
private $phpbb_root_path;
/**
* @var phpEx PHP file extension
* PHP file extension
* @var string
*/
private $phpEx;
/**
* @var phpbb_config phpBB config instance
* phpBB config instance
* @var phpbb_config
*/
private $config;
/**
* @var user current user
* Current user
* @var phpbb_user
*/
private $user;