News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Private class member to protected

Started by greg@cat6.co.za, June 09, 2013, 18:08:21 PM

Previous topic - Next topic

greg@cat6.co.za

Hi

Could you look to changing class member scope from private to protected?

I purchased the istraxx_quantity plugin, but it is not what I want, so I have overloaded VirtueMartModelProduct, calculationHelper etc by accessing there instance variables, and implemented quantity based pricing tables.

You already have 90% of the functionality implemented, so I don't want to hack it. The problem is that methods and variables have been declared as private,
so I have had to change these declarations to allow derived classes to access them.

(A "nice to have" would be if you could insert triggers into functions like VmModel::getModel() and calculationHelper::getInstance() so that plugins can seamelessly overload classes.)

Thanks
Greg

Milbo

Which ones? and what is missing? I am interested what you wanna write.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/