Mercurial > epgrec.yaz
comparison Reservation.class.php @ 149:5b192e94f49d
fix: 予約済み定数を使ってしまったミスを修正。エラーレベルに警告を追加
author | epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp> |
---|---|
date | Sat, 27 Mar 2010 16:04:54 +0900 |
parents | 481e789605e3 |
children | 3a6ec345ab0c 84220382fea8 |
comparison
equal
deleted
inserted
replaced
147:fadae5e39857 | 149:5b192e94f49d |
---|---|
301 fclose( $pipes[2] ); | 301 fclose( $pipes[2] ); |
302 proc_close( $process ); | 302 proc_close( $process ); |
303 } | 303 } |
304 else { | 304 else { |
305 $rrec->delete(); | 305 $rrec->delete(); |
306 reclog( "Reservation::custom at絎茵紊掩罔≧", E_ERROR); | 306 reclog( "Reservation::custom at絎茵紊掩罔≧", EPGREC_ERROR); |
307 throw new Exception("AT絎茵"); | 307 throw new Exception("AT絎茵"); |
308 } | 308 } |
309 // job垩冴 | 309 // job垩冴 |
310 $rarr = array(); | 310 $rarr = array(); |
311 $tok = strtok( $rstring, " \n" ); | 311 $tok = strtok( $rstring, " \n" ); |
321 return $rrec->job; // | 321 return $rrec->job; // |
322 } | 322 } |
323 } | 323 } |
324 // | 324 // |
325 $rrec->delete(); | 325 $rrec->delete(); |
326 reclog( "Reservation::custom job垩緇紊掩",E_ERROR ); | 326 reclog( "Reservation::custom job垩緇紊掩",EPGREC_ERROR ); |
327 throw new Exception( "job垩緇紊掩" ); | 327 throw new Exception( "job垩緇紊掩" ); |
328 } | 328 } |
329 catch( Exception $e ) { | 329 catch( Exception $e ) { |
330 if( $rrec != null ) { | 330 if( $rrec != null ) { |
331 if( $rrec->id ) { | 331 if( $rrec->id ) { |
354 throw new Exception("ID絎≦鴻с"); | 354 throw new Exception("ID絎≦鴻с"); |
355 } | 355 } |
356 if( ! $rec->complete ) { | 356 if( ! $rec->complete ) { |
357 // 絎茵篋膣с | 357 // 絎茵篋膣с |
358 if( toTimestamp($rec->starttime) < (time() + PADDING_TIME + $settings->former_time) ) { | 358 if( toTimestamp($rec->starttime) < (time() + PADDING_TIME + $settings->former_time) ) { |
359 reclog("Reservation::cancel 絎茵篋膣羔絎茵", E_ERROR ); | 359 reclog("Reservation::cancel 絎茵篋膣羔絎茵", EPGREC_ERROR ); |
360 throw new Exception("絎茵篋膣с"); | |
360 } | 361 } |
361 exec( $settings->atrm . " " . $rec->job ); | 362 exec( $settings->atrm . " " . $rec->job ); |
362 reclog("Reservation::cancel 吾с".$rec->job.""); | 363 reclog("Reservation::cancel 吾с".$rec->job.""); |
363 } | 364 } |
364 $rec->delete(); | 365 $rec->delete(); |
365 } | 366 } |
366 catch( Exception $e ) { | 367 catch( Exception $e ) { |
367 reclog("Reservation::cancel 篋膣c潟祉DB・膓障≪祉鴻紊掩罔≧", E_ERROR ); | 368 reclog("Reservation::cancel 篋膣c潟祉DB・膓障≪祉鴻紊掩罔≧", EPGREC_ERROR ); |
368 throw $e; | 369 throw $e; |
369 } | 370 } |
370 } | 371 } |
371 } | 372 } |
372 ?> | 373 ?> |