source: trunk/class/Link.php

Last change on this file was 7, checked in by maron, 12 years ago

třídy odkazů, stránek

  • Property svn:executable set to *
File size: 536 bytes
Line 
1<?php
2
3// Link class
4// Date: 2012-06-13
5
6class Link
7{
8 var $LinkAddres;
9 var $Title = '';
10 var $Name;
11
12 function __construct($Name, $LinkAddres , $Title)
13 {
14 $this->LinkAddres = $LinkAddres;
15 $this->Name = $Name;
16 $this->Title = $Title;
17 }
18
19//returns link as text
20 function Get() {
21 if ($this->Title != '') {
22 return '<a href="'.$this->LinkAddres.'" title="'.$this->Title.'">'.$this->Name.'</a>';
23 } else {
24 return '<a href="'.$this->LinkAddres.'" title="'.$this->Name.'">'.$this->Name.'</a>';
25 }
26 }
27}
28?>
Note: See TracBrowser for help on using the repository browser.