From: CM L. <cmc...@gm...> - 2010-11-30 17:45:20
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Perhaps you are thinking of inner classes (where the outer scope is inherited in the inner scope). In this situation, you could have (pseudo code) class A { String x = "Outer Scope"; class B { public B { println(x); } } public static void run { B b = new B(); } } A::run(); PHP does not allow nesting classes, though you can use namespaces (5.3) to achieve similar results. Hope that helps, CM Lubinski - --- http://cmlubinski.info On 11/30/2010 11:08 AM, Walter wrote: > Thank you gentlemen. > > You gave me the answer I was afraid of. I was hoping for a more > classical OO solution, but, we work with what we have. > > Thanks again for the education. > > Walter > > ------------------------------------------------------------------------------ > Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! > Tap into the largest installed PC base & get more eyes on your game by > optimizing for Intel(R) Graphics Technology. Get started today with the > Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. > http://p.sf.net/sfu/intelisp-dev2dev > _______________________________________________ > chiPHPug-discuss mailing list > chi...@li... > https://lists.sourceforge.net/lists/listinfo/chiphpug-discuss -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkz1OBAACgkQfzi1OiZiJLAS3gCePzgJAz4OrNDYg/zqafLCuVQB N2wAnRqPAFx0X1EYGG7L4/m1LTGM4bN3 =3yE8 -----END PGP SIGNATURE----- |