summaryrefslogtreecommitdiff
path: root/lib/smarty3/sysplugins/smarty_template_source.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/smarty3/sysplugins/smarty_template_source.php')
-rw-r--r--lib/smarty3/sysplugins/smarty_template_source.php27
1 files changed, 15 insertions, 12 deletions
diff --git a/lib/smarty3/sysplugins/smarty_template_source.php b/lib/smarty3/sysplugins/smarty_template_source.php
index fdb3dea..16b47f2 100644
--- a/lib/smarty3/sysplugins/smarty_template_source.php
+++ b/lib/smarty3/sysplugins/smarty_template_source.php
@@ -7,7 +7,6 @@
* @package Smarty
* @subpackage TemplateResources
* @author Rodney Rehm
- *
*/
class Smarty_Template_Source
{
@@ -126,12 +125,13 @@ class Smarty_Template_Source
/**
* create Source Object container
*
- * @param Smarty_Resource $handler Resource Handler this source object communicates with
- * @param Smarty $smarty Smarty instance this source object belongs to
- * @param string $resource full template_resource
- * @param string $type type of resource
- * @param string $name resource name
+ * @param Smarty $smarty Smarty instance this source object belongs to
+ * @param string $resource full template_resource
+ * @param string $type type of resource
+ * @param string $name resource name
*
+ * @throws \SmartyException
+ * @internal param \Smarty_Resource $handler Resource Handler this source object communicates with
*/
public function __construct(Smarty $smarty, $resource, $type, $name)
{
@@ -148,16 +148,18 @@ class Smarty_Template_Source
* initialize Source Object for given resource
* Either [$_template] or [$smarty, $template_resource] must be specified
*
- * @param Smarty_Internal_Template $_template template object
- * @param Smarty $smarty smarty object
- * @param string $template_resource resource identifier
+ * @param Smarty_Internal_Template $_template template object
+ * @param Smarty $smarty smarty object
+ * @param string $template_resource resource identifier
*
* @return Smarty_Template_Source Source Object
* @throws SmartyException
*/
- public static function load(Smarty_Internal_Template $_template = null, Smarty $smarty = null,
- $template_resource = null)
- {
+ public static function load(
+ Smarty_Internal_Template $_template = null,
+ Smarty $smarty = null,
+ $template_resource = null
+ ) {
if ($_template) {
$smarty = $_template->smarty;
$template_resource = $_template->template_resource;
@@ -202,6 +204,7 @@ class Smarty_Template_Source
* Get source content
*
* @return string
+ * @throws \SmartyException
*/
public function getContent()
{