[limb-svn] r6268 - 3.x/trunk/limb/wact/src/tags/list

svn at limb-project.com svn at limb-project.com
Thu Sep 6 17:06:28 MSD 2007


Author: serega
Date: 2007-09-06 17:06:28 +0400 (Thu, 06 Sep 2007)
New Revision: 6268
URL: http://fisheye.limb-project.com/changelog/limb/?cs=6268

Modified:
   3.x/trunk/limb/wact/src/tags/list/first_row.prop.php
   3.x/trunk/limb/wact/src/tags/list/last_row.prop.php
Log:
-- FirstRow and LastRow properties doesn't use offset any more

Modified: 3.x/trunk/limb/wact/src/tags/list/first_row.prop.php
===================================================================
--- 3.x/trunk/limb/wact/src/tags/list/first_row.prop.php	2007-09-06 09:49:40 UTC (rev 6267)
+++ 3.x/trunk/limb/wact/src/tags/list/first_row.prop.php	2007-09-06 13:06:28 UTC (rev 6268)
@@ -21,8 +21,7 @@
   function generateScopeEntry($code)
   {
     $this->temp_var = $code->getTempVarRef();
-    $ListList = $this->context->findParentByClass('WactListListTag');
-    $code->writePHP($this->temp_var . ' = ' . $ListList->getComponentRefCode() . '->getOffset();' . "\n");
+    $code->writePHP($this->temp_var . " = 0; \n");
   }
 
    function generatePreStatement($code_writer)

Modified: 3.x/trunk/limb/wact/src/tags/list/last_row.prop.php
===================================================================
--- 3.x/trunk/limb/wact/src/tags/list/last_row.prop.php	2007-09-06 09:49:40 UTC (rev 6267)
+++ 3.x/trunk/limb/wact/src/tags/list/last_row.prop.php	2007-09-06 13:06:28 UTC (rev 6268)
@@ -26,8 +26,8 @@
 
     $ListList = $this->context->findParentByClass('WactListListTag');
 
-    $code->writePHP($this->temp_var . ' = ' . $ListList->getComponentRefCode() . '->getOffset();' . "\n");
-    $code->writePHP($this->count_var . ' = ' . $ListList->getComponentRefCode() . '->count();' . "\n");
+    $code->writePHP($this->temp_var . " = 0; \n");
+    $code->writePHP($this->count_var . ' = ' . $ListList->getComponentRefCode() . '->countPaginated();' . "\n");
   }
 
   function generatePreStatement($code_writer)



More information about the limb-svn mailing list