[PHP-DB] [slightly OT] OOP syntax

2004-06-30 Thread jeffrey_n_Dyke
I have some procedural code that i'm wanting to convert into classes(and i'm a bit greeen to OOP), hopefully to offer them to the PHP community. I keep all my config data in arrays of arrays, which i'd like to keep when i move to a class model, but can't seem to find out the correct defintion synt

Re: [PHP-DB] [slightly OT] OOP syntax

2004-06-30 Thread Justin Patrin
On Wed, 30 Jun 2004 14:20:52 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have some procedural code that i'm wanting to convert into classes(and > i'm a bit greeen to OOP), hopefully to offer them to the PHP community. I > keep all my config data in arrays of arrays, which i'd like t

Re: [PHP-DB] [slightly OT] OOP syntax

2004-06-30 Thread dpgirago
Jeff, >From my recent readings, and others please correct me here, I think you need to first declare the variables inside the Class, i.e., var $srvr['etime'] = array(); var $srvr['etime']['server']; -- then assign a value to them: var $srvr['etime']['server'] = '27.22.1.5:1433'; In other wor

Re: [PHP-DB] [slightly OT] OOP syntax

2004-06-30 Thread jeffrey_n_Dyke
On Wed, 30 Jun 2004 14:20:52 -0400, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have some procedural code that i'm wanting to convert into classes(and > i'm a bit greeen to OOP), hopefully to offer them to the PHP community. I > keep all my config data in arrays of arrays, which i'd like

Re: [PHP-DB] [slightly OT] OOP syntax

2004-06-30 Thread Ross Honniball
VERY brief class introduction... class database { function database() { // function with the same name as class is the 'constructor' $this->srvr = array(); // once you declare an array once, no need to declare 'sub' arrays $this->srvr['etime']['server']= '27.22.1.5:1433';