That seems more like what I'm looking for..

Thank you, Nick...


"Nick Oostveen" <[EMAIL PROTECTED]> wrote in message
> If you are just trying to access a classes functions without creating an
> instance of it you're probably looking to use the scope resolution
> ::.  For this to work all you have to do is ensure that the definition for
> the class you wish to use is included into the file containing the class
> you are trying to call the functions from.
> You would then call the functions as follows:
> ClassName::FunctionName();
> At 02:43 PM 8/14/2002 -0400, you wrote:
> >Hello,  To begin.. i'm new to the list...
> >
> >I'm trying to learn good practices in OOP based PHP.  I'm actually a bit
> >to OOP in general, but I've done quite a bit of reading and playing
> >with it in the past couple of months.
> >
> >What I'm trying to figure out is the proper way to call a class from a
> >class.  I dont mean by extending the class, but actaully just getting the
> >functions...
> >
> >For instance...
> >
> >I'm trying to connect to a Database (database class) from my gen_XML
> >Do I include the database class in the gen_XML constructor?  Do I set a
> >gen_XML variable as a database object (i.e. $this->mydb)?
> >
> >I hope my question makes some sense...
> >
> >Your help is appreciated...
> >
> >Mark Armendariz
> >
> >
> >
> >--
> >PHP General Mailing List (
> >To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to