[limb-svn] r6863 - 3.x/trunk/limb/web_app/src/macro

svn at limb-project.com svn at limb-project.com
Thu Mar 27 20:40:54 MSK 2008


Author: vasiatka
Date: 2008-03-27 20:40:53 +0300 (Thu, 27 Mar 2008)
New Revision: 6863
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6863

Added:
   3.x/trunk/limb/web_app/src/macro/flashbox.tag.php
Log:
-- move flashbox

Added: 3.x/trunk/limb/web_app/src/macro/flashbox.tag.php
===================================================================
--- 3.x/trunk/limb/web_app/src/macro/flashbox.tag.php	                        (rev 0)
+++ 3.x/trunk/limb/web_app/src/macro/flashbox.tag.php	2008-03-27 17:40:53 UTC (rev 6863)
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Limb PHP Framework
+ *
+ * @link http://limb-project.com
+ * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
+ * @license    LGPL http://www.gnu.org/copyleft/lesser.html
+ */
+
+/**
+ * @tag flashbox
+ * @package macro
+ * @version $Id$
+ */class lmbMacroFlashBoxTag extends lmbMacroTag
+{
+  protected function _generateContent($code)
+  {
+  	if($this->get('as'))
+  	{
+  	  $to=$this->get('as');
+  	}
+  	if($this->get('to'))
+  	{
+  	  $to=$this->get('to');
+  	}
+    else
+      $to = '$flashbox';
+
+
+  	$method = $code->beginMethod('__flashbox_container');
+
+    $code->writePHP($to.'=$this->toolkit->getFlashBox()->getUnifiedList();');
+  	$code->writePHP('$this->toolkit->getFlashBox()->reset();');
+
+  	parent :: _generateContent($code);
+
+    $code->endMethod();
+
+    $code->writePHP('$this->'.$method.'();');
+  }
+}
+?>
\ No newline at end of file



More information about the limb-svn mailing list