Changeset 20288 for branches/version-2_5-dev/data/class
- Timestamp:
- 2011/02/21 10:13:55 (15 years ago)
- Location:
- branches/version-2_5-dev/data/class/pages/admin/contents
- Files:
-
- 3 edited
-
LC_Page_Admin_Contents.php (modified) (2 diffs)
-
LC_Page_Admin_Contents_Recommend.php (modified) (2 diffs)
-
LC_Page_Admin_Contents_RecommendSearch.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents.php
r20265 r20288 119 119 //---- データ削除 120 120 if (is_numeric($news_id)) { 121 $this->p($news_id);122 121 $pre_rank = $this->getRankByNewsId($news_id); 123 122 $this->computeRankForDelete($news_id,$pre_rank); 124 $this->objDisplay->reload(); //自分にリダイレクト(再読込による誤動作防止)123 SC_Response_Ex::reload(); //自分にリダイレクト(再読込による誤動作防止) 125 124 } 126 125 break; … … 149 148 } 150 149 151 $this-> list_data= $this->getNews();152 $this->line_max = count($this-> list_data);150 $this->arrNews = $this->getNews(); 151 $this->line_max = count($this->arrNews); 153 152 $this->max_rank = $this->getRankMax(); 154 153 } -
branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_Recommend.php
r20265 r20288 113 113 } 114 114 115 $this->category_id = $this->getCategoryId($arrPost['category_id']);115 $this->category_id = intval($arrPost['category_id']); 116 116 $this->arrItems = $arrItems; 117 117 … … 238 238 } 239 239 240 /**241 * カテゴリーIDを取得する。242 * @param Integer $category_id243 * @return Integer244 */245 function getCategoryId($category_id){246 if ( SC_Utils_Ex::sfIsInt($category_id)){247 return $category_id;248 }else{249 return 0;250 }251 }252 253 240 } 254 241 ?> -
branches/version-2_5-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php
r20265 r20288 176 176 } 177 177 178 /** 179 * 指定された条件の商品の数を取得する 180 * @param String $where 検索条件 181 * @param Array $arrval 検索パラメータ 182 * @return Integer $linemax 条件にマッチする商品の数 183 */ 178 184 function getLineCount($where,$arrval){ 179 185 $objQuery =& SC_Query::getSingletonInstance(); … … 182 188 } 183 189 190 /** 191 * @param $search_page_max 192 * @return string 193 */ 184 194 function setPageMax($search_page_max){ 185 195 // ページ送りの処理 … … 192 202 } 193 203 204 /** 205 * 指定された条件の商品データを取得する。 206 * @param Object $objQuery ObjQueryオブジェクト 207 * @param Array $arrval 検索パラメータ 208 * @param String $where 検索条件 209 * @return Array 商品情報の配列 210 */ 194 211 function getProducts(&$objQuery,$arrval,$where){ 195 212 $objQuery =& SC_Query::getSingletonInstance();
Note: See TracChangeset
for help on using the changeset viewer.
