[pLog-svn] r6953 - plog/branches/lifetype-1.2/class/template/smarty/plugins

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Thu Jan 7 11:12:39 EST 2010


Author: jondaley
Date: 2010-01-07 11:12:39 -0500 (Thu, 07 Jan 2010)
New Revision: 6953

Added:
   plog/branches/lifetype-1.2/class/template/smarty/plugins/compiler.break.php
   plog/branches/lifetype-1.2/class/template/smarty/plugins/compiler.continue.php
Log:
new smarty functions.  fixes #1539

Added: plog/branches/lifetype-1.2/class/template/smarty/plugins/compiler.break.php
===================================================================
--- plog/branches/lifetype-1.2/class/template/smarty/plugins/compiler.break.php	                        (rev 0)
+++ plog/branches/lifetype-1.2/class/template/smarty/plugins/compiler.break.php	2010-01-07 16:12:39 UTC (rev 6953)
@@ -0,0 +1,16 @@
+<?php
+
+/**
+ * Smarty {break} compiler function plugin
+ *
+ * Type:     compiler function<br>
+ * Name:     break<br>
+ * Purpose:  break out of a foreach loop
+ * @author Ferdinand Beyer: http://osdir.com/ml/php.smarty.general/2002-08/msg00058.html
+ * @param string containing var-attribute and value-attribute
+ * @param Smarty_Compiler
+ */
+function smarty_compiler_break($contents, &$smarty)
+{
+    return 'break;';
+}

Added: plog/branches/lifetype-1.2/class/template/smarty/plugins/compiler.continue.php
===================================================================
--- plog/branches/lifetype-1.2/class/template/smarty/plugins/compiler.continue.php	                        (rev 0)
+++ plog/branches/lifetype-1.2/class/template/smarty/plugins/compiler.continue.php	2010-01-07 16:12:39 UTC (rev 6953)
@@ -0,0 +1,16 @@
+<?php
+
+/**
+ * Smarty {continue} compiler function plugin
+ *
+ * Type:     compiler function<br>
+ * Name:     continue<br>
+ * Purpose:  continue next item in a foreach loop
+ * @author Ferdinand Beyer: http://osdir.com/ml/php.smarty.general/2002-08/msg00058.html
+ * @param string containing var-attribute and value-attribute
+ * @param Smarty_Compiler
+ */
+function smarty_compiler_continue($contents, &$smarty)
+{
+    return 'continue;';
+}


Property changes on: plog/branches/lifetype-1.2/class/template/smarty/plugins/compiler.continue.php
___________________________________________________________________
Added: svn:mergeinfo
   + 



More information about the pLog-svn mailing list