Changeset 22796 for branches/version-2_12-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php
- Timestamp:
- 2013/05/02 18:11:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php
r22567 r22796 44 44 * @version $Id:LC_Page_Admin_Basis_ZipInstall.php 16741 2007-11-08 00:43:24Z adachi $ 45 45 */ 46 class LC_Page_Admin_Basis_ZipInstall extends LC_Page_Admin_Ex 47 { 46 class LC_Page_Admin_Basis_ZipInstall extends LC_Page_Admin_Ex { 48 47 49 48 /** CSVの行数 */ … … 67 66 * @return void 68 67 */ 69 function init() 70 { 68 function init() { 71 69 parent::init(); 72 70 $this->tpl_mainpage = 'basis/zip_install.tpl'; … … 86 84 * @return void 87 85 */ 88 function process() 89 { 86 function process() { 90 87 $this->action(); 91 88 $this->sendResponse(); … … 97 94 * @return void 98 95 */ 99 function action() 100 { 96 function action() { 101 97 102 98 // パラメーター管理クラス … … 169 165 * @return void 170 166 */ 171 function destroy() 172 { 167 function destroy() { 173 168 parent::destroy(); 174 169 } 175 170 176 function lfAutoCommitZip() 177 { 171 function lfAutoCommitZip() { 178 172 $objQuery =& SC_Query_Ex::getSingletonInstance(); 179 173 … … 190 184 * @return void 191 185 */ 192 function lfDeleteZip() 193 { 186 function lfDeleteZip() { 194 187 $objQuery =& SC_Query_Ex::getSingletonInstance(); 195 188 … … 206 199 * @return void 207 200 */ 208 function lfInitParam($tpl_mode, &$objFormParam) 209 { 201 function lfInitParam($tpl_mode, &$objFormParam) { 210 202 if ($tpl_mode == 'manual') { 211 203 $objFormParam->addParam('開始行', 'startRowNum', INT_LEN, 'n', array('EXIST_CHECK', 'MAX_LENGTH_CHECK', 'NUM_CHECK')); … … 218 210 * @return void 219 211 */ 220 function insertMtbZip($start = 1) 221 { 212 function insertMtbZip($start = 1) { 222 213 $objQuery =& SC_Query_Ex::getSingletonInstance(); 223 214 … … 283 274 <!-- 284 275 // 完了画面 285 function complete() 286 { 276 function complete() { 287 277 document.open('text/html','replace'); 288 278 document.clear(); … … 301 291 } 302 292 303 function openZipCsv() 304 { 293 function openZipCsv() { 305 294 $this->convertZipCsv(); 306 295 $fp = fopen(ZIP_CSV_UTF8_REALFILE, 'r'); … … 311 300 } 312 301 313 function convertZipCsv() 314 { 302 function convertZipCsv() { 315 303 if (file_exists(ZIP_CSV_UTF8_REALFILE)) return; 316 304 … … 333 321 } 334 322 335 function countMtbZip() 336 { 323 function countMtbZip() { 337 324 $objQuery =& SC_Query_Ex::getSingletonInstance(); 338 325 return $objQuery->count('mtb_zip'); 339 326 } 340 327 341 function countZipCsv() 342 { 328 function countZipCsv() { 343 329 $line = 0; 344 330 $fp = $this->openZipCsv(); … … 365 351 * @return void 366 352 */ 367 function lfDownloadZipFileFromJp() 368 { 353 function lfDownloadZipFileFromJp() { 369 354 // Proxy経由を可能とする。 370 355 // TODO Proxyの設定は「data/module/HTTP/Request.php」内の「function HTTP_Request」へ記述する。いずれは、外部設定としたい。 … … 395 380 * @return void 396 381 */ 397 function lfExtractZipFile() 398 { 382 function lfExtractZipFile() { 399 383 $zip = zip_open($this->zip_csv_temp_realfile); 400 384 if (!is_resource($zip)) { … … 449 433 * @return string CSV の更新日時 (整形済みテキスト) 450 434 */ 451 function lfGetCsvDatetime() 452 { 435 function lfGetCsvDatetime() { 453 436 return date('Y/m/d H:i:s', filemtime(ZIP_CSV_REALFILE)); 454 437 }
Note: See TracChangeset
for help on using the changeset viewer.