-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcpage.php
More file actions
43 lines (35 loc) · 802 Bytes
/
cpage.php
File metadata and controls
43 lines (35 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
class cpage {
protected $title;
private $content;
private $contentfile;
protected $url;
public function __construct($title) {
$this->title = $title;
$this->setUrl("http://www.janbthomas.com");
}
public function __destruct() {
// clean up here
}
public function render() {
echo "<H1>{$this->title}</H1>";
echo $this->content;
include $this->contentfile;
}
public function setContentFile($filename)
{
$this->contentfile = $filename;
}
public function setContent($content) {
$this->content = $content;
}
function setUrl($url)
{
$this->url = $url;
}
function getUrl()
{
return $this->url;
}
}
?>