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

Francois Suter fsu-lists at cobweb.ch
Wed Dec 16 16:12:06 CET 2009


Hi Tapio,

> How I can refer to [uid] => 6. I'm not familiar with
> 'currentRow:protected' etc. PHP 5 code.

You can't access protected member variables from outside an object. The 
object should have getter and setter methods for this. So look up the 
definition of the tx_prinfosmallads_entry class and see if there's a 
method like getCurrentRow or some such.

You want to look at: 
http://www.php.net/manual/en/language.oop5.visibility.php

HTH

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch




More information about the TYPO3-dev mailing list