Changeset 21563 for branches/version-2_12-dev/data/class/SC_Query.php
- Timestamp:
- 2012/02/28 22:35:14 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Query.php
r21553 r21563 219 219 * FIXME MDB2::exec() の実装であるべき 220 220 */ 221 function exec($str, $arr val = array()) {222 return $this->query($str, $arr val);221 function exec($str, $arrVal = array()) { 222 return $this->query($str, $arrVal); 223 223 } 224 224 … … 232 232 * @return boolean 結果 233 233 */ 234 function doCallbackAll($cbFunc, $sql, $arr val = array(), $fetchmode = MDB2_FETCHMODE_ASSOC) {234 function doCallbackAll($cbFunc, $sql, $arrVal = array(), $fetchmode = MDB2_FETCHMODE_ASSOC) { 235 235 236 236 $sql = $this->dbFactory->sfChangeMySQL($sql); … … 241 241 } 242 242 243 $affected =& $this->execute($sth, $arr val);243 $affected =& $this->execute($sth, $arrVal); 244 244 if (PEAR::isError($affected) && $this->force_run) { 245 245 return; … … 264 264 * @return array データを含む2次元配列。失敗した場合に 0 または DB_Error オブジェクトを返します。 265 265 */ 266 function getAll($sql, $arr val = array(), $fetchmode = MDB2_FETCHMODE_ASSOC) {266 function getAll($sql, $arrVal = array(), $fetchmode = MDB2_FETCHMODE_ASSOC) { 267 267 268 268 $sql = $this->dbFactory->sfChangeMySQL($sql); … … 273 273 } 274 274 275 $affected =& $this->execute($sth, $arr val);275 $affected =& $this->execute($sth, $arrVal); 276 276 if (PEAR::isError($affected) && $this->force_run) { 277 277 return; … … 583 583 * @param string $col カラム名 584 584 * @param string $where 付与する WHERE 句 585 * @param array $arr val プレースホルダに挿入する値585 * @param array $arrWhereVal プレースホルダに挿入する値 586 586 * @return integer MAX文の実行結果 587 587 */ 588 function max($col, $table, $where = '', $arr val = array()) {589 $ret = $this->get("MAX($col)", $table, $where, $arr val);588 function max($col, $table, $where = '', $arrWhereVal = array()) { 589 $ret = $this->get("MAX($col)", $table, $where, $arrWhereVal); 590 590 return $ret; 591 591 } … … 597 597 * @param string $col カラム名 598 598 * @param string $where 付与する WHERE 句 599 * @param array $arr val プレースホルダに挿入する値599 * @param array $arrWhereVal プレースホルダに挿入する値 600 600 * @return integer MIN文の実行結果 601 601 */ 602 function min($col, $table, $where = '', $arr val = array()) {603 $ret = $this->get("MIN($col)", $table, $where, $arr val);602 function min($col, $table, $where = '', $arrWhereVal = array()) { 603 $ret = $this->get("MIN($col)", $table, $where, $arrWhereVal); 604 604 return $ret; 605 605 } … … 625 625 * 626 626 * @param string $sql 実行する SQL 627 * @param array $arr val プレースホルダに挿入する値627 * @param array $arrVal プレースホルダに挿入する値 628 628 * @return mixed SQL の実行結果 629 629 */ 630 function getOne($sql, $arr val = array()) {630 function getOne($sql, $arrVal = array()) { 631 631 632 632 $sql = $this->dbFactory->sfChangeMySQL($sql); … … 637 637 } 638 638 639 $affected =& $this->execute($sth, $arr val);639 $affected =& $this->execute($sth, $arrVal); 640 640 if (PEAR::isError($affected) && $this->force_run) { 641 641 return; … … 722 722 * @param string $table テーブル名 723 723 * @param string $where WHERE句 724 * @param array $arr val プレースホルダ724 * @param array $arrWhereVal プレースホルダ 725 725 * @return 726 726 */ 727 function delete($table, $where = '', $arr val = array()) {727 function delete($table, $where = '', $arrWhereVal = array()) { 728 728 if (strlen($where) <= 0) { 729 729 $sqlde = "DELETE FROM $table"; … … 731 731 $sqlde = "DELETE FROM $table WHERE $where"; 732 732 } 733 $ret = $this->query($sqlde, $arr val, false, null, MDB2_PREPARE_MANIP);733 $ret = $this->query($sqlde, $arrWhereVal, false, null, MDB2_PREPARE_MANIP); 734 734 return $ret; 735 735 }
Note: See TracChangeset
for help on using the changeset viewer.
