Mercurial > epgrec.yaz
comparison Keyword.class.php @ 145:2cb414518ccd
mod: ?????????????????
| author | epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp> |
|---|---|
| date | Mon, 22 Mar 2010 15:11:31 +0900 |
| parents | 9c5e597ef6c6 |
| children | 4afd353b4507 784e3c82926e |
comparison
equal
deleted
inserted
replaced
| 144:fa1b0995992b | 145:2cb414518ccd |
|---|---|
| 2 include_once('config.php'); | 2 include_once('config.php'); |
| 3 include_once( INSTALL_PATH . "/DBRecord.class.php" ); | 3 include_once( INSTALL_PATH . "/DBRecord.class.php" ); |
| 4 include_once( INSTALL_PATH . "/reclib.php" ); | 4 include_once( INSTALL_PATH . "/reclib.php" ); |
| 5 include_once( INSTALL_PATH . "/Reservation.class.php" ); | 5 include_once( INSTALL_PATH . "/Reservation.class.php" ); |
| 6 include_once( INSTALL_PATH . '/Settings.class.php' ); | 6 include_once( INSTALL_PATH . '/Settings.class.php' ); |
| 7 include_once( INSTALL_PATH . '/recLog.inc.php' ); | |
| 7 | 8 |
| 8 class Keyword extends DBRecord { | 9 class Keyword extends DBRecord { |
| 9 | 10 |
| 10 public function __construct($property = null, $value = null ) { | 11 public function __construct($property = null, $value = null ) { |
| 11 try { | 12 try { |
| 113 // 一気に録画予約 | 114 // 一気に録画予約 |
| 114 foreach( $precs as $rec ) { | 115 foreach( $precs as $rec ) { |
| 115 try { | 116 try { |
| 116 if( $rec->autorec ) { | 117 if( $rec->autorec ) { |
| 117 Reservation::simple( $rec->id, $this->id, $this->autorec_mode ); | 118 Reservation::simple( $rec->id, $this->id, $this->autorec_mode ); |
| 119 reclog( "Keyword.class::キーワードID".$this->id."の録画が予約された"); | |
| 118 usleep( 100 ); // あんまり時間を空けないのもどう? | 120 usleep( 100 ); // あんまり時間を空けないのもどう? |
| 119 } | 121 } |
| 120 } | 122 } |
| 121 catch( Exception $e ) { | 123 catch( Exception $e ) { |
| 122 // 無視 | 124 // 無視 |
