Changeset 8 for trunk/class
- Timestamp:
- Jun 13, 2012, 11:09:13 PM (12 years ago)
- Location:
- trunk/class
- Files:
-
- 1 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/class/Config.sample.php
r5 r8 31 31 'TempFolder' => '../tmp/', 32 32 'VisiblePagingItems' => 20, 33 'Style' => 'style.css', 34 'Script' => 'global.js', 35 'Icon' => 'favicon.ico', 36 'Language' => 'cs', 33 37 ); 34 38 -
trunk/class/Database.php
r6 r8 14 14 var $ShowSQLQuery = false; 15 15 var $ShowSQLError = false; 16 var $Config; 16 17 17 18 function __construct() -
trunk/class/Gui.php
r6 r8 11 11 private $Links = array(); 12 12 private $Pages = array(); 13 private $Language; 13 14 14 15 function __construct() … … 16 17 $this->Config = new Config(); 17 18 $this->Messages = new Messages(); 19 $this->Language = new Language(); 18 20 $this->Feedback(); 19 21 $this->InitLinks(); … … 29 31 //init Pages 30 32 private function InitPages() { 31 $this->Pages['home'] = new PageHome( );33 $this->Pages['home'] = new PageHome($this->Language); 32 34 33 35 } -
trunk/class/Page.php
r7 r8 6 6 class Page 7 7 { 8 protected $Content = 'gg ';8 protected $Content = 'ggg'; 9 9 protected $Title = ''; 10 protected $Language; 10 11 11 function __construct( )12 function __construct($Language) 12 13 { 14 $this->Language = $Language; 15 print_r($this->Language->Texts); 13 16 } 14 17 … … 23 26 } 24 27 28 //sets title of page 29 protected function SetTitle($Title) { 30 $this->Title = $Title; 31 } 32 25 33 } 26 34 ?> -
trunk/class/PageHome.php
r7 r8 3 3 // PageHome class 4 4 // Date: 2012-06-13 5 include_once('class/Page.php'); 5 6 include_once('Page.php'); 7 6 8 class PageHome extends Page 7 9 { 8 9 function __construct( )10 /* 11 function __construct($__) 10 12 { 13 parent::__construct($__); 11 14 } 12 15 */ 13 16 protected function Generate() { 14 parent::Generate('Toto je úvodnà stránka'); 15 $this->Title = 'Ãvodnà stránka'; 17 //generation of the page 18 parent::Generate($this->Language->Texts['home']['content']); 19 parent::SetTitle($this->Language->Texts['home']['title']); 20 16 21 } 17 22
Note:
See TracChangeset
for help on using the changeset viewer.