diff options
Diffstat (limited to 'doc/web/homepage/page-php-classes.inc')
-rw-r--r-- | doc/web/homepage/page-php-classes.inc | 117 |
1 files changed, 100 insertions, 17 deletions
diff --git a/doc/web/homepage/page-php-classes.inc b/doc/web/homepage/page-php-classes.inc index 17d03ab..fc6b2f7 100644 --- a/doc/web/homepage/page-php-classes.inc +++ b/doc/web/homepage/page-php-classes.inc @@ -1,13 +1,17 @@ <?php +/** + * class Status: + * Contains the localized current status of the LIVE plugin. + */ class Status { - var $title; - var $vers_string; - var $vers_number; - var $datefmt; - var $language; + public $title; + public $vers_string; + public $vers_number; + public $datefmt; + public $language; - function Status($title, $vname, $vnum, $datefmt, $lang) + public function __construct($title, $vname, $vnum, $datefmt, $lang) { $this->title = $title; $this->vers_string = $vname; @@ -17,53 +21,61 @@ class Status } } - +/** + * class Menu: + * holds the localized names and the urls to the pages of the main + * menu. + */ class Menu { - var $urls; + public $urls; - function Menu($entries) + public function __construct($entries) { $this->urls = $entries; } } - +/** + * class Screenshots: + * Contains the localized 'basic' names of the screenshot images and a + * description of the single images. + */ class Screenshots { - var $images; + private $images; - function Screenshots($imgNames) + public function __construct($imgNames) { $this->images = $imgNames; } - function RandomImg() + public function RandomImg() { $idx = array_rand($this->images); $this->MakeAnchor($idx); } - function AllImg() + public function AllImg() { foreach($this->images as $idx => $descr) { $this->MakeAnchor($idx); } } - function MakeAnchor($img) + private function MakeAnchor($img) { echo "<a href=\"screenshots.php?img=$img\"><img src=\"img/${img}_thumb.jpg\" alt=\"$img\"/></a>\n"; } - function FullImage($img) + public function FullImage($img) { $img = basename($img); echo "<a href=\"screenshots.php\"><img src=\"img/${img}.jpg\" alt=\"img/${img}.jpg\"/ style=\"width: 810px\"></a>\n"; } - function ImageDescr($img, $error) + public function ImageDescr($img, $error) { $img = basename($img); if (isset($this->images[$img])) @@ -72,4 +84,75 @@ class Screenshots return $error; } } + +/** + * class SoftwareComponnent: + * Describes one software component which has some kind of relation + * with the LIVE plugin. + */ +class SoftwareComponent +{ + private $name; + private $minVers; + private $recVers; + private $homepage; + + public function __construct($n, $m, $r, $h) + { + $this->name = $n; + $this->minVers = $m; + $this->recVers = $r; + $this->homepage = $h; + } + + public function Name() + { + return $this->name; + } + + public function MinVersion() + { + return $this->minVers; + } + + public function RecommendedVersion() + { + return $this->recVers; + } + + public function Homepage() + { + return $this->homepage; + } +} + +class LiveSWConfig +{ + private $required; + private $optional; + private $plugins; + + public function __construct(array $r, array $o, array $p) + { + $this->required = $r; + $this->optional = $o; + $this->plugins = $p; + } + + public function Required() + { + return $this->required; + } + + public function Optional() + { + return $this->optional; + } + + public function Plugins() + { + return $this->plugins; + } +} + ?> |