[UPHPU] Nested Classes?
William Attwood
wattwood at gmail.com
Wed Apr 16 10:57:08 MDT 2008
That all depends on the type of file you are including. If you include a
class, the class will not do anything until you instantiate it or inherit
from it. If you have functions or basic "scripting" logic inside of your
included file, it will be executed at the include point (if it's script) or
at the time the function is called elsewhere in your script.
On Wed, Apr 16, 2008 at 10:54 AM, Nathan Lane <nathamberlane at gmail.com>
wrote:
> So including files doesn't just inline their contents? That's how I've
> been using it currently on my site.
>
> On Wed, Apr 16, 2008 at 10:52 AM, William Attwood <wattwood at gmail.com>
> wrote:
>
> > So long as you inherit or instantiate your new objects within the scope
> > of your current object (Database) you should be fine. Including files just
> > makes them available if you want to use them.
> >
> > --Will
> >
> >
> >
>
>
> --
> Nathan Lane
> Home, http://www.nathandelane.com
> Blog, http://nathandelane.blogspot.com
>
More information about the UPHPU
mailing list