[Solar-talk] Solar_Base::__construct() config question

Paul M Jones pmjones at ciaweb.net
Fri Oct 27 15:59:34 PDT 2006


Hi all,

On Oct 27, 2006, at 12:28 PM, Travis Swicegood wrote:

> Then the code goes over every "parent" in the line of a class  
> trying to
> determine if there's any special config values set for this particular
> class.  i.e., I have Domain51_Some_Great_Class, the following  
> properties
> are going to be checked:
>
>     Domain51::$_Domain51_Some_Great_Class
>     Domain51_Some::$_Domain51_Some_Great_Class
>     Domain51_Some_Great::$_Domain51_Some_Great_Class
>     Domain51_Some_Great_Class::$_Domain51_Some_Great_Class

Short answer is that this is backwards; it's really ...

     Domain51_Some_Great_Class::$_Domain51
     Domain51_Some_Great_Class::$_Domain51_Some
     Domain51_Some_Great_Class::$_Domain51_Some_Great
     Domain51_Some_Great_Class::$_Domain51_Some_Great_Class

... so that sub-classes inherit the superclass config values.


--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.  <http://solarphp.com>

Join the Solar community wiki!  <http://solarphp.org>

Savant: The simple, elegant, and powerful solution for
templates in PHP.  <http://phpsavant.com>




More information about the solar-talk mailing list