comparison Keyword.class.php @ 146:4afd353b4507

merged with upstream
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 23 Mar 2010 02:37:31 +0900
parents a18df712fc7e 2cb414518ccd
children 190a3c46611d
comparison
equal deleted inserted replaced
141:d1681f891462 146:4afd353b4507
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 {
97 // 一気に録画予約 98 // 一気に録画予約
98 foreach( $precs as $rec ) { 99 foreach( $precs as $rec ) {
99 try { 100 try {
100 if( $rec->autorec ) { 101 if( $rec->autorec ) {
101 Reservation::simple( $rec->id, $this->id, $this->autorec_mode ); 102 Reservation::simple( $rec->id, $this->id, $this->autorec_mode );
103 reclog( "Keyword.class::キーワードID".$this->id."の録画が予約された");
102 usleep( 100 ); // あんまり時間を空けないのもどう? 104 usleep( 100 ); // あんまり時間を空けないのもどう?
103 } 105 }
104 } 106 }
105 catch( Exception $e ) { 107 catch( Exception $e ) {
106 // 無視 108 // 無視