-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPage.class.php
67 lines (57 loc) · 1.38 KB
/
Page.class.php
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
require_once("PageBody.class.php");
class Page
{
private static $_title,
$_author,
$_last_mod,
$_keywords;
public static function setTitle($title)
{
if (isset($title))
{
self::$_title = $title;
}
}
public static function getTitle()
{
return ("\t\t<title>".self::$_title."</title>");
}
public static function setAuthor($author)
{
if (isset($author))
{
self::$_author = $author;
}
}
public static function getAuthor()
{
return ("\t\t".'<meta name="author" content="'.self::$_author.'" />');
}
public static function setLastMod($date)
{
if (isset($date))
{
self::$_last_mod = $date;
}
}
public static function getLastMod()
{
return ("\t\t".'<meta name="Date-Revision-yyyymmdd" content="'.self::$_last_mod.'" />');
}
public static function setKeywords($keywords)
{
if (isset($keywords))
{
self::$_keywords = $keywords;
}
}
public static function getKeywords()
{
return ("\t\t".'<meta name="keywords" content="'.self::$_keywords.'" />');
}
public static function getBody()
{
return (new PageBody());
}
}