123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- require_once 'Resource.class.php';
- class Link extends Resource
- {
-
- public $title;
-
- public $url;
-
- public $description;
-
- public $category_id;
-
- public $on_homepage;
-
- public function Link(
- $id,
- $title,
- $url,
- $description,
- $category_id,
- $on_homepage
- )
- {
- parent::Resource($id,RESOURCE_LINK);
- $this->title = $title;
- $this->url = $url;
- $this->description = $description;
- $this->category_id = $category_id;
- $this->on_homepage = $on_homepage;
- }
-
- public function show()
- {
- parent::show();
- echo $this->title.' ('.$this->url.')';
- }
- }
|