cvs: pearweb /include pear-database.php

From: Date: Mon, 09 Jun 2003 07:31:54 +0000
Subject: cvs: pearweb /include pear-database.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-10787@lists.php.net to get a copy of this message
mj Mon Jun 9 03:31:54 2003 EDT Modified files: /pearweb/include pear-database.php Log: * Add missing parameter for user::listAll() * Add some (yet unused) code for the proposal manager. Index: pearweb/include/pear-database.php diff -u pearweb/include/pear-database.php:1.123 pearweb/include/pear-database.php:1.124 --- pearweb/include/pear-database.php:1.123 Mon Jun 9 03:27:00 2003 +++ pearweb/include/pear-database.php Mon Jun 9 03:31:54 2003 @@ -17,7 +17,7 @@ | Tomas V.V.Cox <cox@php.net> | | Martin Jansen <mj@php.net> | +----------------------------------------------------------------------+ - $Id: pear-database.php,v 1.123 2003/06/09 07:27:00 mj Exp $ + $Id: pear-database.php,v 1.124 2003/06/09 07:31:54 mj Exp $ */ require_once 'DB/storage.php'; @@ -1535,6 +1535,7 @@ @$arr = unserialize($user->userinfo); note::removeAll("uid", $uid); $user->set('registered', 1); + /* $user->set('ppp_only', 0); */ if (is_array($arr)) { $user->set('userinfo', $arr[1]); } @@ -1625,7 +1626,7 @@ // }}} // {{{ listAll() - function listAll() + function listAll($registered_only = true) { global $dbh; $query = "SELECT * FROM users"; @@ -1757,6 +1758,20 @@ } } +// }}} +// {{{ class PEAR Proposal +/* +class PEAR_Proposal extends DB_storage +{ + function PEAR_Proposal(&$dbh, $package, $keycol = "id") + { + $this->DB_storage("package_proposals", $keycol, $dbh); + $this->pushErrorHandling(PEAR_ERROR_RETURN); + $this->setup($package); + $this->popErrorHandling(); + } +} +*/ // }}} if (!function_exists("md5_file")) {

« previous php.pear.cvs (#10787) next »