Changeset 9 for trunk/class/Page.php
- Timestamp:
- Jun 14, 2012, 12:04:49 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/class/Page.php
r8 r9 7 7 { 8 8 protected $Content = 'ggg'; 9 protected $Title = '';10 9 protected $Language; 10 protected $Key; 11 public $Link; 11 12 12 function __construct($ Language)13 function __construct($Key,$Language) 13 14 { 14 15 $this->Language = $Language; 15 print_r($this->Language->Texts); 16 $Name = $Language->Texts[$Key]['name']; 17 $Title = $Language->Texts[$Key]['title']; 18 $Addres = '?'.$Key; 19 $this->Key = $Key; 20 $this->Link = new Link($Name,$Addres,$Title); 16 21 } 17 22 … … 26 31 } 27 32 33 //Get key of page 34 public function GetKey() { 35 return $this->Key; 36 } 37 28 38 //sets title of page 29 39 protected function SetTitle($Title) { 30 $this-> Title = $Title;40 $this->Link->Title = $Title; 31 41 } 32 42
Note:
See TracChangeset
for help on using the changeset viewer.