Development

#2669 (sfParameterHolder should implement Iterator, Countable and ArrayAccess SPL interfaces)

You must first sign up to be able to contribute.

Ticket #2669 (closed enhancement: wontfix)

Opened 7 months ago

Last modified 2 weeks ago

sfParameterHolder should implement Iterator, Countable and ArrayAccess SPL interfaces

Reported by: Carl.Vondrick Assigned to: fabien
Priority: minor Milestone:
Component: other Version: 1.1.0 DEV
Keywords: sfParameterHolder sfNamespacedParameterHolder Cc:
Qualification: Design decision

Description

sfParameterHolder and sfNamespacedParameterHolder should implement the SPL interfaces Iterator, Countable and ArrayAccess? to allow convenient access to the data stored. This lets the end-developer treat the holders as if they are arrays.

Attached is a patch and unit tests for this.

Attachments

ParameterHolderArray.patch (10.7 kB) - added by Carl.Vondrick on 12/14/07 01:33:08.
Patch for to implement Iterator, Countable, ArrayAccess? interfaces + unit tests.

Change History

12/14/07 01:33:08 changed by Carl.Vondrick

  • attachment ParameterHolderArray.patch added.

Patch for to implement Iterator, Countable, ArrayAccess? interfaces + unit tests.

02/23/08 04:26:53 changed by Carl.Vondrick

  • version set to 1.1.0.
  • qualification changed from Unreviewed to Design decision.

03/07/08 15:36:57 changed by fabien

You can never use them in a project. To retrieve a parameter holder, you need to call ->getParameterHolder() and PHP can't do ->getParameterHolder()foo?

06/23/08 06:46:59 changed by dwhittle

  • status changed from new to closed.
  • resolution set to wontfix.