aboutsummaryrefslogtreecommitdiff
path: root/app/class/Metaedit.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-01-10 15:28:56 +0100
committervincent-peugnet <v.peugnet@free.fr>2020-01-10 15:28:56 +0100
commitd9816ef4affa3d7096a2189e9b171d9d130a727e (patch)
tree346e26956d0a7521a3736bc85beea397a24d1c46 /app/class/Metaedit.php
parent7001272f4e8b683cbc64564c5798d85a34ab9026 (diff)
downloadwcms-d9816ef4affa3d7096a2189e9b171d9d130a727e.tar.gz
wcms-d9816ef4affa3d7096a2189e9b171d9d130a727e.zip
new feature : multi edit base working
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