[ticket/11628] Return $this from set_style, set_custom_style

PHPBB3-11628
This commit is contained in:
Nathaniel Guse 2013-07-24 12:45:35 -05:00
parent ecaed319ab
commit bfbc7aa742
2 changed files with 6 additions and 6 deletions

View file

@ -46,7 +46,7 @@ interface phpbb_template
* @param array $style_directories The directories to add style paths for * @param array $style_directories The directories to add style paths for
* E.g. array('ext/foo/bar/styles', 'styles') * E.g. array('ext/foo/bar/styles', 'styles')
* Default: array('styles') (phpBB's style directory) * Default: array('styles') (phpBB's style directory)
* @return bool true * @return phpbb_template $this
*/ */
public function set_style($style_directories = array('styles')); public function set_style($style_directories = array('styles'));
@ -59,7 +59,7 @@ interface phpbb_template
* @param array or string $paths Array of style paths, relative to current root directory * @param array or string $paths Array of style paths, relative to current root directory
* @param array $names Array of names of templates in inheritance tree order, used by extensions. If empty, $name will be used. * @param array $names Array of names of templates in inheritance tree order, used by extensions. If empty, $name will be used.
* @param string $template_path Path to templates, relative to style directory. False if path should be set to default (templates/). * @param string $template_path Path to templates, relative to style directory. False if path should be set to default (templates/).
* @return bool true * @return phpbb_template $this
*/ */
public function set_custom_style($name, $paths, $names = array(), $template_path = false); public function set_custom_style($name, $paths, $names = array(), $template_path = false);

View file

@ -192,7 +192,7 @@ class phpbb_template_twig implements phpbb_template
* @param array $style_directories The directories to add style paths for * @param array $style_directories The directories to add style paths for
* E.g. array('ext/foo/bar/styles', 'styles') * E.g. array('ext/foo/bar/styles', 'styles')
* Default: array('styles') (phpBB's style directory) * Default: array('styles') (phpBB's style directory)
* @return bool true * @return phpbb_template $this
*/ */
public function set_style($style_directories = array('styles')) public function set_style($style_directories = array('styles'))
{ {
@ -228,7 +228,7 @@ class phpbb_template_twig implements phpbb_template
$this->set_style_names($names, $paths); $this->set_style_names($names, $paths);
return true; return $this;
} }
/** /**
@ -240,7 +240,7 @@ class phpbb_template_twig implements phpbb_template
* @param array or string $paths Array of style paths, relative to current root directory * @param array or string $paths Array of style paths, relative to current root directory
* @param array $names Array of names of templates in inheritance tree order, used by extensions. If empty, $name will be used. * @param array $names Array of names of templates in inheritance tree order, used by extensions. If empty, $name will be used.
* @param string $template_path Path to templates, relative to style directory. False if path should be set to default (templates/). * @param string $template_path Path to templates, relative to style directory. False if path should be set to default (templates/).
* @return bool true * @return phpbb_template $this
*/ */
public function set_custom_style($name, $paths, $names = array(), $template_path = false) public function set_custom_style($name, $paths, $names = array(), $template_path = false)
{ {
@ -262,7 +262,7 @@ class phpbb_template_twig implements phpbb_template
$this->set_style_names($names, $new_paths); $this->set_style_names($names, $new_paths);
return true; return $this;
} }
/** /**