[TYPO3-mvc] bug? extbase doesn't use getter

Dmitri Pisarev dimaip at gmail.com
Wed Jun 9 13:26:09 CEST 2010


Alright I'm sorry for typing letters faster then I can code...

I have rewritten my code as follows:

$arr = array();

         $properties = 
Tx_Extbase_Reflection_ObjectAccess::getAccessibleProperties($object);

         foreach ($properties as $name => $value) {
             if (count($columns) > 0 && !in_array($property->name, 
$columns)) {
                 // Current property should not be returned
                 continue;
             }
             $arr[$name] = $value;
         }
         return $arr;

Is it any good?


More information about the TYPO3-project-typo3v4mvc mailing list