general questions

From: Date: Wed, 28 Nov 2001 18:26:26 +0000
Subject: general questions
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-3153@lists.php.net to get a copy of this message
Hi, as I stated in another thread we are currently investigating making the metabase API abit more OO style. Since several people stated their interest in making metabase part of PEAR (I also think this is a good idea) we would want to make this metabase API switch in such a way to be PEAR complaint. I must admit so far I have not used any PEAR packages, so I have a couple little questions. I still don't quite get the usage of "::" .. As far as I understand this is for so called static functions and to generate a new namespace ... So far so good But why do stuff like DB::connect ? Why not put stuff like that in a constructor? Then another question: The package obviously has to be named something ... the current DB package is called "DB" .. what would this "other" package be called? Since everything has its own namespace what is the prefixing for? As long as the package name is unique ... ? Somehow I think the manual has not really explained to me why things are like they are :-) I hope I am not making too much of a fool of myself with these questions. Best regards, Lukas Smith smith@dybnet.de _______________________________ DybNet Internet Solutions GbR Alt Moabit 89 10559 Berlin Tel. : +49 30 83 22 50 00 Fax : +49 30 83 22 50 07 www.dybnet.de info@dybnet.de _______________________________

« previous php.pear.dev (#3153) next »