[limb-issues] Created: (WACT-7) list:list tag must be compartible with IteratorAggregate objects

Denis Bazhenov (JIRA) jira at limb-project.com
Thu Oct 19 10:26:44 MSD 2006


list:list tag must be compartible with IteratorAggregate objects
----------------------------------------------------------------

                 Key: WACT-7
                 URL: http://jira.limb-project.com/browse/WACT-7
             Project: WACT
          Issue Type: New Feature
            Reporter: Denis Bazhenov


Now <list:list> tag do not use foreach statement for traverse around iterator. It use oldstyle rewind/next/valid etc calls. We cannot change this behaviour due some reasons. But we need have support for IteratorAggregate objects.

I offer inject additional check in generated code like:
$iterator = $this->getDatasource();
if ( $iterator instanceof IteratorAggregate ) {
  $iterator = $iterator->getIterator();
}
... generated code

This does not break current behaviour.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.limb-project.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the limb-issues mailing list