cvs: pear /HTML_Template_Flexy/tests/results2 globals.html.en.php globals.html.gettext.serial /HTML_Template_Flexy/tests/templates globals.html

From: Date: Sat, 01 May 2004 03:13:32 +0000
Subject: cvs: pear /HTML_Template_Flexy/tests/results2 globals.html.en.php globals.html.gettext.serial /HTML_Template_Flexy/tests/templates globals.html
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-19056@lists.php.net to get a copy of this message
alan_k Fri Apr 30 23:13:32 2004 EDT Modified files: /pear/HTML_Template_Flexy/tests/results2 globals.html.en.php globals.html.gettext.serial /pear/HTML_Template_Flexy/tests/templates globals.html Log: test for Bug #1310 added http://cvs.php.net/diff.php/pear/HTML_Template_Flexy/tests/results2/globals.html.en.php?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Template_Flexy/tests/results2/globals.html.en.php diff -u pear/HTML_Template_Flexy/tests/results2/globals.html.en.php:1.1 pear/HTML_Template_Flexy/tests/results2/globals.html.en.php:1.2 --- pear/HTML_Template_Flexy/tests/results2/globals.html.en.php:1.1 Fri Apr 23 22:18:06 2004 +++ pear/HTML_Template_Flexy/tests/results2/globals.html.en.php Fri Apr 30 23:13:32 2004 @@ -1,11 +1,26 @@ <H2>GLOBALS:</H2> -<?php echo htmlspecialchars($_SESSION['hello']);?> -<?php echo htmlspecialchars($_GET['fred']);?> -<?php echo htmlspecialchars($GLOBALS['abc']);?> +<?php echo htmlspecialchars($_SESSION['hello']);?> <BR> +<?php echo htmlspecialchars($_GET['fred']);?> <BR> +<?php echo htmlspecialchars($GLOBALS['abc']);?> <BR> <H2>Privates:</H2> -<?php if (isset($t) && method_exists($t,'_somemethod')) echo htmlspecialchars($t->_somemethod());?> -<?php echo htmlspecialchars($t->_somevar);?> +<?php if (isset($t) && method_exists($t,'_somemethod')) echo htmlspecialchars($t->_somemethod());?> <BR> +<?php echo htmlspecialchars($t->_somevar);?> <BR> + + + +<H2>Global methods </H2> + +<?php echo htmlspecialchars(date("d/m/y"));?> <BR> + +<?php if (is_array($t->test)) { ?> <BR> +<?php }?> <BR> +<BR> + +<?php if (is_array($t->atest) || is_object($t->atest)) foreach($t->atest as $k => $v) {?> <BR> +<?php if (is_array($v)) { ?> <BR> +<?php }?> <BR> +<?php }?> <BR> http://cvs.php.net/diff.php/pear/HTML_Template_Flexy/tests/results2/globals.html.gettext.serial?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Template_Flexy/tests/results2/globals.html.gettext.serial diff -u pear/HTML_Template_Flexy/tests/results2/globals.html.gettext.serial:1.1 pear/HTML_Template_Flexy/tests/results2/globals.html.gettext.serial:1.2 --- pear/HTML_Template_Flexy/tests/results2/globals.html.gettext.serial:1.1 Fri Apr 23 22:18:06 2004 +++ pear/HTML_Template_Flexy/tests/results2/globals.html.gettext.serial Fri Apr 30 23:13:32 2004 @@ -1 +1 @@ -a:2:{i:0;s:8:"GLOBALS:";i:1;s:9:"Privates:";} \ No newline at end of file +a:3:{i:0;s:8:"GLOBALS:";i:1;s:9:"Privates:";i:2;s:14:"Global methods";} \ No newline at end of file http://cvs.php.net/diff.php/pear/HTML_Template_Flexy/tests/templates/globals.html?r1=1.1&r2=1.2&ty=u Index: pear/HTML_Template_Flexy/tests/templates/globals.html diff -u pear/HTML_Template_Flexy/tests/templates/globals.html:1.1 pear/HTML_Template_Flexy/tests/templates/globals.html:1.2 --- pear/HTML_Template_Flexy/tests/templates/globals.html:1.1 Fri Apr 23 22:18:06 2004 +++ pear/HTML_Template_Flexy/tests/templates/globals.html Fri Apr 30 23:13:32 2004 @@ -1,11 +1,26 @@ <H2>GLOBALS:</H2> -{_SESSION[hello]} -{_GET[fred]} -{GLOBALS[abc]} +{_SESSION[hello]} <BR> +{_GET[fred]} <BR> +{GLOBALS[abc]} <BR> <H2>Privates:</H2> -{_somemethod()} -{_somevar} +{_somemethod()} <BR> +{_somevar} <BR> + + + +<H2>Global methods </H2> + +{GLOBALS.date(#d/m/y#)} <BR> + +{if:GLOBALS.is_array(test)} <BR> +{end:} <BR> +<BR> + +{foreach:atest,k,v} <BR> +{if:GLOBALS.is_array(v)} <BR> +{end:} <BR> +{end:} <BR>

« previous php.pear.cvs (#19056) next »