cvs: pearweb /include pear-database.php
| From: | Stig Bakken | Date: | Fri, 29 Mar 2002 02:19:59 +0000 |
| Subject: | cvs: pearweb /include pear-database.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2895@lists.php.net to get a copy of this message | ||
ssb Thu Mar 28 21:19:59 2002 EDT
Modified files:
/pearweb/include pear-database.php
Log:
* lots of methods should not require login
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.57 pearweb/include/pear-database.php:1.58
--- pearweb/include/pear-database.php:1.57 Thu Mar 28 20:28:00 2002
+++ pearweb/include/pear-database.php Thu Mar 28 21:19:59 2002
@@ -17,7 +17,7 @@
| Tomas V.V.Cox <cox@php.net> |
| Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: pear-database.php,v 1.57 2002/03/29 01:28:00 ssb Exp $
+ $Id: pear-database.php,v 1.58 2002/03/29 02:19:59 ssb Exp $
*/
require_once "DB/storage.php";
@@ -163,7 +163,7 @@
}
// }}}
- // {{{ -proto array category::listAll()
+ // {{{ proto array category::listAll()
function listAll()
{
@@ -221,7 +221,7 @@
}
// }}}
- // {{{ *proto struct package::info(string|int, [string])
+ // {{{ proto struct package::info(string|int, [string])
/**
* Implemented $field values:
@@ -302,7 +302,7 @@
}
// }}}
- // {{{ -proto struct package::listAll([bool])
+ // {{{ proto struct package::listAll([bool])
function listAll($released_only = true)
{
@@ -343,8 +343,11 @@
{
global $dbh;
$query =
- "SELECT p.name AS package, r.version AS version, ".
- "r.state AS state, f.fullpath AS fullpath ".
+ "SELECT ".
+ "p.name AS package, ".
+ "r.version AS version, ".
+ "r.state AS state, ".
+ "f.fullpath AS fullpath ".
"FROM packages p, releases r, files f ".
"WHERE p.id = r.package ".
"AND f.package = p.id ".
@@ -360,14 +363,14 @@
usort($ver, $sortfunc);
}
$res[$pkg] = array_pop($ver);
- $res[$pkg]['filesize'] = (int)@filesize($res['fullpath']);
+ $res[$pkg]['filesize'] = (int)@filesize($res[$pkg]['fullpath']);
unset($res[$pkg]['fullpath']);
}
return $res;
}
// }}}
- // {{{ -proto struct package::listUpgrades(struct)
+ // {{{ proto struct package::listUpgrades(struct)
function listUpgrades($currently_installed)
{
@@ -420,7 +423,7 @@
}
// }}}
- // {{{ *proto int maintainer::get(int, bool)
+ // {{{ proto int maintainer::get(int, bool)
function get($package, $lead = false)
{
@@ -449,7 +452,7 @@
class release
{
- // {{{ -proto array release::getRecent([int])
+ // {{{ proto array release::getRecent([int])
function getRecent($n = 5)
{
@@ -680,7 +683,7 @@
}
// }}}
- // {{{ -proto bool release::isValidState(string)
+ // {{{ proto bool release::isValidState(string)
function isValidState($state)
{
@@ -772,7 +775,7 @@
}
// }}}
- // {{{ remove
+ // {{{ NOEXPORT release::remove(int, int)
function remove($package, $release)
{