Files
scummvm-web/include/Objects/WebLink.php
T
Filippos Karapetis 3bbb230b3d WEB: Generate the list of recommended downloads from the XML data
Add a new XML field, "user_agent", used to find the user agent string
where the download item in question will be suggested to the user. Only
items with the "user_agent" field can be provided as recommended
downloads
2013-11-08 02:49:25 +02:00

39 lines
762 B
PHP

<?php
require_once('Objects/BasicObject.php');
/**
* The WebLink class represents a link item on the website.
*/
class WebLink extends BasicObject {
private $_name;
private $_url;
private $_description;
/* WebLink object constructor. */
public function __construct($data) {
$this->_name = $data['name'];
$this->_url = $data['url'];
$this->_description = $data['description'];
}
/* Get the name of the link. */
public function getName() {
return $this->_name;
}
/* Get the URL of the link. */
public function getURL() {
return $this->_url;
}
/* Get the description of the link. */
public function getDescription() {
return $this->_description;
}
/* Get the user-agent. */
public function getUserAgent() {
return "";
}
}
?>