Removed obsolete function from Page-class

This commit is contained in:
Jack-Benny Persson 2014-06-28 18:49:11 +02:00
parent 2f5b8734c4
commit c29b964215

View File

@ -10,14 +10,9 @@ class Page
$this->filename = $filename;
}
public function createPage()
{
include ("{$contentFolder}{$this->filename}.html");
}
public function createMenuItem()
{
// Match just the name, without the .html, .php etc parc
// Match just the name, without the .html, .php etc part
preg_match_all("/[a-z_\-0-9]*/i", $this->filename, $out);
$bareFilename = $out[0][0];
@ -26,6 +21,7 @@ class Page
$this->name . "</a></li>\n");
}
// For future-uses...
public function getName()
{
return $this->name;