Access protected properties from driver library in child drivers |
[eluser]mjsilva[/eluser]
Hi there, I've stumble an annoyance today, I'm build a set of drivers to "revive several models of Frankenstein" I've this file structure: Code: libraries In file Revive_frankenstein.php I have: Code: class Revive_frankenstein extends CI_Driver_Library { And I want in Revive_frankenstein_model1.php to be able to do: Code: class Revive_frankenstein_model1 extends CI_Driver{ Well I figured I can't because of this: https://bitbucket.org/ellislab/codeignit...php#cl-150 Can this be changed to this: Code: if ($prop->isPublic() OR $prop->isProtected()) I think it makes sense since this are "childs", and child classes should be allowed to access protected properties of parents (I guess). cheers EDIT: It appears there's a bug in bitbucket, the anchor for the line 150 is not working correctly. |
Welcome Guest, Not a member yet? Register Sign In |