Re: [PHP-DEV] Advice on design issues (long)...

2002-03-25 Thread l0t3k
"Lukas Smith" <[EMAIL PROTECTED]> wrote in message 008a01c1d2fb$952b4630$4d00a8c0@vandal">news:008a01c1d2fb$952b4630$4d00a8c0@vandal... > > There is currently an effort underway to merge Metabase with PEAR DB. > I have just commited the first code into the pear cvs (package is called > "MDB" for

Re: [PHP-DEV] Advice on design issues (long)...

2002-03-25 Thread l0t3k
"John Lim" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I have always wondered, how do you pronounce L0t3k? actually "low-tech". most days i dream of woodworking > Seriously, if you are duplicating Metabase's effort, but in C, > why not work with the Manu

RE: [PHP-DEV] Advice on design issues (long)...

2002-03-23 Thread Lukas Smith
> (2) im working on a database access abstraction, again inspired by Java > and > JDBC (MySQL driver is written and works, BTW). in Java you have the > Resultset.getXXX methods which gets the value of a given column as a > particular type. Java of course is strongly typed, whereas PHP is not. Is >

Re: [PHP-DEV] Advice on design issues (long)...

2002-03-23 Thread John Lim
L0t3k <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > im looking for opinions on two OOP related design issues for code im > targeting to PHP5. > (2) im working on a database access abstraction, again inspired by Java and > JDBC (MySQL driver is written and wor

[PHP-DEV] Advice on design issues (long)...

2002-03-22 Thread l0t3k
im looking for opinions on two OOP related design issues for code im targeting to PHP5. (1) im writing (actually porting) a DateTime class which matches the functionality of the Java Date class. it actually does much more, and that's the issue. in looking at the Javadocs reference page for Date,

Re: [PHP-DEV] Advice wanted on function arguments

2002-01-05 Thread Andi Gutmans
Just be aware that POST/GET/COOKIE data is always saved as a string. So if someone sends you 2 it'll be the string "2". If the arguments to your function won't originate from the above but are written by the developer then overloading will work well. If not you might want to consider splitting

Re: [PHP-DEV] Advice wanted on function arguments

2002-01-05 Thread Markus Fischer
On Sat, Jan 05, 2002 at 02:10:17PM -0600, Brian Foddy wrote : > 2. Overload the function arguments and check which type of arg is being >passed. Just accept a ZVAL and do your appropriate conversion later on. > > Questions... > 2. How difficult / successful is it to test the arg t

[PHP-DEV] Advice wanted on function arguments

2002-01-05 Thread Brian Foddy
In an external php module project (php-tuxedo), we have a group of about 7 php functions that, depending on how we design them, could take two different types of arguments. 1. A integer argument 2. A string argument. If the string argument is given, there is another routine that can convert it

RE: [PHP-DEV] advice

2001-03-19 Thread Marc Boeren
Hi >If there aren't any guides, then some sample code would be much appreciated :) I can give you some samples for creating an object and adding members, but I haven't added any member functions, but this shouldn't be more difficult, I feel... if (object_init(return_value) != SUCCESS) {

Re: [PHP-DEV] advice

2001-03-18 Thread Rasmus Lerdorf
Did you read README.EXT_SKEL? On Sun, 18 Mar 2001, Barry Mitchelson wrote: > hi all, > > can anyone give me the url to a tutorial on creating a php extension - specifically >creating a new class which will be available to all scripts. I've read through the >Zend api docs, and have created a n

[PHP-DEV] advice

2001-03-18 Thread Barry Mitchelson
hi all, can anyone give me the url to a tutorial on creating a php extension - specifically creating a new class which will be available to all scripts. I've read through the Zend api docs, and have created a new function, but haven't found any good guides to adding a new class. If there are