Re: cvs: pearweb /include pear-database.php
| From: | Tomas V.V.Cox | Date: | Sun, 23 Dec 2001 21:01:52 +0000 |
| Subject: | Re: cvs: pearweb /include pear-database.php | ||
| References: | 1 2 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-1678@lists.php.net to get a copy of this message | ||
"Stig S. Bakken" wrote:
>
> "Thomas V.V.Cox" wrote:
> >
> > cox Sun Dec 23 12:17:25 2001 EDT
> >
> > Modified files:
> > /pearweb/include pear-database.php
> > Log:
> > - added a HTTP download function to release
> > - moved the logic for getting a packge ID from a package name
> > to it's own function package::_getID() (please review the xml-rpc def)
>
> Hi Tomas,
>
> Wouldn't it be better to just add an optional string arg to
> package::info() if you want to get just a single value?
Yeah.. but I guess we need more than that. What about:
/**
* @param mixed $package string or int
* @param mixed $type the info you want or an ordered array of fields
* (id, name, category id, license, summary)
*/
package::info($package, $type)
About the package table definition. Are these fields needed? :
- stablerelease
- develrelease
- description (we haven't this tag in package.xml)
/**
* @param mixed $package string or int
* @param string $version info from this exact version
* @param string $maturity the lastest version of this type
* (you have to supply either $version or $maturity)
*/
release::info($package, $version = null, $maturity = null)
The "problem" I see for the package browser is what type of release we
want to show. The lastest stable seems to be the more logic, and if
there isn't any stable we could show the lastest published.
In the "other releases download" part, we could show the lastest five
published ordered by date. The uploader should take care also on
cleaning up old releases.
/**
* ?
*/
notes::info() -> i'm not sure on the exact purpose of the notes :-)
We would also need to add a new table for storing dependencies. For ex:
CREATE TABLE dependencies (
release INTEGER NOT NULL REFERENCES releases(id),
type ENUM('pkg','ext','php','prog','os'),
relation VARCHAR(20),
require VARCHAR(20),
name VARCHAR(50)
)
That isn't really needed while we could store that info as a serialized
array but with that we could show things like how many packages depends
on a certain package, etc.
> Merry x-mas everyone!
Have you already started with the champagne? ;-)
Take fun these days guys,
Tomas V.V.Cox
BTW: What do you think about my idea for the package downloader?