cvs: pearweb /include pear-database.php

From: Date: Wed, 03 Oct 2001 13:40:45 +0000
Subject: cvs: pearweb /include pear-database.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-920@lists.php.net to get a copy of this message
cox Wed Oct 3 09:40:45 2001 EDT Modified files: /pearweb/include pear-database.php Log: fix parse errors Index: pearweb/include/pear-database.php diff -u pearweb/include/pear-database.php:1.18 pearweb/include/pear-database.php:1.19 --- pearweb/include/pear-database.php:1.18 Wed Oct 3 08:56:11 2001 +++ pearweb/include/pear-database.php Wed Oct 3 09:40:45 2001 @@ -180,7 +180,7 @@ 'parent' => 'category parent id' ); */ - function category::add($data) + function add($data) { global $dbh; $name = $data['name']; @@ -189,7 +189,7 @@ } $desc = (empty($data['desc'])) ? 'none' : $data['desc']; $parent = (empty($data['parent'])) ? null : $data['parent']; - + $sql = 'INSERT INTO categories (id, name, description, parent)'. 'VALUES (?, ?, ?, ?)'; $id = $dbh->nextId('categories'); @@ -207,7 +207,7 @@ } return $id; } - + // }}} } @@ -216,7 +216,7 @@ // {{{ package::add() // add a package, return new package id or PEAR error - function package::add($data) + function add($data) { global $dbh; // name, category @@ -309,7 +309,7 @@ // }}} } - + class release { // {{{ release::getRecent() @@ -465,7 +465,7 @@ function activate($uid) { global $PHP_AUTH_USER, $dbh; - + $user =& new PEAR_User($dbh, $uid); if (@$user->registered) { return false;

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