diff options
| author | Christian Fowler <spider@viovio.com> | 2006-02-08 23:24:28 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2006-02-08 23:24:28 +0000 |
| commit | 876765ded93ae45b7f33d6ac04938140259d89be (patch) | |
| tree | de5a71f2e3721a26fb92fe60156daa189649238c | |
| parent | a89d395b51c1cb1f63a06dac5b7c64e219f2d338 (diff) | |
| download | quota-876765ded93ae45b7f33d6ac04938140259d89be.tar.gz quota-876765ded93ae45b7f33d6ac04938140259d89be.tar.bz2 quota-876765ded93ae45b7f33d6ac04938140259d89be.zip | |
major change of BitDbBase::associateUpdate method - it now takes a simpler array( 'column1' => 'value1', columnN' => 'valueN' ) as the third parameter. This allows much simpler updating based on multiple columns in the WHERE clause
| -rw-r--r-- | LibertyQuota.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/LibertyQuota.php b/LibertyQuota.php index 51e101c..bc82b2d 100644 --- a/LibertyQuota.php +++ b/LibertyQuota.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_quota/LibertyQuota.php,v 1.7 2006/02/01 18:42:54 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_quota/LibertyQuota.php,v 1.8 2006/02/08 23:24:28 spiderr Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: LibertyQuota.php,v 1.7 2006/02/01 18:42:54 squareing Exp $ + * $Id: LibertyQuota.php,v 1.8 2006/02/08 23:24:28 spiderr Exp $ * @package quota */ @@ -28,7 +28,7 @@ require_once( LIBERTY_PKG_PATH.'LibertyAttachable.php' ); * * @author spider <spider@steelsun.com> * - * @version $Revision: 1.7 $ $Date: 2006/02/01 18:42:54 $ $Author: squareing $ + * @version $Revision: 1.8 $ $Date: 2006/02/08 23:24:28 $ $Author: spiderr $ */ class LibertyQuota extends LibertyBase { /** @@ -55,8 +55,7 @@ class LibertyQuota extends LibertyBase { $this->mDb->StartTrans(); $table = BIT_DB_PREFIX."quotas"; if( $this->mQuotaId ) { - $locId = array ( "name" => "quota_id", "value" => $pParamHash['quota_id'] ); - $result = $this->mDb->associateUpdate( $table, $pParamHash['quota_store'], $locId ); + $result = $this->mDb->associateUpdate( $table, $pParamHash['quota_store'], array( "quota_id" => $pParamHash['quota_id'] ) ); } else { $this->mQuotaId = $this->mDb->GenID( 'quota_id_seq' ); $pParamHash['quota_store']['quota_id'] = $this->mQuotaId; |
