Changeset 9 for trunk/class/Page.php


Ignore:
Timestamp:
Jun 14, 2012, 12:04:49 AM (12 years ago)
Author:
maron
Message:

přidání odkazu k stránkám, selekce stránek

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/class/Page.php

    r8 r9  
    77{
    88  protected $Content = 'ggg';
    9   protected $Title = '';
    109  protected $Language;
     10  protected $Key;
     11  public $Link;
    1112
    12   function __construct($Language)
     13  function __construct($Key,$Language)
    1314  {
    1415          $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); 
    1621  }
    1722
     
    2631  }
    2732
     33//Get key of page
     34  public function GetKey() {
     35        return $this->Key;
     36  } 
     37
    2838//sets title of page
    2939  protected function SetTitle($Title) {
    30         $this->Title = $Title;
     40        $this->Link->Title = $Title;
    3141  }
    3242
Note: See TracChangeset for help on using the changeset viewer.