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