Changeset 586
- Timestamp:
- Oct 31, 2013, 9:30:09 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 33 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/AppModule.php
r579 r586 52 52 function Start() 53 53 { 54 if($this->Running) return; 55 $this->DoStart(); 54 56 $this->Running = true; 55 57 } … … 57 59 function Stop() 58 60 { 61 if(!$this->Running) return; 59 62 $this->Running = false; 63 $this->DoStop(); 60 64 } 65 66 function Restart() 67 { 68 $this->Stop(); 69 $this->Start(); 70 } 71 72 protected function DoStart() 73 { 74 } 75 76 protected function DoStop() 77 { 78 79 } 80 81 protected function DoInstall() 82 { 83 } 84 85 protected function DoUninstall() 86 { 87 } 61 88 } 62 89 -
trunk/Modules/Chat/Chat.php
r548 r586 98 98 } 99 99 100 function Start()100 function DoStart() 101 101 { 102 parent::Start();103 102 $this->System->Pages['chat'] = 'PageChatHistory'; 104 103 } -
trunk/Modules/Customer/Customer.php
r568 r586 14 14 } 15 15 16 function Start()16 function DoStart() 17 17 { 18 parent::Start();19 18 $this->System->FormManager->RegisterClass('Member', array( 20 19 'Title' => 'Zákazníci', -
trunk/Modules/EmailQueue/EmailQueue.php
r563 r586 28 28 } 29 29 30 function Install()30 function DoInstall() 31 31 { 32 parent::Install();33 32 } 34 33 35 34 function UnInstall() 36 35 { 37 parent::UnInstall();38 36 } 39 37 40 function Start()38 function DoStart() 41 39 { 42 parent::Start();43 40 $this->System->RegisterPage('fronta-posty', 'PageEmailQueueProcess'); 44 41 $this->System->FormManager->RegisterClass('Email', array( … … 71 68 } 72 69 73 function Stop()70 function DoStop() 74 71 { 75 parent::Stop();76 72 } 77 73 -
trunk/Modules/Error/Error.php
r548 r586 22 22 } 23 23 24 function Install()24 function DoInstall() 25 25 { 26 parent::Install();27 26 } 28 27 29 function UnInstall()28 function DoUnInstall() 30 29 { 31 parent::UnInstall();32 30 } 33 31 34 function Start()32 function DoStart() 35 33 { 36 parent::Start();37 34 $this->ShowError = $this->System->Config['Web']['ShowPHPError']; 38 35 set_error_handler(array($this, 'ErrorHandler')); -
trunk/Modules/File/File.php
r565 r586 105 105 } 106 106 107 function Install()107 function DoInstall() 108 108 { 109 parent::Install();110 109 } 111 110 112 function Uninstall()111 function DoUninstall() 113 112 { 114 parent::Uninstall();115 113 } 116 114 117 function Start()115 function DoStart() 118 116 { 119 117 global $Config; 120 118 121 parent::Start();122 119 $this->System->RegisterPage('file', 'PageFile'); 123 120 $this->System->AddModule(new File($this->System)); … … 147 144 } 148 145 149 function Stop() 150 { 151 parent::Stop(); 146 function DoStop() 147 { 152 148 } 153 149 } -
trunk/Modules/Finance/Finance.php
r581 r586 302 302 } 303 303 304 function Install()304 function DoInstall() 305 305 { 306 306 } 307 307 308 function Uninstall()308 function DoUninstall() 309 309 { 310 310 } 311 311 312 function Start()312 function DoStart() 313 313 { 314 314 global $Config; 315 315 316 parent::Start();317 316 $this->System->RegisterPage('finance', 'PageFinance'); 318 317 $this->System->RegisterPage(array('finance', 'spotreba'), 'PageFinanceConsumption'); … … 481 480 } 482 481 483 function Stop()482 function DoStop() 484 483 { 485 484 } -
trunk/Modules/FinanceBankAPI/FinanceBankAPI.php
r550 r586 18 18 } 19 19 20 function Install()20 function DoInstall() 21 21 { 22 22 } 23 23 24 function Uninstall()24 function DoUninstall() 25 25 { 26 26 } 27 27 28 function Start()28 function DoStart() 29 29 { 30 parent::Start();31 30 $this->System->FormManager->RegisterClass('ImportBankFile', array( 32 31 'Title' => 'Import souborů s platbami', … … 62 61 } 63 62 64 function Stop()63 function DoStop() 65 64 { 66 65 } -
trunk/Modules/IS/IS.php
r585 r586 517 517 } 518 518 519 function Install()520 { 521 } 522 523 function Uninstall()519 function DoInstall() 520 { 521 } 522 523 function DoUninstall() 524 524 { 525 525 } 526 526 527 function Start() 528 { 529 parent::Start(); 527 function DoStart() 528 { 530 529 $this->System->RegisterPage('is', 'PageIS'); 531 530 $this->System->FormManager->RegisterClass('MenuItem', array( … … 550 549 } 551 550 552 function Stop()551 function DoStop() 553 552 { 554 553 } -
trunk/Modules/Log/Log.php
r564 r586 14 14 } 15 15 16 function Install()16 function DoInstall() 17 17 { 18 parent::Install();19 18 } 20 19 21 function UnInstall()20 function DoUnInstall() 22 21 { 23 parent::UnInstall();24 22 } 25 23 26 function Start()24 function DoStart() 27 25 { 28 parent::Start();29 26 $this->System->FormManager->RegisterClass('Log', array( 30 27 'Title' => 'Záznamy', … … 43 40 } 44 41 45 function Stop()42 function DoStop() 46 43 { 47 parent::Stop();48 44 } 49 45 -
trunk/Modules/Map/Map.php
r574 r586 209 209 } 210 210 211 function Start() 212 { 213 parent::Start(); 211 function DoStart() 212 { 214 213 $this->System->Pages['map'] = 'PageNetworkMap'; 215 214 $this->System->FormManager->Type->RegisterType('MapPosition', 'String', array()); -
trunk/Modules/Meals/Meals.php
r548 r586 191 191 } 192 192 193 function Install() 194 { 195 parent::Install(); 193 function DoInstall() 194 { 196 195 } 197 196 198 function UnInstall() 199 { 200 parent::UnInstall(); 201 } 202 203 function Start() 204 { 205 parent::Start(); 197 function DoUnInstall() 198 { 199 } 200 201 function DoStart() 202 { 206 203 $this->System->RegisterPage('jidelna', 'PageEatingPlace'); 207 204 } -
trunk/Modules/Meteostation/Meteostation.php
r565 r586 91 91 } 92 92 93 94 93 function DownloadAll() 95 94 { … … 106 105 107 106 108 function Install()107 function DoInstall() 109 108 { 110 109 } 111 110 112 function Uninstall()111 function DoUninstall() 113 112 { 114 113 } 115 114 116 function Start()115 function DoStart() 117 116 { 118 parent::Start();119 117 $this->System->RegisterPage('meteo', 'PageMeteo'); 120 118 } 121 119 122 function Stop()120 function DoStop() 123 121 { 124 122 } -
trunk/Modules/Network/Network.php
r581 r586 111 111 } 112 112 113 function Install()114 { 115 } 116 117 function Uninstall()113 function DoInstall() 114 { 115 } 116 117 function DoUninstall() 118 118 { 119 119 } 120 120 121 function Start() 122 { 123 parent::Start(); 121 function DoStart() 122 { 124 123 $this->System->RegisterPage('network', 'PageNetwork'); 125 124 $this->System->RegisterPage(array('network', 'administration'), 'PageNetworkAdministration'); … … 280 279 } 281 280 282 function Stop()281 function DoStop() 283 282 { 284 283 } -
trunk/Modules/NetworkConfig/NetworkConfig.php
r548 r586 14 14 } 15 15 16 function Install()16 function DoInstall() 17 17 { 18 parent::Install();19 18 } 20 19 21 function UnInstall()20 function DoUnInstall() 22 21 { 23 parent::UnInstall();24 22 } 25 23 26 function Start()24 function DoStart() 27 25 { 28 parent::Start();29 26 $this->System->FormManager->RegisterClass('NetworkConfiguration', array( 30 27 'Title' => 'Restart sítových služeb', -
trunk/Modules/NetworkConfigLinux/NetworkConfigLinux.php
r548 r586 14 14 } 15 15 16 function Install()16 function DoInstall() 17 17 { 18 parent::Install();19 18 } 20 19 21 function UnInstall()20 function DoUnInstall() 22 21 { 23 parent::UnInstall();24 22 } 25 23 26 function Start()24 function DoStart() 27 25 { 28 parent::Start();29 26 } 30 27 } -
trunk/Modules/NetworkConfigRouterOS/NetworkConfigRouterOS.php
r548 r586 14 14 } 15 15 16 function Install()16 function DoInstall() 17 17 { 18 parent::Install();19 18 } 20 19 21 function UnInstall()20 function DoUnInstall() 22 21 { 23 parent::UnInstall();24 22 } 25 23 26 function Start()24 function DoStart() 27 25 { 28 parent::Start();29 26 } 30 27 } -
trunk/Modules/NetworkShare/NetworkShare.php
r548 r586 18 18 } 19 19 20 function Install()20 function DoInstall() 21 21 { 22 parent::Install();23 22 } 24 23 25 function UnInstall()24 function DoUnInstall() 26 25 { 27 parent::UnInstall();28 26 } 29 27 30 function Start()28 function DoStart() 31 29 { 32 parent::Start();33 30 $this->System->RegisterPage('share', 'SharePage'); 34 31 } -
trunk/Modules/NetworkTopology/NetworkTopology.php
r548 r586 143 143 } 144 144 145 function Install()145 function DoInstall() 146 146 { 147 parent::Install();148 147 } 149 148 150 function UnInstall()149 function DoUnInstall() 151 150 { 152 parent::UnInstall();153 151 } 154 152 155 function Start()153 function DoStart() 156 154 { 157 parent::Start();158 155 $this->System->RegisterPage('topologie', 'PageNetworkTopology'); 159 156 } -
trunk/Modules/News/News.php
r548 r586 26 26 } 27 27 28 function Install() 29 { 30 parent::Install(); 31 } 32 33 function UnInstall() 34 { 35 parent::UnInstall(); 28 function DoInstall() 29 { 30 } 31 32 function DoUnInstall() 33 { 36 34 } 37 35 38 function Start() 39 { 40 parent::Start(); 36 function DoStart() 37 { 41 38 $this->System->RegisterPage('aktuality', 'PageNews'); 42 39 $this->System->FormManager->RegisterClass('News', array( -
trunk/Modules/OpeningHours/OpeningHours.php
r584 r586 226 226 } 227 227 228 function Start() 229 { 230 parent::Start(); 228 function DoStart() 229 { 231 230 $this->System->Pages['otviraci-doby'] = 'PageSubjectOpenTime'; 232 231 } 233 232 234 function Install() 235 { 236 parent::Install(); 237 } 238 239 function UnInstall() 240 { 241 parent::UnInstall(); 233 function DoInstall() 234 { 235 } 236 237 function DoUnInstall() 238 { 242 239 } 243 240 } -
trunk/Modules/Portal/Portal.php
r584 r586 16 16 } 17 17 18 function Install()18 function DoInstall() 19 19 { 20 20 } 21 21 22 function Uninstall()22 function DoUninstall() 23 23 { 24 24 } 25 25 26 function Start() 27 { 28 parent::Start(); 26 function DoStart() 27 { 29 28 $this->System->RegisterPage('', 'PagePortal'); 30 29 $this->System->FormManager->RegisterClass('MemberOptions', array( … … 92 91 } 93 92 94 function Stop()93 function DoStop() 95 94 { 96 95 } -
trunk/Modules/Search/Search.php
r545 r586 65 65 } 66 66 67 function Start()67 function DoStart() 68 68 { 69 parent::Start();70 69 $this->System->Pages['search'] = 'PageSearch'; 71 70 } 72 71 73 function Install()72 function DoInstall() 74 73 { 75 parent::Install();76 74 } 77 75 78 function UnInstall() 79 { 80 parent::UnInstall(); 76 function DoUnInstall() 77 { 81 78 } 82 79 -
trunk/Modules/Setup/Setup.php
r580 r586 30 30 } 31 31 32 function Start()32 function DoStart() 33 33 { 34 parent::Start();35 34 $this->System->RegisterPage('', 'PageSetupRedirect'); 36 35 $this->System->RegisterPage('setup', 'PageSetup'); -
trunk/Modules/SpeedTest/SpeedTest.php
r560 r586 25 25 } 26 26 27 function Start()27 function DoStart() 28 28 { 29 parent::Start();30 29 $this->System->Pages['speedtest'] = 'PageSpeedTest'; 31 30 -
trunk/Modules/Stock/Stock.php
r570 r586 14 14 } 15 15 16 function Start()16 function DoStart() 17 17 { 18 parent::Start();19 18 $this->System->FormManager->RegisterClass('Product', array( 20 19 'Title' => 'Produkty', -
trunk/Modules/System/System.php
r577 r586 113 113 } 114 114 115 function Install() 116 { 117 if($this->IsInstalled()) return; 118 parent::Install(); 115 function DoInstall() 116 { 119 117 $this->Database->query('CREATE TABLE IF NOT EXISTS `SystemVersion` ( 120 118 `Id` int(11) NOT NULL AUTO_INCREMENT, … … 166 164 } 167 165 168 function UnInstall() 169 { 170 parent::UnInstall(); 171 if(!$this->IsInstalled()) return; 172 166 function DoUnInstall() 167 { 173 168 // Delete tables with reverse order 174 169 $this->Database->query('ALTER TABLE `SystemModelProperty` DROP FOREIGN KEY `SystemModelProperty_ibfk_1`'); … … 183 178 } 184 179 185 function Start() 186 { 187 parent::Start(); 180 function DoStart() 181 { 188 182 $this->System->RegisterPage('module', 'PageModules'); 189 183 //$this->Manager->OnModuleChange = array($this, 'ModuleChange'); … … 191 185 } 192 186 193 function Stop() 194 { 195 parent::Stop(); 187 function DoStop() 188 { 196 189 } 197 190 -
trunk/Modules/TV/TV.php
r548 r586 117 117 } 118 118 119 function Install()119 function DoInstall() 120 120 { 121 121 } 122 122 123 function Uninstall()123 function DoUninstall() 124 124 { 125 125 } 126 126 127 function Start()127 function DoStart() 128 128 { 129 parent::Start();130 129 $this->System->RegisterPage('tv', 'PageIPTV'); 131 130 $this->System->FormManager->RegisterClass('TV', array( … … 157 156 } 158 157 159 function Stop()158 function DoStop() 160 159 { 161 160 } -
trunk/Modules/Task/Task.php
r546 r586 14 14 } 15 15 16 function Start()16 function DoStart() 17 17 { 18 parent::Start();19 18 $this->System->FormManager->RegisterClass('Task', array( 20 19 'Title' => 'Úkoly', -
trunk/Modules/TimeMeasure/TimeMeasure.php
r569 r586 18 18 } 19 19 20 function Install()20 function DoInstall() 21 21 { 22 parent::Install();23 22 } 24 23 25 function UnInstall()24 function DoUnInstall() 26 25 { 27 parent::UnInstall();28 26 } 29 27 30 function Start()28 function DoStart() 31 29 { 32 parent::Start();33 30 $this->System->Pages['grafy'] = 'PageMeasure'; 34 31 $this->System->FormManager->RegisterClass('Measure', array( … … 51 48 } 52 49 53 function Stop()50 function DoStop() 54 51 { 55 parent::Stop();56 52 } 57 53 } -
trunk/Modules/User/User.php
r584 r586 399 399 } 400 400 401 function Install()402 { 403 } 404 405 function Uninstall()401 function DoInstall() 402 { 403 } 404 405 function DoUninstall() 406 406 { 407 407 } 408 408 409 function Start() 410 { 411 parent::Start(); 409 function DoStart() 410 { 412 411 $this->System->User = new User($this->System); 413 412 if(isset($_SERVER['REMOTE_ADDR'])) $this->System->User->Check(); … … 474 473 } 475 474 476 function Stop()475 function DoStop() 477 476 { 478 477 } -
trunk/Modules/WebCam/WebCam.php
r579 r586 58 58 } 59 59 60 function Start()60 function DoStart() 61 61 { 62 parent::Start();63 62 $this->System->Pages['webcam'] = 'PageWebcam'; 64 63 } -
trunk/Modules/Wiki/Wiki.php
r565 r586 15 15 } 16 16 17 function Install()17 function DoInstall() 18 18 { 19 19 parent::Install(); … … 42 42 } 43 43 44 function UnInstall()44 function DoUnInstall() 45 45 { 46 46 $this->Database->query("DELETE TABLE `WikiPageContent`; '. … … 49 49 } 50 50 51 function Start() 52 { 53 parent::Start(); 51 function DoStart() 52 { 54 53 $this->LoadPages(); 55 54 } 56 55 57 function Stop() 58 { 59 parent::Stop(); 56 function DoStop() 57 { 60 58 } 61 59
Note:
See TracChangeset
for help on using the changeset viewer.