comparison Keyword.class.php @ 77:cb7da56c4198

modified: Keyword.class.php modified: config.php.sample modified: index.php modified: install/step1.php modified: keywordTable.php modified: programTable.php modified: simpleReservation.php modified: templates/index.html modified: templates/keywordTable.html modified: templates/programTable.html
author Sushi-k <epgrec@park.mda.or.jp>
date Wed, 24 Feb 2010 20:22:19 +0900
parents 3d6e7c606896
children 57676bb30f64
comparison
equal deleted inserted replaced
76:69e0dabc765a 77:cb7da56c4198
41 41
42 if( $this->channel_id != 0 ) { 42 if( $this->channel_id != 0 ) {
43 $options .= " AND channel_id = '".$this->channel_id."'"; 43 $options .= " AND channel_id = '".$this->channel_id."'";
44 } 44 }
45 45
46 if( $this->weekofday != 7 ) {
47 $options .= " AND WEEKDAY(starttime) = '".$this->weekofday."'";
48 }
49
46 $options .= " ORDER BY starttime ASC"; 50 $options .= " ORDER BY starttime ASC";
47 51
48 $recs = array(); 52 $recs = array();
49 try { 53 try {
50 $recs = DBRecord::createRecords( PROGRAM_TBL, $options ); 54 $recs = DBRecord::createRecords( PROGRAM_TBL, $options );
70 if( count($precs) < 300 ) { 74 if( count($precs) < 300 ) {
71 // 一気に録画予約 75 // 一気に録画予約
72 foreach( $precs as $rec ) { 76 foreach( $precs as $rec ) {
73 try { 77 try {
74 if( $rec->autorec ) { 78 if( $rec->autorec ) {
75 Reservation::simple( $rec->id, $this->id, $this->settings->autorec_mode ); 79 Reservation::simple( $rec->id, $this->id, $this->autorec_mode );
76 usleep( 100 ); // あんまり時間を空けないのもどう? 80 usleep( 100 ); // あんまり時間を空けないのもどう?
77 } 81 }
78 } 82 }
79 catch( Exception $e ) { 83 catch( Exception $e ) {
80 // 無視 84 // 無視