- Timestamp:
- 2011/02/19 18:38:11 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_Mail.php
r20198 r20203 331 331 /** 332 332 * 保存されているメールテンプレートの取得 333 * @param array $arrParams 特定IDのテンプレートを取り出したい時は$arrParams['template_id']で指定333 * @param integer 特定IDのテンプレートを取り出したい時はtemplate_idを指定。未指定時は全件取得 334 334 * @return array メールテンプレート情報を格納した配列 335 335 * @todo 表示順も引数で変更できるように 336 336 */ 337 function sfGetMailTemplate($ arrParams = array()){337 function sfGetMailTemplate($template_id = null){ 338 338 // 初期化 339 339 $where = ''; 340 $arrValues = array();341 340 $objQuery =& SC_Query::getSingletonInstance(); 342 341 … … 345 344 $arrValues[] = 0; 346 345 //template_id指定時 347 if ( isset($arrParams['template_id'])) {346 if (SC_Utils_Ex::sfIsInt($template_id) === true) { 348 347 $where .= 'AND template_id = ?'; 349 $arrValues[] = $ arrParams['template_id'];348 $arrValues[] = $template_id; 350 349 } 351 350
Note: See TracChangeset
for help on using the changeset viewer.
