Removed obsolete function from Page-class
This commit is contained in:
parent
2f5b8734c4
commit
c29b964215
@ -10,14 +10,9 @@ class Page
|
|||||||
$this->filename = $filename;
|
$this->filename = $filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function createPage()
|
|
||||||
{
|
|
||||||
include ("{$contentFolder}{$this->filename}.html");
|
|
||||||
}
|
|
||||||
|
|
||||||
public function createMenuItem()
|
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);
|
preg_match_all("/[a-z_\-0-9]*/i", $this->filename, $out);
|
||||||
$bareFilename = $out[0][0];
|
$bareFilename = $out[0][0];
|
||||||
|
|
||||||
@ -26,6 +21,7 @@ class Page
|
|||||||
$this->name . "</a></li>\n");
|
$this->name . "</a></li>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For future-uses...
|
||||||
public function getName()
|
public function getName()
|
||||||
{
|
{
|
||||||
return $this->name;
|
return $this->name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user