[TYPO3-english] How to access tx_realurl::lookUp_cleanAlias() in RealURL 1.8.0?

Francois Suter fsu-lists at cobweb.ch
Wed Apr 14 15:53:14 CEST 2010


Hi,

The latest version of RealURL added visibility properties to all 
methods. The ChangeLog did warn that some things could break as a 
result, but now that I have something broken I would gladly have an 
advice as to how best to "unbreak" it.

Case in point: in 2 extensions of mine, I create the aliases myself 
using a custom function registered via the userFunc property of the 
postVarSet. Among the parameters received inside this function is a 
callback to the tx_realurl object.

Since I retrieve the information for the aliases myself inside my 
function, I found it useful to be able to call 
tx_realurl::lookUp_cleanAlias() to benefit from the existing algorithm 
rather than making a copy of it. This is not possible any longer since 
tx_realurl::lookUp_cleanAlias() is now protected.

I would like to avoid copying the code from 
tx_realurl::lookUp_cleanAlias() into my extension. Is there another 
solution? Would it be realistic to make tx_realurl::lookUp_cleanAlias() 
public?

Cheers

-- 

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


More information about the TYPO3-english mailing list