libs/sysplugins/smarty_data.php Quellcode

smarty_data.php
gehe zur Dokumentation dieser Datei
1 <?php
19 {
25  static $count = 0;
26 
32  public $dataObjectName = '';
38  public $smarty = null;
39 
49  public function __construct($_parent = null, $smarty = null, $name = null)
50  {
51  self::$count ++;
52  $this->dataObjectName = 'Data_object ' . (isset($name) ? "'{$name}'" : self::$count);
53  $this->smarty = $smarty;
54  if (is_object($_parent)) {
55  // when object set up back pointer
56  $this->parent = $_parent;
57  } elseif (is_array($_parent)) {
58  // set up variable values
59  foreach ($_parent as $_key => $_val) {
60  $this->tpl_vars[$_key] = new Smarty_Variable($_val);
61  }
62  } elseif ($_parent != null) {
63  throw new SmartyException("Wrong type for template variables");
64  }
65  }
66 }




Korrekturen, Hinweise und Ergänzungen

Bitte scheuen Sie sich nicht und melden Sie, was auf dieser Seite sachlich falsch oder irreführend ist, was ergänzt werden sollte, was fehlt usw. Dazu bitte oben aus dem Menü Seite den Eintrag Support Forum wählen. Es ist eine kostenlose Anmeldung erforderlich, um Anmerkungen zu posten. Unpassende Postings, Spam usw. werden kommentarlos entfernt.