From ba534a3f18bbf17b369aa37c7625022e9045d7b1 Mon Sep 17 00:00:00 2001 From: Tony Air Date: Mon, 28 Dec 2020 17:38:30 +0700 Subject: [PATCH] IMPR: Clean page content fields task --- app/src/Tasks/CleanContentTask.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 app/src/Tasks/CleanContentTask.php diff --git a/app/src/Tasks/CleanContentTask.php b/app/src/Tasks/CleanContentTask.php new file mode 100644 index 0000000..2a34e3f --- /dev/null +++ b/app/src/Tasks/CleanContentTask.php @@ -0,0 +1,29 @@ +setField('Content', ''); + $p->write(); + echo '#'.$p->ID.' '.$p->getField('Title').'
'; + } + + die('Done!'); + } +}