| 13 | | // 変数の初期化は OK |
| 14 | | $this->tpl_mainpage = 'index.tpl'; |
| 15 | | $this->arrDISP = $masterData->getMasterData("mtb_disp"); |
| 16 | | |
| 17 | | // ビジネスロジックの記述は NG |
| 18 | | if (count($this->arrPayment) > 0) { |
| 19 | | $i = 0; |
| 20 | | foreach ($this->arrPayment as $val) { |
| 21 | | $this->payment[$i] = $val; |
| 22 | | $i++; |
| 23 | | } |
| 24 | | } |
| 25 | | } |
| 26 | | ?> |
| 27 | | }}} |
| | 13 | |
| | 14 | /** |
| | 15 | * NG ビジネスロジックの記述はしない |
| | 16 | */ |
| | 17 | if (count($this->arrPayment) > 0) { |
| | 18 | $i = 0; |
| | 19 | foreach ($this->arrPayment as $val) { |
| | 20 | $this->payment[$i] = $val; |
| | 21 | $i++; |
| | 22 | } |
| | 23 | } |
| | 24 | |
| | 25 | /** |
| | 26 | * OK クラスの初期化のみ行う |
| | 27 | */ |
| | 28 | $this->tpl_mainpage = 'index.tpl'; |
| | 29 | $this->arrDISP = $masterData->getMasterData("mtb_disp"); |
| | 30 | } |
| | 31 | }}} |
| | 32 | |