CodeIgniter Forums

Full Version: Extending libs private vs protected
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

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

Did i something wrong?