- Timestamp:
- 2013/02/18 19:09:54 (13 years ago)
- Location:
- branches/version-2_12-dev/data/class/pages/admin/contents
- Files:
-
- 7 edited
-
LC_Page_Admin_Contents.php (modified) (17 diffs)
-
LC_Page_Admin_Contents_CSV.php (modified) (12 diffs)
-
LC_Page_Admin_Contents_CsvSql.php (modified) (19 diffs)
-
LC_Page_Admin_Contents_FileManager.php (modified) (23 diffs)
-
LC_Page_Admin_Contents_FileView.php (modified) (8 diffs)
-
LC_Page_Admin_Contents_Recommend.php (modified) (12 diffs)
-
LC_Page_Admin_Contents_RecommendSearch.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents.php
r22526 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Contents extends LC_Page_Admin_Ex { 34 class LC_Page_Admin_Contents extends LC_Page_Admin_Ex 35 { 35 36 36 37 // }}} … … 42 43 * @return void 43 44 */ 44 function init() { 45 function init() 46 { 45 47 parent::init(); 46 48 $this->tpl_mainpage = 'contents/index.tpl'; … … 66 68 * @return void 67 69 */ 68 function process() { 70 function process() 71 { 69 72 $this->action(); 70 73 $this->sendResponse(); … … 76 79 * @return void 77 80 */ 78 function action() { 81 function action() 82 { 79 83 80 84 $objDb = new SC_Helper_DB_Ex(); … … 161 165 * @return void 162 166 */ 163 function destroy() { 167 function destroy() 168 { 164 169 parent::destroy(); 165 170 } … … 170 175 * @return Array エラー内容 171 176 */ 172 function lfCheckError(&$objFormParam) { 177 function lfCheckError(&$objFormParam) 178 { 173 179 $objErr = new SC_CheckError_Ex($objFormParam->getHashArray()); 174 180 $objErr->arrErr = $objFormParam->checkError(); … … 181 187 * @param Object $objFormParam 182 188 */ 183 function lfInitParam(&$objFormParam) { 189 function lfInitParam(&$objFormParam) 190 { 184 191 $objFormParam->addParam('news_id', 'news_id'); 185 192 $objFormParam->addParam('日付(年)', 'year', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); … … 198 205 * @param Integer $member_id 登録した管理者のID 199 206 */ 200 function lfNewsInsert($arrPost,$member_id) { 207 function lfNewsInsert($arrPost,$member_id) 208 { 201 209 $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 202 210 … … 221 229 } 222 230 223 function lfNewsUpdate($arrPost,$member_id) { 231 function lfNewsUpdate($arrPost,$member_id) 232 { 224 233 $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 225 234 … … 243 252 * @return string 登録日を示す文字列 244 253 */ 245 function getRegistDate($arrPost) { 254 function getRegistDate($arrPost) 255 { 246 256 $registDate = $arrPost['year'] .'/'. $arrPost['month'] .'/'. $arrPost['day']; 247 257 return $registDate; … … 253 263 * @return int 254 264 */ 255 function checkLinkMethod($link_method) { 265 function checkLinkMethod($link_method) 266 { 256 267 if (strlen($link_method) == 0) { 257 268 $link_method = 1; … … 264 275 * @param Integer news_id ニュースID 265 276 */ 266 function getNews($news_id = '') { 277 function getNews($news_id = '') 278 { 267 279 $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 268 280 $col = '*, cast(news_date as date) as cast_news_date'; … … 284 296 * @param Integer $news_id 285 297 */ 286 function getRankByNewsId($news_id) { 298 function getRankByNewsId($news_id) 299 { 287 300 $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 288 301 $col = 'rank'; … … 299 312 * @param Integer $rank 300 313 */ 301 function computeRankForDelete($news_id,$rank) { 314 function computeRankForDelete($news_id,$rank) 315 { 302 316 SC_Helper_DB_Ex::sfDeleteRankRecord('dtb_news', 'news_id', $news_id); 303 317 } … … 307 321 * @param String $news_date 308 322 */ 309 function splitNewsDate($news_date) { 323 function splitNewsDate($news_date) 324 { 310 325 return explode('-', $news_date); 311 326 } … … 315 330 * @return Intger $max ランクの最大値の値 316 331 */ 317 function getRankMax() { 332 function getRankMax() 333 { 318 334 $objQuery =& SC_Query_Ex::getSingletonInstance(); 319 335 $col = 'MAX(rank) as max'; … … 329 345 * @param Integer $news_id 330 346 */ 331 function getPostRank($news_id) { 347 function getPostRank($news_id) 348 { 332 349 if (strlen($news_id) > 0 && is_numeric($news_id) == true) { 333 350 $key = 'pos-' . $news_id; -
branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_CSV.php
r22206 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Contents_CSV extends LC_Page_Admin_Ex { 34 class LC_Page_Admin_Contents_CSV extends LC_Page_Admin_Ex 35 { 35 36 36 37 // }}} … … 42 43 * @return void 43 44 */ 44 function init() { 45 function init() 46 { 45 47 parent::init(); 46 48 $this->tpl_mainpage = 'contents/csv.tpl'; … … 61 63 * @return void 62 64 */ 63 function process() { 65 function process() 66 { 64 67 $this->action(); 65 68 $this->sendResponse(); … … 71 74 * @return void 72 75 */ 73 function action() { 76 function action() 77 { 74 78 75 79 // パラメーター管理クラス … … 117 121 * @return void 118 122 */ 119 function lfInitParam(&$objFormParam) { 123 function lfInitParam(&$objFormParam) 124 { 120 125 $objFormParam->addParam('編集種別', 'tpl_subno_csv', STEXT_LEN, 'a', array('ALNUM_CHECK', 'MAX_LENGTH_CHECK'), 'product'); 121 126 $objFormParam->addParam('出力設定リスト', 'output_list', INT_LEN, 'n', array('NUM_CHECK', 'MAX_LENGTH_CHECK', 'EXIST_CHECK')); … … 131 136 * @return array SwapArrayしたカラム設定 132 137 */ 133 function lfGetCSVColumn($csv_id, $csv_status_flg = '', $order ='rank, no') { 138 function lfGetCSVColumn($csv_id, $csv_status_flg = '', $order ='rank, no') 139 { 134 140 $objCSV = new SC_Helper_CSV_Ex(); 135 141 if (SC_Utils_Ex::sfIsInt($csv_id)) { … … 152 158 * @return array 選択済みカラム列情報 153 159 */ 154 function lfGetSelected($csv_id) { 160 function lfGetSelected($csv_id) 161 { 155 162 $arrData = $this->lfGetCSVColumn($csv_id, CSV_COLUMN_STATUS_FLG_ENABLE); 156 163 if (!isset($arrData['no'])) { … … 166 173 * @return array 選択済みカラム列情報 167 174 */ 168 function lfGetOptions($csv_id) { 175 function lfGetOptions($csv_id) 176 { 169 177 $arrData = $this->lfGetCSVColumn($csv_id); 170 178 if (!isset($arrData['no'])) { … … 181 189 * @return void 182 190 */ 183 function destroy() { 191 function destroy() 192 { 184 193 parent::destroy(); 185 194 } … … 191 200 * @return integer CSV_ID 192 201 */ 193 function lfGetCsvId($subno_csv) { 202 function lfGetCsvId($subno_csv) 203 { 194 204 $objCSV = new SC_Helper_CSV_Ex(); 195 205 $arrKey = array_keys($objCSV->arrSubnavi,$subno_csv); … … 209 219 * @return boolean 成功:true 210 220 */ 211 function lfSetDefaultCsvOutput($csv_id) { 221 function lfSetDefaultCsvOutput($csv_id) 222 { 212 223 $arrData = $this->lfGetCSVColumn($csv_id, '', $order = 'no'); 213 224 if (!isset($arrData['no'])) { … … 224 235 * @return boolean 成功:true 225 236 */ 226 function lfUpdCsvOutput($csv_id, $arrData = array()) { 237 function lfUpdCsvOutput($csv_id, $arrData = array()) 238 { 227 239 $objQuery =& SC_Query_Ex::getSingletonInstance(); 228 240 // ひとまず、全部使用しないで更新する -
branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_CsvSql.php
r22206 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Contents_CsvSql extends LC_Page_Admin_Ex { 34 class LC_Page_Admin_Contents_CsvSql extends LC_Page_Admin_Ex 35 { 35 36 36 37 // }}} … … 42 43 * @return void 43 44 */ 44 function init() { 45 function init() 46 { 45 47 parent::init(); 46 48 $this->tpl_mainpage = 'contents/csv_sql.tpl'; … … 57 59 * @return void 58 60 */ 59 function process() { 61 function process() 62 { 60 63 $this->action(); 61 64 $this->sendResponse(); … … 67 70 * @return void 68 71 */ 69 function action() { 72 function action() 73 { 70 74 // パラメーター管理クラス 71 75 $objFormParam = new SC_FormParam_Ex(); … … 142 146 * @return void 143 147 */ 144 function lfInitParam(&$objFormParam) { 148 function lfInitParam(&$objFormParam) 149 { 145 150 $objFormParam->addParam('SQL ID', 'sql_id', INT_LEN, 'n', array('NUM_CHECK','MAX_LENGTH_CHECK')); 146 151 $objFormParam->addParam('CSV出力対象SQL ID', 'csv_output_id', INT_LEN, 'n', array('NUM_CHECK','MAX_LENGTH_CHECK'), '', false); … … 156 161 * @return array エラー配列 157 162 */ 158 function lfCheckConfirmError(&$objFormParam) { 163 function lfCheckConfirmError(&$objFormParam) 164 { 159 165 // パラメーターの基本チェック 160 166 $arrErr = $objFormParam->checkError(); … … 183 189 * @return array エラー配列 184 190 */ 185 function lfCheckPreviewError(&$objFormParam) { 191 function lfCheckPreviewError(&$objFormParam) 192 { 186 193 // パラメーターの基本チェック 187 194 $arrErr = $objFormParam->checkError(); … … 202 209 * @return array エラー配列 203 210 */ 204 function lfCheckDeleteError(&$objFormParam) { 211 function lfCheckDeleteError(&$objFormParam) 212 { 205 213 // パラメーターの基本チェック 206 214 $arrErr = $objFormParam->checkError(); … … 220 228 * @return array エラー配列 221 229 */ 222 function lfCheckOutputError(&$objFormParam) { 230 function lfCheckOutputError(&$objFormParam) 231 { 223 232 // パラメーターの基本チェック 224 233 $arrErr = $objFormParam->checkError(); … … 237 246 * @return void 238 247 */ 239 function destroy() { 248 function destroy() 249 { 240 250 parent::destroy(); 241 251 } … … 246 256 * @return array テーブル名一覧 247 257 */ 248 function lfGetTableList() { 258 function lfGetTableList() 259 { 249 260 $objQuery =& SC_Query_Ex::getSingletonInstance(); 250 261 // 実テーブル上のカラム設定を見に行く仕様に変更 ref #476 … … 270 281 * @return array カラム一覧の配列 271 282 */ 272 function lfGetColList($table) { 283 function lfGetColList($table) 284 { 273 285 if (SC_Utils_Ex::isBlank($table)) { 274 286 return array(); … … 288 300 * @return array 取得結果の配列 289 301 */ 290 function lfGetSqlList($where = '' , $arrVal = array()) { 302 function lfGetSqlList($where = '' , $arrVal = array()) 303 { 291 304 $objQuery =& SC_Query_Ex::getSingletonInstance(); 292 305 $table = 'dtb_csv_sql'; … … 301 314 * @return string エラー内容 302 315 */ 303 function lfCheckSQL($sql) { 316 function lfCheckSQL($sql) 317 { 304 318 // FIXME: 意図的に new SC_Query しています。 force_runをtrueにする必要があるので.本当はqueryの引数で制御したい。ref SC_Query 305 319 $objQuery = new SC_Query_Ex('', true); … … 319 333 * @return mixed 表示用パラメーター 320 334 */ 321 function lfGetSqlData(&$objFormParam) { 335 function lfGetSqlData(&$objFormParam) 336 { 322 337 // 編集中データがある場合 323 338 if (!SC_Utils_Ex::isBlank($objFormParam->getValue('sql_name')) … … 340 355 * @return void 341 356 */ 342 function lfDoCsvOutput($sql_id) { 357 function lfDoCsvOutput($sql_id) 358 { 343 359 $arrData = $this->lfGetSqlList('sql_id = ?', array($sql_id)); 344 360 $sql = 'SELECT ' . $arrData[0]['csv_sql'] . ' '; … … 371 387 * @return integer $sql_id SQL_IDを返す 372 388 */ 373 function lfUpdData($sql_id, $arrSqlVal) { 389 function lfUpdData($sql_id, $arrSqlVal) 390 { 374 391 $objQuery =& SC_Query_Ex::getSingletonInstance(); 375 392 $table = 'dtb_csv_sql'; … … 395 412 * @return boolean 実行結果 true:成功 396 413 */ 397 function lfDelData($sql_id) { 414 function lfDelData($sql_id) 415 { 398 416 $objQuery =& SC_Query_Ex::getSingletonInstance(); 399 417 $table = 'dtb_csv_sql'; … … 414 432 * @return array 不許可ワード配列 415 433 */ 416 function lfGetSqlDenyList() { 434 function lfGetSqlDenyList() 435 { 417 436 $arrList = array(';' 418 437 ,'CREATE\s' -
branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileManager.php
r22206 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Contents_FileManager extends LC_Page_Admin_Ex { 34 class LC_Page_Admin_Contents_FileManager extends LC_Page_Admin_Ex 35 { 35 36 36 37 // }}} … … 42 43 * @return void 43 44 */ 44 function init() { 45 function init() 46 { 45 47 parent::init(); 46 48 $this->tpl_mainpage = 'contents/file_manager.tpl'; … … 57 59 * @return void 58 60 */ 59 function process() { 61 function process() 62 { 60 63 $this->action(); 61 64 $this->sendResponse(); … … 67 70 * @return void 68 71 */ 69 function action() { 72 function action() 73 { 70 74 71 75 // フォーム操作クラス … … 205 209 * @return void 206 210 */ 207 function destroy() { 211 function destroy() 212 { 208 213 parent::destroy(); 209 214 } … … 215 220 * @return void 216 221 */ 217 function lfInitParam(&$objFormParam) { 222 function lfInitParam(&$objFormParam) 223 { 218 224 // 共通定義 219 225 $this->lfInitParamCommon($objFormParam); … … 226 232 * @return void 227 233 */ 228 function lfInitParamModeMove(&$objFormParam) { 234 function lfInitParamModeMove(&$objFormParam) 235 { 229 236 // 共通定義 230 237 $this->lfInitParamCommon($objFormParam); … … 238 245 * @return void 239 246 */ 240 function lfInitParamModeView(&$objFormParam) { 247 function lfInitParamModeView(&$objFormParam) 248 { 241 249 // 共通定義 242 250 $this->lfInitParamCommon($objFormParam); … … 250 258 * @return void 251 259 */ 252 function lfInitParamModeCreate(&$objFormParam) { 260 function lfInitParamModeCreate(&$objFormParam) 261 { 253 262 // 共通定義 254 263 $this->lfInitParamCommon($objFormParam); … … 263 272 * @return void 264 273 */ 265 function lfInitParamCommon(&$objFormParam) { 274 function lfInitParamCommon(&$objFormParam) 275 { 266 276 $objFormParam->addParam('ルートディレクトリ', 'top_dir', MTEXT_LEN, 'a', array()); 267 277 $objFormParam->addParam('現在の階層ディレクトリ', 'now_dir', MTEXT_LEN, 'a', array()); … … 277 287 * @return void 278 288 */ 279 function lfInitFile(&$objUpFile) { 289 function lfInitFile(&$objUpFile) 290 { 280 291 $objUpFile->addFile('ファイル', 'upload_file', array(), FILE_SIZE, true, 0, 0, false); 281 292 } … … 287 298 * @return array $setParam テンプレートに渡す値 288 299 */ 289 function createSetParam($arrVal) { 300 function createSetParam($arrVal) 301 { 290 302 $setParam = $arrVal; 291 303 // Windowsの場合は, ディレクトリの区切り文字を\から/に変換する … … 305 317 * @return void 306 318 */ 307 function setDispParam($key, $val) { 319 function setDispParam($key, $val) 320 { 308 321 $this->$key = $val; 309 322 } … … 316 329 * @return boolean ディレクトリ作成できたかどうか 317 330 */ 318 function tryCreateDir($objFileManager, $objFormParam) { 331 function tryCreateDir($objFileManager, $objFormParam) 332 { 319 333 $create_dir_flg = false; 320 334 $create_dir = rtrim($objFormParam->getValue('now_dir'), '/'); … … 332 346 * @return boolean ファイル表示するかどうか 333 347 */ 334 function tryView(&$objFormParam) { 348 function tryView(&$objFormParam) 349 { 335 350 $view_flg = false; 336 351 $now_dir = $this->lfCheckSelectDir($objFormParam, dirname($objFormParam->getValue('select_file'))); … … 348 363 * @return void 349 364 */ 350 function setParentDir($objFormParam) { 365 function setParentDir($objFormParam) 366 { 351 367 $parent_dir = $this->lfGetParentDir($objFormParam->getValue('now_dir')); 352 368 $this->setDispParam('tpl_parent_dir', $parent_dir); … … 359 375 * @return void 360 376 */ 361 function setDispPath($objFormParam) { 377 function setDispPath($objFormParam) 378 { 362 379 $tpl_now_dir = ''; 363 380 // Windows 環境で DIRECTORY_SEPARATOR が JavaScript に渡るとエスケープ文字と勘違いするので置換 … … 375 392 * @return void 376 393 */ 377 function setDispError($key, $value) { 394 function setDispError($key, $value) 395 { 378 396 // 既にエラーがある場合は、処理しない 379 397 if (SC_Utils_Ex::isBlank($this->arrErr[$key])) { … … 388 406 * @return void 389 407 */ 390 function setTplOnLoad($tpl_onload) { 408 function setTplOnLoad($tpl_onload) 409 { 391 410 $this->tpl_onload .= $tpl_onload; 392 411 } … … 399 418 * @return string $select_dir 選択ディレクトリ 400 419 */ 401 function lfCheckSelectDir($objFormParam, $dir) { 420 function lfCheckSelectDir($objFormParam, $dir) 421 { 402 422 $select_dir = ''; 403 423 $top_dir = $objFormParam->getValue('top_dir'); … … 424 444 * @return string $parent_dir 親ディレクトリ 425 445 */ 426 function lfGetParentDir($dir) { 446 function lfGetParentDir($dir) 447 { 427 448 $parent_dir = ''; 428 449 $dir = rtrim($dir, '/'); … … 443 464 * @return void 444 465 */ 445 function setDispTree($objFileManager, $objFormParam) { 466 function setDispTree($objFileManager, $objFormParam) 467 { 446 468 $tpl_onload = ''; 447 469 // ツリーを表示する divタグid, ツリー配列変数名, 現在ディレクトリ, 選択ツリーhidden名, ツリー状態hidden名, mode hidden名 … … 475 497 * @return void 476 498 */ 477 function setIsTopDir($objFormParam) { 499 function setIsTopDir($objFormParam) 500 { 478 501 // トップディレクトリか調査 479 502 $is_top_dir = false; -
branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_FileView.php
r22206 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Contents_FileView extends LC_Page_Admin_Ex { 34 class LC_Page_Admin_Contents_FileView extends LC_Page_Admin_Ex 35 { 35 36 36 37 // }}} … … 42 43 * @return void 43 44 */ 44 function init() { 45 function init() 46 { 45 47 parent::init(); 46 48 } … … 51 53 * @return void 52 54 */ 53 function process() { 55 function process() 56 { 54 57 $this->action(); 55 58 $this->sendResponse(); … … 61 64 * @return void 62 65 */ 63 function action() { 66 function action() 67 { 64 68 65 69 switch ($this->getMode()) { … … 89 93 * @return void 90 94 */ 91 function destroy() { 95 function destroy() 96 { 92 97 parent::destroy(); 93 98 } … … 99 104 * @return void 100 105 */ 101 function lfInitParam(&$objFormParam) { 106 function lfInitParam(&$objFormParam) 107 { 102 108 $objFormParam->addParam('ファイル名', 'file', MTEXT_LEN, 'a', array('EXIST_CHECK')); 103 109 } … … 109 115 * @return boolen $file_check_flg エラーチェックの結果 110 116 */ 111 function checkErrorDispFile($objFormParam) { 117 function checkErrorDispFile($objFormParam) 118 { 112 119 $file_check_flg = false; 113 120 … … 127 134 * @return void 128 135 */ 129 function execFileView($objFormParam) { 136 function execFileView($objFormParam) 137 { 130 138 $file = $objFormParam->getValue('file'); 131 139 -
branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php
r22559 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Contents_Recommend extends LC_Page_Admin_Ex { 34 class LC_Page_Admin_Contents_Recommend extends LC_Page_Admin_Ex 35 { 35 36 36 37 // }}} … … 42 43 * @return void 43 44 */ 44 function init() { 45 function init() 46 { 45 47 parent::init(); 46 48 $this->tpl_mainpage = 'contents/recommend.tpl'; … … 58 60 * @return void 59 61 */ 60 function process() { 62 function process() 63 { 61 64 $this->action(); 62 65 $this->sendResponse(); … … 68 71 * @return void 69 72 */ 70 function action() { 73 function action() 74 { 71 75 $objFormParam = new SC_FormParam_Ex(); 72 76 $this->lfInitParam($objFormParam); … … 143 147 * @return void 144 148 */ 145 function destroy() { 149 function destroy() 150 { 146 151 parent::destroy(); 147 152 } … … 151 156 * @param Object $objFormParam 152 157 */ 153 function lfInitParam(&$objFormParam) { 158 function lfInitParam(&$objFormParam) 159 { 154 160 $objFormParam->addParam('商品ID', 'product_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); 155 161 $objFormParam->addParam('カテゴリID', 'category_id', INT_LEN, 'n', array('EXIST_CHECK', 'NUM_CHECK', 'MAX_LENGTH_CHECK')); … … 163 169 * @return Array エラー内容 164 170 */ 165 function lfCheckError(&$objFormParam) { 171 function lfCheckError(&$objFormParam) 172 { 166 173 $objErr = new SC_CheckError_Ex($objFormParam->getHashArray()); 167 174 $objErr->arrErr = $objFormParam->checkError(); … … 173 180 * @return Array $arrReturnProducts データベースに登録されているおすすめ商品の配列 174 181 */ 175 function getRecommendProducts() { 182 function getRecommendProducts() 183 { 176 184 $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 177 185 $col = 'dtb_products.name,dtb_products.main_list_image,dtb_best_products.*,dtb_products.status'; … … 194 202 * @param Integer $member_id 登録した管理者を示すID 195 203 */ 196 function insertRecommendProduct($arrPost,$member_id) { 204 function insertRecommendProduct($arrPost,$member_id) 205 { 197 206 $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 198 207 // 古いおすすめ商品のデータを削除する。 … … 215 224 * @param Array $arrPost POSTの値を格納した配列 216 225 */ 217 function deleteProduct($arrPost) { 226 function deleteProduct($arrPost) 227 { 218 228 $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 219 229 $table = 'dtb_best_products'; … … 228 238 * @return Array $arrProduct 商品のデータを格納した配列 229 239 */ 230 function getProduct($product_id) { 240 function getProduct($product_id) 241 { 231 242 $objQuery = $objQuery =& SC_Query_Ex::getSingletonInstance(); 232 243 $col = 'product_id,main_list_image,name'; … … 243 254 * @param Array $arrItems フロントに表示される商品の情報を格納した配列 244 255 */ 245 function setProducts($arrPost,$arrItems) { 256 function setProducts($arrPost,$arrItems) 257 { 246 258 $arrProduct = $this->getProduct($arrPost['product_id']); 247 259 if (count($arrProduct) > 0) { -
branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php
r22559 r22567 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Admin_Contents_RecommendSearch extends LC_Page_Admin_Ex { 34 class LC_Page_Admin_Contents_RecommendSearch extends LC_Page_Admin_Ex 35 { 35 36 36 37 // }}} … … 42 43 * @return void 43 44 */ 44 function init() { 45 function init() 46 { 45 47 parent::init(); 46 48 $this->tpl_mainno = 'contents'; … … 55 57 * @return void 56 58 */ 57 function process() { 59 function process() 60 { 58 61 $this->action(); 59 62 $this->sendResponse(); … … 65 68 * @return void 66 69 */ 67 function action() { 70 function action() 71 { 68 72 69 73 $objDb = new SC_Helper_DB_Ex(); … … 113 117 * @return void 114 118 */ 115 function destroy() { 119 function destroy() 120 { 116 121 parent::destroy(); 117 122 } … … 121 126 * @param Object $objFormParam 122 127 */ 123 function lfInitParam(&$objFormParam) { 128 function lfInitParam(&$objFormParam) 129 { 124 130 $objFormParam->addParam('商品ID', 'search_name', LTEXT_LEN, 'KVa', array('MAX_LENGTH_CHECK')); 125 131 $objFormParam->addParam('商品ID', 'search_category_id', INT_LEN, 'n', array('MAX_LENGTH_CHECK','NUM_CHECK')); … … 134 140 * @return Array エラー内容 135 141 */ 136 function lfCheckError(&$objFormParam) { 142 function lfCheckError(&$objFormParam) 143 { 137 144 $objErr = new SC_CheckError_Ex($objFormParam->getHashArray()); 138 145 $objErr->arrErr = $objFormParam->checkError(); … … 146 153 * @param SC_FormParam $objFormParam 147 154 */ 148 function createWhere(&$objFormParam,&$objDb) { 155 function createWhere(&$objFormParam,&$objDb) 156 { 149 157 $arrForm = $objFormParam->getHashArray(); 150 158 $where = 'alldtl.del_flg = 0'; … … 191 199 * @param SC_Product $objProduct 192 200 */ 193 function getLineCount($whereAndBind,&$objProduct) { 201 function getLineCount($whereAndBind,&$objProduct) 202 { 194 203 $where = $whereAndBind['where']; 195 204 $bind = $whereAndBind['bind']; … … 206 215 * @param SC_Product $objProduct 207 216 */ 208 function getProducts($whereAndBind,&$objProduct, $page_max, $startno) { 217 function getProducts($whereAndBind,&$objProduct, $page_max, $startno) 218 { 209 219 $where = $whereAndBind['where']; 210 220 $bind = $whereAndBind['bind']; … … 223 233 * @param SC_Product $objProduct 224 234 */ 225 function getProductList($arrProductId, &$objProduct) { 235 function getProductList($arrProductId, &$objProduct) 236 { 226 237 $objQuery =& SC_Query_Ex::getSingletonInstance(); 227 238
Note: See TracChangeset
for help on using the changeset viewer.
