cvs: pearweb /include pear-database.php
| From: | Stig Bakken | Date: | Sat, 22 Dec 2001 02:32:48 +0000 |
| Subject: | cvs: pearweb /include pear-database.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-1651@lists.php.net to get a copy of this message | ||
ssb Fri Dec 21 21:32:48 2001 EDT
Modified files:
/pearweb/include pear-database.php
Log:
* rename "delete*" to "remove*" (ZE2 issue)
Index: pearweb/include/pear-database.php
diff -u pearweb/include/pear-database.php:1.30 pearweb/include/pear-database.php:1.31
--- pearweb/include/pear-database.php:1.30 Wed Nov 7 05:42:39 2001
+++ pearweb/include/pear-database.php Fri Dec 21 21:32:48 2001
@@ -395,9 +395,9 @@
}
// }}}
- // {{{ +proto bool note::delete(int)
+ // {{{ +proto bool note::remove(int)
- function delete($id)
+ function remove($id)
{
global $dbh;
$id = (int)$id;
@@ -409,9 +409,9 @@
}
// }}}
- // {{{ +proto bool note::deleteAll(string, int)
+ // {{{ +proto bool note::removeAll(string, int)
- function deleteAll($key, $value)
+ function removeAll($key, $value)
{
global $dbh;
$res = $dbh->query("DELETE FROM notes WHERE $key = ". $dbh->quote($value));
@@ -426,12 +426,12 @@
class user
{
- // {{{ *proto bool user::delete(string)
+ // {{{ *proto bool user::remove(string)
- function delete($uid)
+ function remove($uid)
{
global $dbh;
- note::deleteall("uid", $uid);
+ note::removeAll("uid", $uid);
$dbh->query('DELETE FROM users WHERE handle = '. $dbh->quote($uid));
return ($dbh->affectedRows() > 0);
}
@@ -464,7 +464,7 @@
return false;
}
@$arr = unserialize($user->userinfo);
- note::deleteall("uid", $uid);
+ note::removeAll("uid", $uid);
$user->set('registered', 1);
if (is_array($arr)) {
$user->set('userinfo', $arr[1]);
@@ -484,11 +484,11 @@
// }}}
}
-// {{{ +proto array testerror()
+// {{{ +proto string logintest()
function testerror()
{
- return new PEAR_Error("this is a test error", -42);
+ return "ok";
}
// }}}