Feature #6390
ObjectAccess::getPropertyPath doesn't support Arrays
Status: | Resolved | Start date: | 2010-04-16 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Karsten Dambekalns | % Done: | 100% |
|
Category: | Reflection | |||
Target version: | TYPO3 Flow Base Distribution - 1.0 alpha 8 | Estimated time: | 1.00 hour | |
PHP Version: | Complexity: | |||
Has patch: |
Description
Would be great to enable the Access of Arrays through the getPropertyPath.
It already used to work with this old implementation of the getProperty function:
static public function getPropertyPath($object, $propertyPath) {
$propertyPathSegments = explode('.', $propertyPath);
foreach ($propertyPathSegments as $pathSegment) {
$object = self::getProperty($object, $pathSegment);
if ($object === NULL) return NULL;
}
return $object;
}
Main Problem seems the isPropertyGettable function because it only checks the Objects getters and doesn't consider all Possibilities supported by the getProperty function.
Related issues
Associated revisions
History
#1 Updated by Karsten Dambekalns over 5 years ago
- Category set to Reflection
#2 Updated by Marc Neuhaus over 5 years ago
- File ObjectAccess.diff added
Here is a Diff(Based on current trunk) to enable the Access of Arrays through ObjectAccess
#3 Updated by Karsten Dambekalns over 5 years ago
- Tracker changed from Bug to Feature
#4 Updated by Karsten Dambekalns over 5 years ago
- Status changed from New to Accepted
- Assigned To set to Karsten Dambekalns
- Target version set to 1.0 alpha 8
- Start date changed from 2010-02-07 to 2010-04-16
- Estimated time set to 1.00
#5 Updated by Karsten Dambekalns over 5 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r4185.