[limb-svn] r5960 - in 3.x/trunk/limb/web_app/src/template: components tags/fetch
svn at limb-project.com
svn at limb-project.com
Thu Jun 7 18:54:48 MSD 2007
Author: serega
Date: 2007-06-07 18:54:47 +0400 (Thu, 07 Jun 2007)
New Revision: 5960
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5960
Modified:
3.x/trunk/limb/web_app/src/template/components/lmbActiveRecordFetchComponent.class.php
3.x/trunk/limb/web_app/src/template/tags/fetch/find_parameters.tag.php
Log:
-- fix in <find:params> tag
Modified: 3.x/trunk/limb/web_app/src/template/components/lmbActiveRecordFetchComponent.class.php
===================================================================
--- 3.x/trunk/limb/web_app/src/template/components/lmbActiveRecordFetchComponent.class.php 2007-06-07 13:47:57 UTC (rev 5959)
+++ 3.x/trunk/limb/web_app/src/template/components/lmbActiveRecordFetchComponent.class.php 2007-06-07 14:54:47 UTC (rev 5960)
@@ -1,23 +1,28 @@
<?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
+/*
+ * 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
*/
-lmb_require('limb/wact/src/components/fetch/WactFetchComponent.class.php');
-
+lmb_require('limb/wact/src/components/fetch/WactFetchComponent.class.php');
+
/**
* class lmbActiveRecordFetchComponent.
*
* @package web_app
* @version $Id$
- */
+ */
class lmbActiveRecordFetchComponent extends WactFetchComponent
{
protected $find_params = array();
+ function resetFindParams()
+ {
+ $this->find_params = array();
+ }
+
function addFindParam($value)
{
$this->find_params[] = $value;
Modified: 3.x/trunk/limb/web_app/src/template/tags/fetch/find_parameters.tag.php
===================================================================
--- 3.x/trunk/limb/web_app/src/template/tags/fetch/find_parameters.tag.php 2007-06-07 13:47:57 UTC (rev 5959)
+++ 3.x/trunk/limb/web_app/src/template/tags/fetch/find_parameters.tag.php 2007-06-07 14:54:47 UTC (rev 5960)
@@ -1,22 +1,24 @@
<?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
+/*
+ * 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 find:params
- * @forbid_end_tag
- * @parent_tag_class lmbActiveRecordFetchTag
- * @package web_app
- * @version $Id$
- */
+/**
+ * @tag find:params
+ * @forbid_end_tag
+ * @parent_tag_class lmbActiveRecordFetchTag
+ * @package web_app
+ * @version $Id$
+ */
class lmbFindParametersTag extends WactCompilerTag
{
function generateTagContent($code)
{
+ $code->writePhp($this->parent->getComponentRefCode() .'->resetFindParams();'. "\n");
+
foreach(array_keys($this->attributeNodes) as $key)
{
$name = $this->attributeNodes[$key]->getName();
More information about the limb-svn
mailing list