Mercurial > epgrec.yaz
diff Settings.class.php @ 66:3d6e7c606896
testing: auto record with mode
author | yoneda <yoneda@recorder.localnet.mda.or.jp> |
---|---|
date | Tue, 03 Nov 2009 14:51:44 +0900 |
parents | 7a4050545d98 |
children | 1033324d7ecc |
line wrap: on
line diff
--- a/Settings.class.php Fri Oct 09 19:22:40 2009 +0900 +++ b/Settings.class.php Tue Nov 03 14:51:44 2009 +0900 @@ -9,7 +9,17 @@ if( file_exists( INSTALL_PATH . self::CONFIG_XML ) ) { $xmlfile = file_get_contents(INSTALL_PATH . self::CONFIG_XML); - return new self($xmlfile); + $obj = new self($xmlfile); + + // 8月14日以降に追加した設定項目の自動生成 + + // キーワード自動録画の録画モード + if( $obj->exists("autorec_mode") == 0 ) { + $obj->autorec_mode = 0; + $obj->save(); + } + + return $obj; } else { // 初回起動 @@ -100,6 +110,11 @@ // 1分あたりの高さ $xml->height_per_hour = 120; + // 8月14日版以降に追加した設定項目 + + // キーワード自動録画の録画モード + $xml->autorec_mode = 0; + $xml->save(); return $xml; @@ -125,4 +140,4 @@ $this->asXML(INSTALL_PATH . self::CONFIG_XML); } } -?> +?> \ No newline at end of file