Changeset 20091 for branches/version-2_5-dev/data/class/SC_FormParam.php
- Timestamp:
- 2011/02/04 16:26:14 (13 years ago)
- bzr:base-revision:
- svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:20090
- bzr:committer:
- Kentaro Ohkouchi <ohkouchi@loop-az.jp>
- bzr:file-ids:
data/Smarty/templates/default/shopping/index.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fshopping%2Findex.tpl
data/Smarty/templates/mobile/shopping/index.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fmobile%2Fshopping%2Findex.tpl
data/Smarty/templates/sphone/shopping/index.tpl index.tpl-20101209134550-lsv02w9wikfx9cj3-38
data/class/SC_FormParam.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_FormParam.php
data/class/pages/shopping/LC_Page_Shopping.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping.php
data/class/pages/shopping/LC_Page_Shopping_Deliv.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping_Deliv.php- bzr:mapping-version:
- v4
- bzr:merge:
ohkouchi@loop-az.jp-20110204072336-milrhkq2dg4vl345- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- ohkouchi@loop-az.jp-20110204072610-34311c7r99r01a7g
- bzr:revno:
- 2819
- bzr:revprop:branch-nick:
- branches/version-2_5-dev
- bzr:root:
- branches/version-2_5-dev
- bzr:text-revisions:
data/Smarty/templates/default/shopping/index.tpl ohkouchi@loop-az.jp-20110204072336-milrhkq2dg4vl345
data/Smarty/templates/mobile/shopping/index.tpl ohkouchi@loop-az.jp-20110204072336-milrhkq2dg4vl345
data/Smarty/templates/sphone/shopping/index.tpl ohkouchi@loop-az.jp-20110204072336-milrhkq2dg4vl345
data/class/SC_FormParam.php ohkouchi@loop-az.jp-20110204072336-milrhkq2dg4vl345
data/class/pages/shopping/LC_Page_Shopping_Deliv.php ohkouchi@loop-az.jp-20110204072336-milrhkq2dg4vl345- bzr:timestamp:
- 2011-02-04 16:26:10.503999949 +0900
- bzr:user-agent:
- bzr2.2.1+bzr-svn1.0.4
- svn:original-date:
- 2011-02-04T07:26:10.504000Z
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_FormParam.php
r19854 r20091 26 26 * 27 27 * :XXX: addParam と setParam で言う「パラメータ」が用語として競合しているように感じる。(2009/10/17 Seasoft 塚田) 28 * TODO 配列の再帰処理 28 29 * 29 30 * @package SC … … 414 415 } 415 416 } 417 418 /** 419 * 入力パラメータの先頭及び末尾にある空白文字を削除する. 420 * 421 * @param boolean $has_wide_space 全角空白も削除する場合 true 422 * @return void 423 */ 424 function trimParam($has_wide_space = true) { 425 $cnt = 0; 426 $pattern = '/^[ \r\n\t]*(.*?)[ \r\n\t]*$/u'; 427 foreach ($this->keyname as $val) { 428 if (!isset($this->param[$cnt])) $this->param[$cnt] = ""; 429 430 if (!is_array($this->param[$cnt])) { 431 if ($has_wide_space) { 432 $this->param[$cnt] = preg_replace($pattern, '$1', $this->param[$cnt]); 433 } 434 $this->param[$cnt] = trim($this->param[$cnt]); 435 } else { 436 $max = count($this->param[$cnt]); 437 // XXX foreach の方が良い? 438 for ($i = 0; $i < $max; $i++) { 439 if ($has_wide_space) { 440 $this->param[$cnt][$i] = preg_replace($pattern, '$1', $this->param[$cnt][$i]); 441 } 442 $this->param[$cnt][$i] = trim($this->param[$cnt][$i]); 443 } 444 } 445 $cnt++; 446 } 447 } 416 448 } 417 449 ?>
Note: See TracChangeset
for help on using the changeset viewer.