Changeset 22567 for branches/version-2_12-dev/data/class/pages/admin/contents/LC_Page_Admin_Contents.php
- Timestamp:
- 2013/02/18 19:09:54 (11 years ago)
- File:
-
- 1 edited
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;
Note: See TracChangeset
for help on using the changeset viewer.