• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Extending libs private vs protected

#1
[eluser]Treeda[/eluser]
Hi there,

i just updated my email class to the new codeigniter 2.0.2 (was using 1.7 before) and run into some php5 problems.

It seems that a couple functions in the CI_Email class are set as private. The problem with that is you cannot overwrite them.

just for example, try to overwrite _build_message. it is not using the one in the MY_Email class... if i change them to protected anything is fine.

Is there a way to solve this without modifying the lib itself changing all privates to protected?

Treeda

#2
[eluser]Treeda[/eluser]
hm no one encountered this kind of problems?

Did i something wrong?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.