Changeset 565
- Timestamp:
- Sep 1, 2013, 11:37:27 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 10 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Base.php
r564 r565 1 1 <?php 2 2 3 class Module3 class Base 4 4 { 5 5 /** @var Database */ … … 7 7 /** @var System */ 8 8 var $System; 9 var $Title = '';10 var $Dependencies = array();11 var $CurrentPath = '/';12 9 13 10 function __construct($System) … … 17 14 } 18 15 } 16 17 class Model extends Base 18 { 19 20 } 21 22 class View extends Base 23 { 24 25 } 26 27 class Controller extends Base 28 { 29 30 } -
trunk/Common/Global.php
r556 r565 11 11 include_once(dirname(__FILE__).'/Update.php'); 12 12 include_once(dirname(__FILE__).'/VarDumper.php'); 13 include_once(dirname(__FILE__).'/ Module.php');13 include_once(dirname(__FILE__).'/Base.php'); 14 14 include_once(dirname(__FILE__).'/AppModule.php'); 15 15 include_once(dirname(__FILE__).'/Database.php'); -
trunk/Common/Page.php
r548 r565 3 3 define('PAGE_NOT_FOUND', 'Stránka nenalezena'); 4 4 5 class Page extends Mod ule5 class Page extends Model 6 6 { 7 7 var $TimeStart; -
trunk/Common/Version.php
r564 r565 1 1 <?php 2 2 3 $Revision = 56 4; // Subversion revision4 $DatabaseRevision = 5 51; // SQL structure revision5 $ReleaseTime = '2013-0 8-10';3 $Revision = 565; // Subversion revision 4 $DatabaseRevision = 565; // SQL structure revision 5 $ReleaseTime = '2013-09-01'; -
trunk/Modules/File/File.php
r561 r565 3 3 include_once(dirname(__FILE__).'/MimeTypes.php'); 4 4 5 class File extends Mod ule5 class File extends Model 6 6 { 7 7 var $FilesDir; -
trunk/Modules/Finance/Bill.php
r558 r565 1 1 <?php 2 2 3 class Bill extends Mod ule3 class Bill extends Model 4 4 { 5 5 var $SpecificSymbol = 1; // počítačová sít -
trunk/Modules/Finance/Finance.php
r561 r565 17 17 define('INVOICE_OUT_DOC_LINE', 6); 18 18 19 class Finance extends Mod ule19 class Finance extends Model 20 20 { 21 21 var $kWh; -
trunk/Modules/Meteostation/Meteostation.php
r548 r565 18 18 } 19 19 20 class MeteoStation extends Mod ule20 class MeteoStation extends Model 21 21 { 22 22 var $Id; -
trunk/Modules/TimeMeasure/TimeMeasure.php
r548 r565 27 27 { 28 28 parent::Start(); 29 $this->System->Pages['grafy'] = 'PageMeasure'; 29 30 $this->System->FormManager->RegisterClass('Measure', array( 30 31 'Title' => 'Měření', -
trunk/Modules/User/User.php
r545 r565 49 49 // TODO: Make User class more general without dependencies to System, Mail, Log 50 50 51 class User extends Mod ule51 class User extends Model 52 52 { 53 53 var $Roles = array(); -
trunk/admin/Updates.php
r552 r565 343 343 } 344 344 345 function UpdateTo565($Manager) 346 { 347 $Manager->Execute('CREATE TABLE IF NOT EXISTS `WikiPage` ( 348 `Id` int(11) NOT NULL AUTO_INCREMENT, 349 `Name` varchar(255) NOT NULL, 350 `NormalizedName` varchar(255) NOT NULL, 351 `VisibleInMenu` int(11) NOT NULL, 352 PRIMARY KEY (`Id`), 353 UNIQUE KEY `Name` (`Name`), 354 KEY `VisibleInMenu` (`VisibleInMenu`) 355 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;'); 356 $Manager->Execute('CREATE TABLE IF NOT EXISTS `WikiPageContent` ( 357 `Id` int(11) NOT NULL AUTO_INCREMENT, 358 `Page` int(11) NOT NULL, 359 `Time` datetime NOT NULL, 360 `Content` text NOT NULL, 361 `User` int(11) NOT NULL, 362 PRIMARY KEY (`Id`), 363 KEY `User` (`User`), 364 KEY `Page` (`Page`) 365 ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;'); 366 $Manager->Execute('ALTER TABLE `WikiPageContent` 367 ADD CONSTRAINT `WikiPageContent_ibfk_2` FOREIGN KEY (`Page`) REFERENCES `WikiPage` (`Id`), 368 ADD CONSTRAINT `WikiPageContent_ibfk_1` FOREIGN KEY (`User`) REFERENCES `User` (`ID`);'); 369 } 345 370 346 371 $Updates = array( … … 363 388 549 => array('Revision' => 550, 'Function' => 'UpdateTo550'), 364 389 550 => array('Revision' => 551, 'Function' => 'UpdateTo551'), 390 551 => array('Revision' => 565, 'Function' => 'UpdateTo565'), 365 391 );
Note:
See TracChangeset
for help on using the changeset viewer.