aboutsummaryrefslogtreecommitdiff
path: root/app/class/Metaedit.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/Metaedit.php')
-rw-r--r--app/class/Metaedit.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/app/class/Metaedit.php b/app/class/Metaedit.php
new file mode 100644
index 0000000..e21a0c2
--- /dev/null
+++ b/app/class/Metaedit.php
@@ -0,0 +1,44 @@
+<?php
+
+namespace Wcms;
+
+class Pageedit extends Page
+{
+ protected $resettag;
+ protected $resetdate;
+ protected $emptycontent;
+
+
+
+
+ /**
+ * Edit a page based on object seting
+ *
+ * @param Page $page Page to be metaedited
+ *
+ * @return Page Edited page object
+ */
+ public function editpage(Page $page)
+ {
+ if($this->resettag) {
+ $page->tag([]);
+ }
+ $page->addtag($this->tag);
+ if($this->resetdate) {
+ $page->date()
+ }
+ $page->secure($this->secure);
+ $page->templatebody($this->templatebody);
+ $page->templatecss($this->templatecss);
+ $page->templatejavascript($this->templatejavascript);
+
+ return $page;
+ }
+
+}
+
+
+
+
+
+?> \ No newline at end of file