summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Widgets/smarty/libs/sysplugins/smarty_config_source.php')
-rw-r--r--Widgets/smarty/libs/sysplugins/smarty_config_source.php37
1 files changed, 19 insertions, 18 deletions
diff --git a/Widgets/smarty/libs/sysplugins/smarty_config_source.php b/Widgets/smarty/libs/sysplugins/smarty_config_source.php
index fd37e61f..043ff13e 100644
--- a/Widgets/smarty/libs/sysplugins/smarty_config_source.php
+++ b/Widgets/smarty/libs/sysplugins/smarty_config_source.php
@@ -2,32 +2,34 @@
/**
* Smarty Internal Plugin
*
- * @package Smarty
+ * @package Smarty
* @subpackage TemplateResources
*/
/**
* Smarty Resource Data Object
+ *
* Meta Data Container for Config Files
*
- * @package Smarty
+ * @package Smarty
* @subpackage TemplateResources
- * @author Rodney Rehm
+ * @author Rodney Rehm
+ *
* @property string $content
* @property int $timestamp
* @property bool $exists
*/
-class Smarty_Config_Source extends Smarty_Template_Source
-{
+class Smarty_Config_Source extends Smarty_Template_Source {
+
/**
* create Config 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 config_resource
- * @param string $type type of resource
- * @param string $name resource name
- * @param string $unique_resource unqiue resource name
+ * @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 config_resource
+ * @param string $type type of resource
+ * @param string $name resource name
+ * @param string $unique_resource unqiue resource name
*/
public function __construct(Smarty_Resource $handler, Smarty $smarty, $resource, $type, $name, $unique_resource)
{
@@ -48,9 +50,8 @@ class Smarty_Config_Source extends Smarty_Template_Source
/**
* <<magic>> Generic setter.
*
- * @param string $property_name valid: content, timestamp, exists
- * @param mixed $value newly assigned value (not check for correct type)
- *
+ * @param string $property_name valid: content, timestamp, exists
+ * @param mixed $value newly assigned value (not check for correct type)
* @throws SmartyException when the given property name is not valid
*/
public function __set($property_name, $value)
@@ -70,9 +71,7 @@ class Smarty_Config_Source extends Smarty_Template_Source
/**
* <<magic>> Generic getter.
*
- * @param string $property_name valid: content, timestamp, exists
- *
- * @return mixed|void
+ * @param string $property_name valid: content, timestamp, exists
* @throws SmartyException when the given property name is not valid
*/
public function __get($property_name)
@@ -81,7 +80,6 @@ class Smarty_Config_Source extends Smarty_Template_Source
case 'timestamp':
case 'exists':
$this->handler->populateTimestamp($this);
-
return $this->$property_name;
case 'content':
@@ -91,4 +89,7 @@ class Smarty_Config_Source extends Smarty_Template_Source
throw new SmartyException("config property '$property_name' does not exist.");
}
}
+
}
+
+?> \ No newline at end of file