diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-08-20 23:06:34 +0300 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-08-20 23:06:34 +0300 |
commit | 6e77c8f86233c755e4a053d5c36c94ef585da332 (patch) | |
tree | 6e565b48e4286e457a0baae494d890474c0b8a69 /lib | |
parent | b3735d8a7ba492a4ea8836d096d7a88d5ed04bb3 (diff) |
+onNewAction
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Command/Live.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/Command/Live.php b/lib/Command/Live.php index abd19e5..cf73851 100644 --- a/lib/Command/Live.php +++ b/lib/Command/Live.php @@ -314,6 +314,23 @@ class Live extends ExtendedBase { /** + * @param string $action + */ + public function onNewAction($action) { + + if ($action === 'indexChunk' || $action === 'indexChunkEnd') { + $this->runner->setInfoArray( + [ + 'documentId' => '', + 'title' => '', + 'content' => '' + ] + ); + } + } + + + /** * */ private function generatePanels() { |