mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
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
39 lines
762 B
PHP
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 "";
|
|
}
|
|
}
|
|
?>
|