annotate Settings.class.php @ 139:3303335825a3

drop video/index.html
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 21 Mar 2010 05:16:43 +0900
parents a18df712fc7e
children 66eabfc1b118
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
1 <?php
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
2 include_once('config.php');
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
3
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
4 class Settings extends SimpleXMLElement {
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
5
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
6 const CONFIG_XML = "/settings/config.xml";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
7
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
8 public static function factory() {
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
9
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
10 if( file_exists( INSTALL_PATH . self::CONFIG_XML ) ) {
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
11 $xmlfile = file_get_contents(INSTALL_PATH . self::CONFIG_XML);
66
3d6e7c606896 testing: auto record with mode
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 55
diff changeset
12 $obj = new self($xmlfile);
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
13
66
3d6e7c606896 testing: auto record with mode
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 55
diff changeset
14 // 8月14日以降に追加した設定項目の自動生成
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
15
66
3d6e7c606896 testing: auto record with mode
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 55
diff changeset
16 // キーワード自動録画の録画モード
3d6e7c606896 testing: auto record with mode
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 55
diff changeset
17 if( $obj->exists("autorec_mode") == 0 ) {
3d6e7c606896 testing: auto record with mode
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 55
diff changeset
18 $obj->autorec_mode = 0;
3d6e7c606896 testing: auto record with mode
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 55
diff changeset
19 $obj->save();
3d6e7c606896 testing: auto record with mode
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 55
diff changeset
20 }
80
cce6f88590fd add: db table updater script.
Sushi-k <epgrec@park.mda.or.jp>
parents: 69
diff changeset
21 // CSの録画
cce6f88590fd add: db table updater script.
Sushi-k <epgrec@park.mda.or.jp>
parents: 69
diff changeset
22 if( $obj->exists("cs_rec_flg") == 0 ) {
cce6f88590fd add: db table updater script.
Sushi-k <epgrec@park.mda.or.jp>
parents: 69
diff changeset
23 $obj->cs_rec_flg = 0;
cce6f88590fd add: db table updater script.
Sushi-k <epgrec@park.mda.or.jp>
parents: 69
diff changeset
24 $obj->save();
cce6f88590fd add: db table updater script.
Sushi-k <epgrec@park.mda.or.jp>
parents: 69
diff changeset
25 }
66
3d6e7c606896 testing: auto record with mode
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 55
diff changeset
26 return $obj;
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
27 }
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
28 else {
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
29 // 初回起動
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
30 $xmlfile = '<?xml version="1.0" encoding="UTF-8" ?><epgrec></epgrec>';
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
31 $xml = new self($xmlfile);
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
32
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
33 // 旧config.phpを読み取って設定
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
34 if(defined("SPOOL") ) $xml->spool = SPOOL;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
35 else $xml->spool = "/video";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
36
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
37 if(defined("THUMBS") ) $xml->thumbs = THUMBS;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
38 else $xml->thumbs = "/thumbs";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
39
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
40 if(defined("INSTALL_URL")) $xml->install_url = INSTALL_URL;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
41 else $xml->install_url = "http://localhost/epgrec";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
42
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
43 if(defined("BS_TUNERS")) $xml->bs_tuners = BS_TUNERS;
32
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents: 31
diff changeset
44 else $xml->bs_tuners = 0;
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
45
55
7a4050545d98 fix: typo
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 54
diff changeset
46 if(defined("GR_TUNERS")) $xml->gr_tuners = GR_TUNERS;
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
47 else $xml->gr_tuners = 1;
67
a2c4665b310c add: CS support (thanks to dakku)
Sushi-k <epgrec@park.mda.or.jp>
parents: 55
diff changeset
48
a2c4665b310c add: CS support (thanks to dakku)
Sushi-k <epgrec@park.mda.or.jp>
parents: 55
diff changeset
49 if(defined("CS_REC_FLG")) $xml->cs_rec_flg = CS_REC_FLG;
a2c4665b310c add: CS support (thanks to dakku)
Sushi-k <epgrec@park.mda.or.jp>
parents: 55
diff changeset
50 else $xml->cs_rec_flg = 0;
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
51
54
6f961c8ab304 modified: Settings.class.php
Sushi-k <epgrec@park.mda.or.jp>
parents: 32
diff changeset
52 if(defined("USE_KUROBON")) $xml->use_kurobon = USE_KUROBON ? 1 : 0;
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
53 else $xml->use_kurobon = 0;
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
54
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
55 if(defined("FORMER_TIME")) $xml->former_time = FORMER_TIME;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
56 else $xml->former_time = 20;
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
57
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
58 if(defined("EXTRA_TIME")) $xml->extra_time = EXTRA_TIME;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
59 else $xml->extra_time = 0;
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
60
54
6f961c8ab304 modified: Settings.class.php
Sushi-k <epgrec@park.mda.or.jp>
parents: 32
diff changeset
61 if(defined("FORCE_CONT_REC")) $xml->force_cont_rec = FORCE_CONT_REC ? 1 : 0;
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
62 else $xml->force_cont_rec = 0;
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
63
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
64 if(defined("REC_SWITCH_TIME")) $xml->rec_switch_time = REC_SWITCH_TIME;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
65 else $xml->rec_switch_time = 5;
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
66
54
6f961c8ab304 modified: Settings.class.php
Sushi-k <epgrec@park.mda.or.jp>
parents: 32
diff changeset
67 if(defined("USE_THUMBS")) $xml->use_thumbs = USE_THUMBS ? 1 : 0;
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
68 else $xml->use_thumbs = 0;
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
69
54
6f961c8ab304 modified: Settings.class.php
Sushi-k <epgrec@park.mda.or.jp>
parents: 32
diff changeset
70 if(defined("MEDIATOMB_UPDATE")) $xml->mediatomb_update = MEDIATOMB_UPDATE ? 1 : 0;
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
71 else $xml->mediatomb_update = 0;
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
72
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
73 if(defined("FILENAME_FORMAT")) $xml->filename_format = FILENAME_FORMAT;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
74 else $xml->filename_format = "%TYPE%%CH%_%ST%_%ET%";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
75
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
76 if(defined("DB_HOST")) $xml->db_host = DB_HOST;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
77 else $xml->db_host = "localhost";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
78
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
79 if(defined("DB_NAME")) $xml->db_name = DB_NAME;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
80 else $xml->db_name = "yourdbname";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
81
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
82 if(defined("DB_USER")) $xml->db_user = DB_USER;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
83 else $xml->db_user = "yourname";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
84
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
85 if(defined("DB_PASS")) $xml->db_pass = DB_PASS;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
86 else $xml->db_pass = "yourpass";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
87
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
88 if(defined("TBL_PREFIX")) $xml->tbl_prefix = TBL_PREFIX;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
89 else $xml->tbl_prefix = "Recorder_";
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
90
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
91 if(defined("EPGDUMP")) $xml->epgdump = EPGDUMP;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
92 else $xml->epgdump = "/usr/local/bin/epgdump";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
93
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
94 if(defined("AT")) $xml->at = AT;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
95 else $xml->at = "/usr/bin/at";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
96
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
97 if(defined( "ATRM" )) $xml->atrm = ATRM;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
98 else $xml->atrm = "/usr/bin/atrm";
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
99
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
100 if(defined( "SLEEP" )) $xml->sleep = SLEEP;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
101 else $xml->sleep = "/bin/sleep";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
102
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
103 if(defined( "FFMPEG" )) $xml->ffmpeg = FFMPEG;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
104 else $xml->ffmpeg = "/usr/bin/ffmpeg";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
105
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
106 if(defined("TEMP_DATA" )) $xml->temp_data = TEMP_DATA;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
107 else $xml->temp_data = "/tmp/__temp.ts";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
108
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
109 if(defined("TEMP_XML")) $xml->temp_xml = TEMP_XML;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
110 else $xml->temp_xml = "/tmp/__temp.xml";
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
111
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
112 // index.phpで使う設定値
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
113 // 表示する番組表の長さ(時間)
32
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents: 31
diff changeset
114 $xml->program_length = 8;
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
115 // 1局の幅
32
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents: 31
diff changeset
116 $xml->ch_set_width = 150;
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
117 // 1分あたりの高さ
32
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents: 31
diff changeset
118 $xml->height_per_hour = 120;
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
119
66
3d6e7c606896 testing: auto record with mode
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 55
diff changeset
120 // 8月14日版以降に追加した設定項目
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
121
66
3d6e7c606896 testing: auto record with mode
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 55
diff changeset
122 // キーワード自動録画の録画モード
3d6e7c606896 testing: auto record with mode
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 55
diff changeset
123 $xml->autorec_mode = 0;
3d6e7c606896 testing: auto record with mode
yoneda <yoneda@recorder.localnet.mda.or.jp>
parents: 55
diff changeset
124
131
2646140c5ba7 mod: Ѥ߻Ĥطν
Sushi-k <epgrec@park.mda.or.jp>
parents: 80
diff changeset
125 // CS録画
2646140c5ba7 mod: Ѥ߻Ĥطν
Sushi-k <epgrec@park.mda.or.jp>
parents: 80
diff changeset
126 $xml->cs_rec_flg = 0;
2646140c5ba7 mod: Ѥ߻Ĥطν
Sushi-k <epgrec@park.mda.or.jp>
parents: 80
diff changeset
127
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
128 $xml->save();
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
129
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
130 return $xml;
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
131 }
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
132 }
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
133
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
134 public function exists( $property ) {
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
135 return (int)count( $this->{$property} );
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
136 }
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
137
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
138 public function post() {
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
139 global $_POST;
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
140
32
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents: 31
diff changeset
141 foreach( $_POST as $key => $value ) {
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
142
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
143 if( $this->exists($key) ) {
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
144 $this->{$key} = trim($value);
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
145 }
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
146 }
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
147 }
75
11f63ae04a96 delete trailing white space
Yoshiki Yazawa <yaz@honeyplanet.jp>
parents: 69
diff changeset
148
30
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
149 public function save() {
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
150 $this->asXML(INSTALL_PATH . self::CONFIG_XML);
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
151 }
1c5f618dc210 add: Settings class
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
152 }
80
cce6f88590fd add: db table updater script.
Sushi-k <epgrec@park.mda.or.jp>
parents: 69
diff changeset
153 ?>