| Server IP : 45.40.142.9 / Your IP : 216.73.216.250 Web Server : Apache System : Linux s45-40-142-9.secureserver.net 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : bayspec ( 506) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/bayspec/public_html/system/library/ |
Upload File : |
<?php
class Document {
private $title;
private $description;
private $keywords;
private $links = array();
private $styles = array();
private $scripts = array();
public function setTitle($title) {
$this->title = $title;
}
public function getTitle() {
return $this->title;
}
public function setDescription($description) {
$this->description = $description;
}
public function getDescription() {
return $this->description;
}
public function setKeywords($keywords) {
$this->keywords = $keywords;
}
public function getKeywords() {
return $this->keywords;
}
public function addLink($href, $rel) {
$this->links[$href] = array(
'href' => $href,
'rel' => $rel
);
}
public function getLinks() {
return $this->links;
}
public function addStyle($href, $rel = 'stylesheet', $media = 'screen') {
$this->styles[$href] = array(
'href' => $href,
'rel' => $rel,
'media' => $media
);
}
public function getStyles() {
return $this->styles;
}
public function addScript($script) {
$this->scripts[md5($script)] = $script;
}
public function getScripts() {
return $this->scripts;
}
}