Changeset 20380 for branches/version-2_5-dev/data/class/util/SC_Utils.php
- Timestamp:
- 2011/02/24 17:49:36 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/util/SC_Utils.php
r20316 r20380 2293 2293 } 2294 2294 2295 /** 2296 * 検索結果の1ページあたりの最大表示件数を取得する 2297 * 2298 * フォームの入力値から最大表示件数を取得する 2299 * 取得できなかった場合は, 定数 SEARCH_PMAX の値を返す 2300 * 2301 * @param string $search_page_max 表示件数の選択値 2302 * @return integer 1ページあたりの最大表示件数 2303 */ 2304 function sfGetSearchPageMax($search_page_max) { 2305 if (SC_Utils_Ex::sfIsInt($search_page_max) && $search_page_max > 0) { 2306 $page_max = intval($search_page_max); 2307 } else { 2308 $page_max = SEARCH_PMAX; 2309 } 2310 return $page_max; 2311 } 2295 2312 2296 2313 }
Note: See TracChangeset
for help on using the changeset viewer.
