mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-04 19:54:14 +02:00
fix formatting
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Smarty Internal Plugin Resource String
|
||||
*
|
||||
* Implements the strings as resource for Smarty template
|
||||
*
|
||||
* @package Smarty
|
||||
* @subpackage TemplateResources
|
||||
* @author Uwe Tews
|
||||
*/
|
||||
* Smarty Internal Plugin Resource String
|
||||
*
|
||||
* Implements the strings as resource for Smarty template
|
||||
*
|
||||
* @package Smarty
|
||||
* @subpackage TemplateResources
|
||||
* @author Uwe Tews
|
||||
*/
|
||||
|
||||
/**
|
||||
* Smarty Internal Plugin Resource String
|
||||
*/
|
||||
|
||||
* Smarty Internal Plugin Resource String
|
||||
*/
|
||||
class Smarty_Internal_Resource_String {
|
||||
public function __construct($smarty)
|
||||
{
|
||||
@@ -27,21 +27,21 @@ class Smarty_Internal_Resource_String {
|
||||
public $isEvaluated = true;
|
||||
|
||||
/**
|
||||
* Return flag if template source is existing
|
||||
*
|
||||
* @return boolean true
|
||||
*/
|
||||
* Return flag if template source is existing
|
||||
*
|
||||
* @return boolean true
|
||||
*/
|
||||
public function isExisting($template)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get filepath to template source
|
||||
*
|
||||
* @param object $_template template object
|
||||
* @return string return 'string' as template source is not a file
|
||||
*/
|
||||
* Get filepath to template source
|
||||
*
|
||||
* @param object $_template template object
|
||||
* @return string return 'string' as template source is not a file
|
||||
*/
|
||||
public function getTemplateFilepath($_template)
|
||||
{
|
||||
// no filepath for strings
|
||||
@@ -50,11 +50,11 @@ class Smarty_Internal_Resource_String {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get timestamp to template source
|
||||
*
|
||||
* @param object $_template template object
|
||||
* @return boolean false as string resources have no timestamp
|
||||
*/
|
||||
* Get timestamp to template source
|
||||
*
|
||||
* @param object $_template template object
|
||||
* @return boolean false as string resources have no timestamp
|
||||
*/
|
||||
public function getTemplateTimestamp($_template)
|
||||
{
|
||||
// strings must always be compiled and have no timestamp
|
||||
@@ -62,11 +62,11 @@ class Smarty_Internal_Resource_String {
|
||||
}
|
||||
|
||||
/**
|
||||
* Retuen template source from resource name
|
||||
*
|
||||
* @param object $_template template object
|
||||
* @return string content of template source
|
||||
*/
|
||||
* Retuen template source from resource name
|
||||
*
|
||||
* @param object $_template template object
|
||||
* @return string content of template source
|
||||
*/
|
||||
public function getTemplateSource($_template)
|
||||
{
|
||||
// return template string
|
||||
@@ -75,11 +75,11 @@ class Smarty_Internal_Resource_String {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get filepath to compiled template
|
||||
*
|
||||
* @param object $_template template object
|
||||
* @return boolean return false as compiled template is not stored
|
||||
*/
|
||||
* Get filepath to compiled template
|
||||
*
|
||||
* @param object $_template template object
|
||||
* @return boolean return false as compiled template is not stored
|
||||
*/
|
||||
public function getCompiledFilepath($_template)
|
||||
{
|
||||
// no filepath for strings
|
||||
@@ -87,4 +87,4 @@ class Smarty_Internal_Resource_String {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Reference in New Issue
Block a user