Project

General

Profile

Actions

Feature #73752

closed

Allow accessing ObjectStorage as array in Fluid and other places

Added by Claus Due about 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Extbase
Target version:
Start date:
2016-02-29
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:

Description

By creating an extremely simple aliasing of "toArray()" on ObjectStorage allowing it to be called as "getArray()" enables things like:

ObjectAccess::getPropertyPath($subject, 'objectstorageproperty.array.4') to get the 4th element

{myObject.objectstorageproperty.array.4} in Fluid (including {myObject.objectstorageproperty.array.{dynamicIndex}} in v8)

Actions #1

Updated by Gerrit Code Review about 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46961

Actions #2

Updated by Claus Due about 8 years ago

Can be followed up by a change to clean up ObjectAccess::getPropertyPath()'s custom handling of numerical indexes of objects; which would be a breaking change but would significantly lower the amount of decisions ObjectAccess has to make about how to access a certain object/index.

Actions #3

Updated by Gerrit Code Review about 8 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/46961

Actions #4

Updated by Anonymous about 8 years ago

  • Status changed from Under Review to Resolved
Actions #5

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF