Extending libs private vs protected - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Extending libs private vs protected (/showthread.php?tid=43393) |
Extending libs private vs protected - El Forum - 07-09-2011 [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 Extending libs private vs protected - El Forum - 07-10-2011 [eluser]Treeda[/eluser] hm no one encountered this kind of problems? Did i something wrong? |