cvs: php4 /pear Cache.php /pear/Cache Container.php /pear/Cache/Container db.php dbx.php file.php phplib.php shm.php /pear/DB storage.php
/pear/HTML Menu.php

From: Date: Sat, 11 Aug 2001 08:08:07 +0000
Subject: cvs: php4 /pear Cache.php /pear/Cache Container.php /pear/Cache/Container db.php dbx.php file.php phplib.php shm.php /pear/DB storage.php
/pear/HTML Menu.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-466@lists.php.net to get a copy of this message
sebastian Sat Aug 11 04:08:07 2001 EDT Modified files: /php4/pear Cache.php /php4/pear/Cache Container.php /php4/pear/Cache/Container db.php dbx.php file.php phplib.php shm.php /php4/pear/DB storage.php /php4/pear/HTML Menu.php Log: 'delete' is a reserved word in Zend Engine 2

Index: php4/pear/Cache.php diff -u php4/pear/Cache.php:1.14 php4/pear/Cache.php:1.15 --- php4/pear/Cache.php:1.14 Fri Aug 10 12:12:33 2001 +++ php4/pear/Cache.php Sat Aug 11 04:08:05 2001 @@ -16,7 +16,7 @@ // | Sebastian Bergmann <sb@sebastian-bergmann.de> | // +----------------------------------------------------------------------+ // -// $Id: Cache.php,v 1.14 2001/08/10 16:12:33 sebastian Exp $ +// $Id: Cache.php,v 1.15 2001/08/11 08:08:05 sebastian Exp $ require_once 'Cache/Error.php'; @@ -58,7 +58,7 @@ * bad circumstances (especially with the file container) * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: Cache.php,v 1.14 2001/08/10 16:12:33 sebastian Exp $ +* @version $Id: Cache.php,v 1.15 2001/08/11 08:08:05 sebastian Exp $ * @package Cache * @access public */ @@ -257,12 +257,12 @@ * @return boolean * @access public */ - function delete($id, $group = 'default') { + function remove($id, $group = 'default') { if (!$this->caching) return true; - return $this->container->delete($id, $group); - } // end func delete + return $this->container->remove($id, $group); + } // end func remove /** * Flushes the cache - removes all data from it Index: php4/pear/Cache/Container.php diff -u php4/pear/Cache/Container.php:1.11 php4/pear/Cache/Container.php:1.12 --- php4/pear/Cache/Container.php:1.11 Sat Jul 7 19:15:09 2001 +++ php4/pear/Cache/Container.php Sat Aug 11 04:08:06 2001 @@ -17,7 +17,7 @@ // | Christian Stocker <chregu@nomad.ch> | // +----------------------------------------------------------------------+ // -// $Id: Container.php,v 1.11 2001/07/07 23:15:09 sbergmann Exp $ +// $Id: Container.php,v 1.12 2001/08/11 08:08:06 sebastian Exp $ require_once 'Cache/Error.php'; @@ -39,7 +39,7 @@ * not recommended! * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: Container.php,v 1.11 2001/07/07 23:15:09 sbergmann Exp $ +* @version $Id: Container.php,v 1.12 2001/08/11 08:08:06 sebastian Exp $ * @package Cache * @access public * @abstract @@ -207,7 +207,7 @@ // you feel fine, Ulf? if ($expired = ($this->expires <= time() || ($max_age && ($this->expires <= $max_age))) ) { - $this->delete($id, $group); + $this->remove($id, $group); $this->flushPreload(); } return $expired; @@ -270,7 +270,7 @@ } // end func save /** - * Deletes a dataset. + * Removes a dataset. * * @param string dataset ID * @param string cache group @@ -278,10 +278,10 @@ * @access public * @abstract */ - function delete($id, $group) { + function remove($id, $group) { $this->flushPreload($id, $group); return NULL; - } // end func delete + } // end func remove /** * Flushes the cache - removes all caches datasets from the cache. @@ -348,7 +348,7 @@ /** * Flushes the internal preload buffer. * - * save(), delete() and flush() must call this method + * save(), remove() and flush() must call this method * to preevent differences between the preloaded values and * the real cache contents. * Index: php4/pear/Cache/Container/db.php diff -u php4/pear/Cache/Container/db.php:1.13 php4/pear/Cache/Container/db.php:1.14 --- php4/pear/Cache/Container/db.php:1.13 Sat Jul 7 19:15:15 2001 +++ php4/pear/Cache/Container/db.php Sat Aug 11 04:08:06 2001 @@ -17,7 +17,7 @@ // | Chuck Hagenbuch <chuck@horde.org> | // +----------------------------------------------------------------------+ // -// $Id: db.php,v 1.13 2001/07/07 23:15:15 sbergmann Exp $ +// $Id: db.php,v 1.14 2001/08/11 08:08:06 sebastian Exp $ require_once 'DB.php'; require_once 'Cache/Container.php'; @@ -52,7 +52,7 @@ * ) * * @author Sebastian Bergmann <sb@sebastian-bergmann.de> -* @version $Id: db.php,v 1.13 2001/07/07 23:15:15 sbergmann Exp $ +* @version $Id: db.php,v 1.14 2001/08/11 08:08:06 sebastian Exp $ * @package Cache */ class Cache_Container_db extends Cache_Container { @@ -159,7 +159,7 @@ } } - function delete($id, $group) + function remove($id, $group) { $this->flushPreload($id, $group); Index: php4/pear/Cache/Container/dbx.php diff -u php4/pear/Cache/Container/dbx.php:1.8 php4/pear/Cache/Container/dbx.php:1.9 --- php4/pear/Cache/Container/dbx.php:1.8 Sat Jul 7 19:15:15 2001 +++ php4/pear/Cache/Container/dbx.php Sat Aug 11 04:08:06 2001 @@ -15,7 +15,7 @@ // | Authors: Christian Stocker <chregu@nomad.ch> | // +----------------------------------------------------------------------+ // -// $Id: dbx.php,v 1.8 2001/07/07 23:15:15 sbergmann Exp $ +// $Id: dbx.php,v 1.9 2001/08/11 08:08:06 sebastian Exp $ require_once 'Cache/Container.php'; @@ -50,7 +50,7 @@ * ) * * @author Christian Stocker <chregu@nomad.ch> -* @version $Id: dbx.php,v 1.8 2001/07/07 23:15:15 sbergmann Exp $ +* @version $Id: dbx.php,v 1.9 2001/08/11 08:08:06 sebastian Exp $ * @package Cache */ class Cache_Container_dbx extends Cache_Container { @@ -197,7 +197,7 @@ } } - function delete($id, $group) + function remove($id, $group) { $this->flushPreload($id, $group); Index: php4/pear/Cache/Container/file.php diff -u php4/pear/Cache/Container/file.php:1.15 php4/pear/Cache/Container/file.php:1.16 --- php4/pear/Cache/Container/file.php:1.15 Tue Jul 10 10:38:57 2001 +++ php4/pear/Cache/Container/file.php Sat Aug 11 04:08:06 2001 @@ -16,7 +16,7 @@ // | Sebastian Bergmann <sb@sebastian-bergmann.de> | // +----------------------------------------------------------------------+ // -// $Id: file.php,v 1.15 2001/07/10 14:38:57 chregu Exp $ +// $Id: file.php,v 1.16 2001/08/11 08:08:06 sebastian Exp $ require_once 'Cache/Container.php'; @@ -24,7 +24,7 @@ * Stores cache contents in a file. * * @author Ulf Wendel <ulf.wendel@phpdoc.de> -* @version $Id: file.php,v 1.15 2001/07/10 14:38:57 chregu Exp $ +* @version $Id: file.php,v 1.16 2001/08/11 08:08:06 sebastian Exp $ */ class Cache_Container_file extends Cache_Container { @@ -152,7 +152,7 @@ return true; } // end func save - function delete($id, $group) { + function remove($id, $group) { $this->flushPreload($id, $group); $file = $this->getFilename($id, $group); @@ -165,7 +165,7 @@ } return false; - } // end func delete + } // end func remove function flush($group) { $this->flushPreload(); Index: php4/pear/Cache/Container/phplib.php diff -u php4/pear/Cache/Container/phplib.php:1.14 php4/pear/Cache/Container/phplib.php:1.15 --- php4/pear/Cache/Container/phplib.php:1.14 Sat Jul 7 19:15:16 2001 +++ php4/pear/Cache/Container/phplib.php Sat Aug 11 04:08:06 2001 @@ -16,7 +16,7 @@ // | Sebastian Bergmann <sb@sebastian-bergmann.de> | // +----------------------------------------------------------------------+ // -// $Id: phplib.php,v 1.14 2001/07/07 23:15:16 sbergmann Exp $ +// $Id: phplib.php,v 1.15 2001/08/11 08:08:06 sebastian Exp $ require_once 'Cache/Container.php'; @@ -50,7 +50,7 @@ * * * @author Ulf Wendel <ulf.wendel@phpdoc.de>, Sebastian Bergmann <sb@sebastian-bergmann.de> -* @version $Id: phplib.php,v 1.14 2001/07/07 23:15:16 sbergmann Exp $ +* @version $Id: phplib.php,v 1.15 2001/08/11 08:08:06 sebastian Exp $ * @package Cache * @see save() */ @@ -177,7 +177,7 @@ return (boolean)$this->db->affected_rows(); } // end func save - function delete($id, $group) { + function remove($id, $group) { $this->flushPreload($id, $group); $this->db->query( sprintf("DELETE FROM %s WHERE id = '%s' AND cachegroup = '%s'", @@ -188,7 +188,7 @@ ); return (boolean)$this->db->affected_rows(); - } // end func delete + } // end func remove function flush($group) { $this->flushPreload(); Index: php4/pear/Cache/Container/shm.php diff -u php4/pear/Cache/Container/shm.php:1.4 php4/pear/Cache/Container/shm.php:1.5 --- php4/pear/Cache/Container/shm.php:1.4 Sat Jul 7 19:15:17 2001 +++ php4/pear/Cache/Container/shm.php Sat Aug 11 04:08:06 2001 @@ -17,7 +17,7 @@ // | Björn Schotte <bjoern@php.net> | // +----------------------------------------------------------------------+ // -// $Id: shm.php,v 1.4 2001/07/07 23:15:17 sbergmann Exp $ +// $Id: shm.php,v 1.5 2001/08/11 08:08:06 sebastian Exp $ require_once 'Cache/Container.php'; @@ -25,7 +25,7 @@ * Stores cache data into shared memory. * * @author Björn Schotte <bjoern@php.net> -* @version $Id: shm.php,v 1.4 2001/07/07 23:15:17 sbergmann Exp $ +* @version $Id: shm.php,v 1.5 2001/08/11 08:08:06 sebastian Exp $ * @package Cache */ class Cache_Container_shm extends Cache_Container { @@ -43,10 +43,10 @@ $this->flushPreload($id, $group); } // end func save - function delete($id, $group) + function remove($id, $group) { $this->flushPreload($id, $group); - } // end func delete + } // end func remove function flush($group = '') { Index: php4/pear/DB/storage.php diff -u php4/pear/DB/storage.php:1.22 php4/pear/DB/storage.php:1.23 --- php4/pear/DB/storage.php:1.22 Thu Aug 2 02:59:18 2001 +++ php4/pear/DB/storage.php Sat Aug 11 04:08:06 2001 @@ -415,11 +415,11 @@ } /** - * Delete the row represented by this object from the database. + * Remove the row represented by this object from the database. * * @return mixed DB_OK or a DB error */ - function delete() + function remove() { if ($this->_readonly) { return $this->raiseError(null, DB_WARNING_READ_ONLY, null, Index: php4/pear/HTML/Menu.php diff -u php4/pear/HTML/Menu.php:1.4 php4/pear/HTML/Menu.php:1.5 --- php4/pear/HTML/Menu.php:1.4 Wed Aug 8 09:53:47 2001 +++ php4/pear/HTML/Menu.php Sat Aug 11 04:08:06 2001 @@ -17,7 +17,7 @@ // | Sebastian Bergmann <sb@sebastian-bergmann.de> | // +----------------------------------------------------------------------+ // -// $Id: Menu.php,v 1.4 2001/08/08 13:53:47 sebastian Exp $ +// $Id: Menu.php,v 1.5 2001/08/11 08:08:06 sebastian Exp $ // /** @@ -25,7 +25,7 @@ * * Special thanks to the original author: Alex Vorobiev <sasha@mathforum.com>. * -* @version $Id: Menu.php,v 1.4 2001/08/08 13:53:47 sebastian Exp $ +* @version $Id: Menu.php,v 1.5 2001/08/11 08:08:06 sebastian Exp $ * @author Ulf Wendel <ulf.wendel@phpdoc.de> * @access public * @package HTML @@ -142,7 +142,7 @@ * * @param array * @access public - * @see append(), update(), delete() + * @see append(), update() */ function setMenu($menu) { $this->menu = $menu;
« previous php.pear.cvs (#466) next »