[limb-svn] r6860 - in 3.x/trunk/limb/cms/src: . macro
svn at limb-project.com
svn at limb-project.com
Thu Mar 27 19:07:34 MSK 2008
Author: vasiatka
Date: 2008-03-27 19:07:33 +0300 (Thu, 27 Mar 2008)
New Revision: 6860
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6860
Added:
3.x/trunk/limb/cms/src/macro/
3.x/trunk/limb/cms/src/macro/flashbox.tag.php
Log:
-- added flashbox tag for marcro
Added: 3.x/trunk/limb/cms/src/macro/flashbox.tag.php
===================================================================
--- 3.x/trunk/limb/cms/src/macro/flashbox.tag.php (rev 0)
+++ 3.x/trunk/limb/cms/src/macro/flashbox.tag.php 2008-03-27 16:07:33 UTC (rev 6860)
@@ -0,0 +1,42 @@
+<?php
+/*
+ * Limb PHP Framework
+ *
+ * @link http://limb-project.com
+ * @copyright Copyright © 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'))
+ {
+ $using=$this->get('as');
+ }
+ if($this->get('using'))
+ {
+ $using=$this->get('using');
+ }
+ else
+ $using = '$flashbox';
+
+
+ $method = $code->beginMethod('__flashbox_container');
+
+ $code->writePHP($using.'=$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