Files
scummvm-web/include/Objects/WebLink.php
T
Eugene Sandulenko d429c48de0 Website rewrite from Fredrik Wendel
svn path=/web/trunk/; revision=40814
2009-05-23 18:45:30 +00:00

34 lines
683 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;
}
}
?>