Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
/**
4
 * class for the Smarty variable object
5
 * This class defines the Smarty variable object
6
 *
7
 * @package    Smarty
8
 * @subpackage Template
9
 */
10
#[\AllowDynamicProperties]
11
class Smarty_Variable
12
{
13
    /**
14
     * template variable
15
     *
16
     * @var mixed
17
     */
18
    public $value = null;
19
 
20
    /**
21
     * if true any output of this variable will be not cached
22
     *
23
     * @var boolean
24
     */
25
    public $nocache = false;
26
 
27
    /**
28
     * create Smarty variable object
29
     *
30
     * @param mixed   $value   the value to assign
31
     * @param boolean $nocache if true any output of this variable will be not cached
32
     */
33
    public function __construct($value = null, $nocache = false)
34
    {
35
        $this->value = $value;
36
        $this->nocache = $nocache;
37
    }
38
 
39
    /**
40
     * <<magic>> String conversion
41
     *
42
     * @return string
43
     */
44
    public function __toString()
45
    {
46
        return (string)$this->value;
47
    }
48
}