[TYPO3-dev] How to access variables in PHP 5

Tapio Markula tapio.markula at xetpoint.fi
Wed Dec 16 16:09:59 CET 2009


Tapio Markula kirjoitti:
> Hi
> 
> PHP 5 t3lib_debug gives with Typo3 4.2.10
> 
> <b>|Object:<pre>tx_prinfosmallads_entry Object
> (
>     [categoriesModified:protected] =>
>     [categories:protected] =>
>     [images:protected] => Array
>         (
>             [0] => tx_prinfosmallads_image Object
>                 (
>                     [fileName:protected] => 
> uploads/tx_prinfosmallads/har-startet-i-formynderjobb_0_2.jpg
>                     [height:protected] => 0
>                     [width:protected] => 0
>                 )
> 
>         )
> 
>     [imagesModified:protected] =>
>     [currentRow:protected] => Array
>         (
>             [uid] => 6
> 
> How I can refer to [uid] => 6. I'm not familiar with 
> 'currentRow:protected' etc. PHP 5 code.


  I tried

t3lib_div::debug($entry->currentRow);
and got
Fatal error: Cannot access protected property 
tx_prinfosmallads_entry::$currentRow in
I just would need the uid to generate a SQL-query




More information about the TYPO3-dev mailing list