cvs: pearweb /include pear-rest.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Sun, 09 Mar 2008 00:52:14 +0000 |
| Subject: | cvs: pearweb /include pear-rest.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-7317@lists.php.net to get a copy of this message | ||
dufuz Sun Mar 9 00:52:14 2008 UTC
Modified files:
/pearweb/include pear-rest.php
Log:
only fetch the fields we need
http://cvs.php.net/viewvc.cgi/pearweb/include/pear-rest.php?r1=1.49&r2=1.50&diff_format=u
Index: pearweb/include/pear-rest.php
diff -u pearweb/include/pear-rest.php:1.49 pearweb/include/pear-rest.php:1.50
--- pearweb/include/pear-rest.php:1.49 Sat Jan 19 19:04:27 2008
+++ pearweb/include/pear-rest.php Sun Mar 9 00:52:11 2008
@@ -8,8 +8,8 @@
public function __construct($base)
{
$this->_restdir = $base;
- $this->extra = '/rest/';
- $this->channel = PEAR_CHANNELNAME;
+ $this->extra = '/rest/';
+ $this->channel = PEAR_CHANNELNAME;
}
public function saveAllCategoriesREST()
@@ -540,7 +540,7 @@
global $dbh;
include_once 'pear-database-package.php';
$pid = package::info($package, 'id');
- $maintainers = $dbh->getAll('SELECT * FROM maintains WHERE package = ?',
array($pid),
+ $maintainers = $dbh->getAll('SELECT handle, active, role FROM maintains WHERE
package = ?', array($pid),
DB_FETCHMODE_ASSOC);
$dir = $this->_restdir . DIRECTORY_SEPARATOR . 'p'
@@ -593,7 +593,7 @@
public function saveMaintainerREST($maintainer)
{
global $dbh;
- $maintainer = $dbh->getRow('SELECT * FROM users WHERE handle = ?',
+ $maintainer = $dbh->getRow('SELECT handle, name, homepage FROM users WHERE handle =
?',
array($maintainer), DB_FETCHMODE_ASSOC);
$uri = '';