aboutsummaryrefslogtreecommitdiffstats
path: root/library/Smarty/libs/sysplugins/smarty_data.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-12-21 13:36:58 -0800
committerzotlabs <mike@macgirvin.com>2017-12-21 13:36:58 -0800
commitf825e27f1af71ba873f5698cad433bc017760556 (patch)
tree6c0c55b71f1cdb6abdbe4157a43d3af3281b9560 /library/Smarty/libs/sysplugins/smarty_data.php
parentc087d1e18b32f62d126cb01accbdeff21f5c1107 (diff)
parent9c72963d7ce3c60709755edb5d40cb0b06b29cda (diff)
downloadvolse-hubzilla-f825e27f1af71ba873f5698cad433bc017760556.tar.gz
volse-hubzilla-f825e27f1af71ba873f5698cad433bc017760556.tar.bz2
volse-hubzilla-f825e27f1af71ba873f5698cad433bc017760556.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'library/Smarty/libs/sysplugins/smarty_data.php')
-rw-r--r--library/Smarty/libs/sysplugins/smarty_data.php68
1 files changed, 0 insertions, 68 deletions
diff --git a/library/Smarty/libs/sysplugins/smarty_data.php b/library/Smarty/libs/sysplugins/smarty_data.php
deleted file mode 100644
index 7cf18a43e..000000000
--- a/library/Smarty/libs/sysplugins/smarty_data.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-/**
- * Smarty Plugin Data
- * This file contains the data object
- *
- * @package Smarty
- * @subpackage Template
- * @author Uwe Tews
- */
-
-/**
- * class for the Smarty data object
- * The Smarty data object will hold Smarty variables in the current scope
- *
- * @package Smarty
- * @subpackage Template
- */
-class Smarty_Data extends Smarty_Internal_Data
-{
- /**
- * Counter
- *
- * @var int
- */
- static $count = 0;
-
- /**
- * Data block name
- *
- * @var string
- */
- public $dataObjectName = '';
-
- /**
- * Smarty object
- *
- * @var Smarty
- */
- public $smarty = null;
-
- /**
- * create Smarty data object
- *
- * @param Smarty|array $_parent parent template
- * @param Smarty|Smarty_Internal_Template $smarty global smarty instance
- * @param string $name optional data block name
- *
- * @throws SmartyException
- */
- public function __construct($_parent = null, $smarty = null, $name = null)
- {
- parent::__construct();
- self::$count ++;
- $this->dataObjectName = 'Data_object ' . (isset($name) ? "'{$name}'" : self::$count);
- $this->smarty = $smarty;
- if (is_object($_parent)) {
- // when object set up back pointer
- $this->parent = $_parent;
- } elseif (is_array($_parent)) {
- // set up variable values
- foreach ($_parent as $_key => $_val) {
- $this->tpl_vars[$_key] = new Smarty_Variable($_val);
- }
- } elseif ($_parent != null) {
- throw new SmartyException("Wrong type for template variables");
- }
- }
-}