Hi,

This particular change was done in order to change the way function is called 
(static vs non-static way). Before 5.0/4.7 getting session var was done by 
calling static method oxSession::getVar(). From 4.7/5.0 You can override 
oxSession class with modules. As static methods are called directly from class 
and not the object the method is marked as deprecated. There is a new method 
and it should be called from object. When you call it like this:
$sessVar = oxRegistry::getSession()->getVariable("sessVar");
There is a way to override this call with the module.

Similar changes are done in oxConfig class as well (getParameter() is changed 
and to recommended one getRequestParameter() )

Regards
Tomas Liubinas
 
> -----Original Message-----
> From: [email protected] [mailto:dev-general-
> [email protected]] On Behalf Of Tobias Merkl
> Sent: Tuesday, February 19, 2013 10:47 AM
> To: [email protected]
> Subject: [oxid-dev-general] function names 5.0/4.7
> 
> hellas,
> 
> does anyone knows an useful reason, why some functions in 4.7/5.0 have
> been renamed like
> 
> oxSession
> 
> getVar() --> getVariable()
> 
> regards
> 
> Tobias Merkl
> Softwareentwicklung
> 
> 
> *******************************************
> shoptimax GmbH
> Guntherstraße 45 a
> 90461 Nürnberg
> Amtsgericht Nürnberg HRB 21703
> GF Friedrich Schreieck
> 
> Tel.: 0911/25566-0
> Fax:  0911/25566-29
> eMail: [email protected]
> Web: www.shoptimax.de
> Blog: www.shoptimax.de/blog/
> *******************************************
> 
> 
> 
> 
> 
> 
> _______________________________________________
> dev-general mailing list
> [email protected]
> http://dir.gmane.org/gmane.comp.php.oxid.general
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to