mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-26 01:43:45 +02:00
[ticket/11700] Move all recent code to namespaces
PHPBB3-11700
This commit is contained in:
@@ -7,6 +7,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\template;
|
||||
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
@@ -15,13 +17,13 @@ if (!defined('IN_PHPBB'))
|
||||
exit;
|
||||
}
|
||||
|
||||
interface phpbb_template
|
||||
interface template
|
||||
{
|
||||
|
||||
/**
|
||||
* Clear the cache
|
||||
*
|
||||
* @return phpbb_template
|
||||
* @return \phpbb\template\template
|
||||
*/
|
||||
public function clear_cache();
|
||||
|
||||
@@ -29,7 +31,7 @@ interface phpbb_template
|
||||
* Sets the template filenames for handles.
|
||||
*
|
||||
* @param array $filename_array Should be a hash of handle => filename pairs.
|
||||
* @return phpbb_template $this
|
||||
* @return \phpbb\template\template $this
|
||||
*/
|
||||
public function set_filenames(array $filename_array);
|
||||
|
||||
@@ -39,14 +41,14 @@ interface phpbb_template
|
||||
*
|
||||
* @param array $style_names List of style names in inheritance tree order
|
||||
* @param array $style_paths List of style paths in inheritance tree order
|
||||
* @return phpbb_template $this
|
||||
* @return \phpbb\template\template $this
|
||||
*/
|
||||
public function set_style_names(array $style_names, array $style_paths);
|
||||
|
||||
/**
|
||||
* Clears all variables and blocks assigned to this template.
|
||||
*
|
||||
* @return phpbb_template $this
|
||||
* @return \phpbb\template\template $this
|
||||
*/
|
||||
public function destroy();
|
||||
|
||||
@@ -54,7 +56,7 @@ interface phpbb_template
|
||||
* Reset/empty complete block
|
||||
*
|
||||
* @param string $blockname Name of block to destroy
|
||||
* @return phpbb_template $this
|
||||
* @return \phpbb\template\template $this
|
||||
*/
|
||||
public function destroy_block_vars($blockname);
|
||||
|
||||
@@ -66,7 +68,7 @@ interface phpbb_template
|
||||
* This function calls hooks.
|
||||
*
|
||||
* @param string $handle Handle to display
|
||||
* @return phpbb_template $this
|
||||
* @return \phpbb\template\template $this
|
||||
*/
|
||||
public function display($handle);
|
||||
|
||||
@@ -77,7 +79,7 @@ interface phpbb_template
|
||||
* @param string $handle Handle to operate on
|
||||
* @param string $template_var Template variable to assign compiled handle to
|
||||
* @param bool $return_content If true return compiled handle, otherwise assign to $template_var
|
||||
* @return phpbb_template|string if $return_content is true return string of the compiled handle, otherwise return $this
|
||||
* @return \phpbb\template\template|string if $return_content is true return string of the compiled handle, otherwise return $this
|
||||
*/
|
||||
public function assign_display($handle, $template_var = '', $return_content = true);
|
||||
|
||||
@@ -85,7 +87,7 @@ interface phpbb_template
|
||||
* Assign key variable pairs from an array
|
||||
*
|
||||
* @param array $vararray A hash of variable name => value pairs
|
||||
* @return phpbb_template $this
|
||||
* @return \phpbb\template\template $this
|
||||
*/
|
||||
public function assign_vars(array $vararray);
|
||||
|
||||
@@ -96,7 +98,7 @@ interface phpbb_template
|
||||
*
|
||||
* @param string $varname Variable name
|
||||
* @param string $varval Value to assign to variable
|
||||
* @return phpbb_template $this
|
||||
* @return \phpbb\template\template $this
|
||||
*/
|
||||
public function assign_var($varname, $varval);
|
||||
|
||||
@@ -107,7 +109,7 @@ interface phpbb_template
|
||||
*
|
||||
* @param string $varname Variable name
|
||||
* @param string $varval Value to append to variable
|
||||
* @return phpbb_template $this
|
||||
* @return \phpbb\template\template $this
|
||||
*/
|
||||
public function append_var($varname, $varval);
|
||||
|
||||
@@ -115,7 +117,7 @@ interface phpbb_template
|
||||
* Assign key variable pairs from an array to a specified block
|
||||
* @param string $blockname Name of block to assign $vararray to
|
||||
* @param array $vararray A hash of variable name => value pairs
|
||||
* @return phpbb_template $this
|
||||
* @return \phpbb\template\template $this
|
||||
*/
|
||||
public function assign_block_vars($blockname, array $vararray);
|
||||
|
||||
@@ -139,7 +141,7 @@ interface phpbb_template
|
||||
* @param string $mode Mode to execute (valid modes are 'insert' and 'change')
|
||||
*
|
||||
* If insert, the vararray is inserted at the given position (position counting from zero).
|
||||
* If change, the current block gets merged with the vararray (resulting in new key/value pairs be added and existing keys be replaced by the new value).
|
||||
* If change, the current block gets merged with the vararray (resulting in new \key/value pairs be added and existing keys be replaced by the new \value).
|
||||
*
|
||||
* Since counting begins by zero, inserting at the last position will result in this array: array(vararray, last positioned array)
|
||||
* and inserting at position 1 will result in this array: array(first positioned array, vararray, following vars)
|
||||
|
Reference in New Issue
Block a user