Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for phpPlatonLib/templateSystems/ObjTemplate/test/Attic/test.php between version 1.3 and 1.4

version 1.3, 2001/11/13 00:12:45 version 1.4, 2001/11/13 23:14:30
Line 29  print "<br>";
Line 29  print "<br>";
 print 'is_key("level2"): ' . ($tmpl->is_key("level2") == true ? "true" : "false");  print 'is_key("level2"): ' . ($tmpl->is_key("level2") == true ? "true" : "false");
 print "<br>";  print "<br>";
   
   echo "<hr><h3>get_keys() test</h3>";
   
   $a = $tmpl->get_keys();
   
   print_array($a);
   
 echo "<hr><h3>add_before(), add_after() and set() test</h3>";  echo "<hr><h3>add_before(), add_after() and set() test</h3>";
   
 $tmpl->add_before("BEFORE");  $tmpl->add_before("BEFORE");
Line 38  $tmpl->set(array(
Line 44  $tmpl->set(array(
                         "xxx" => "KOFOLAAAAAA",                          "xxx" => "KOFOLAAAAAA",
                         'yyy' => 'PIVO!',                          'yyy' => 'PIVO!',
                         'level' => '3',                          'level' => '3',
                         'level2' => 'a',                          'level2' => 14,
                         'subtemplate' => "aaa%subtemplatex%aa",                          'subtemplate' => "aaa%subtemplatex%aa",
                         'subtemplatex' => "XXXXXXXXXX"                          'subtemplatex' => "XXXXXXXXXX"
                         ));                          ));
Line 49  $a = $tmpl->get_array();
Line 55  $a = $tmpl->get_array();
   
 print_array($a);  print_array($a);
   
 echo "<hr><h3>get_keys() test</h3>";  echo "<hr><h3>get_keys() test II.</h3>";
   
   echo "NOTE: this is after substitution, so the array will not contain substituted keys<p>";
   
 $a = $tmpl->get_keys();  $a = $tmpl->get_keys();
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top