source: trunk/Common/Config.php@ 565

Last change on this file since 565 was 565, checked in by chronos, 12 years ago
  • Upraveno: Třída Module nahrazena třídami Model, View, Controller.
  • Přidáno: Modul Wiki.
File size: 411 bytes
Line 
1<?php
2
3class Config
4{
5 var $Data;
6
7 function ReadValue($Name)
8 {
9 return($this->Data[$Name]);
10 }
11
12 function WriteValue($Name, $Value)
13 {
14 $this->Data[$Name] = $Value;
15 }
16
17 function OpenFile($FileName)
18 {
19 include $FileName;
20 $this->Data = $ConfigData;
21 }
22
23 function SaveFile($FileName)
24 {
25 file_put_content("<?php \n\n\$ConfigData = ".var_export($this->Data).";\n");
26 }
27}
Note: See TracBrowser for help on using the repository browser.