cvs: pearweb /include pear-database.php

From: Date: Wed, 15 Oct 2003 16:43:44 +0000
Subject: cvs: pearweb /include pear-database.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13630@lists.php.net to get a copy of this message
mj Wed Oct 15 12:43:44 2003 EDT Modified files: /pearweb/include pear-database.php Log: * Adding more use to PEAR_Package Index: pearweb/include/pear-database.php diff -u pearweb/include/pear-database.php:1.147 pearweb/include/pear-database.php:1.148 --- pearweb/include/pear-database.php:1.147 Wed Oct 15 12:37:56 2003 +++ pearweb/include/pear-database.php Wed Oct 15 12:43:44 2003 @@ -17,7 +17,7 @@ | Tomas V.V.Cox <cox@php.net> | | Martin Jansen <mj@php.net> | +----------------------------------------------------------------------+ - $Id: pear-database.php,v 1.147 2003/10/15 16:37:56 mj Exp $ + $Id: pear-database.php,v 1.148 2003/10/15 16:43:44 mj Exp $ */ require_once 'DB/storage.php'; @@ -2001,12 +2001,25 @@ class PEAR_Package extends DB_storage { - function PEAR_Package(&$dbh, $package, $keycol = "id") + function PEAR_Package(&$dbh, $package, $keycol = "name") { $this->DB_storage("packages", $keycol, $dbh); $this->pushErrorHandling(PEAR_ERROR_RETURN); $this->setup($package); $this->popErrorHandling(); + } + + /** + * Generate link for package + * + * Returns HTML-code that creates a link to /package/<package> + * + * @access public + * @return string + */ + function makeLink() + { + return make_link("/package/" . $this->name . "/", $this->name); } }

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