1 <?php
2
3 4 5 6 7 8 9 10
11
12 namespace Icybee\Modules\Pages;
13
14 class ExportOperation extends \Icybee\Modules\Nodes\ExportOperation
15 {
16 protected function process()
17 {
18 $records = parent::process();
19
20 $keys = array_keys($records);
21
22 $contents = $this->module->model('contents')->where(array('pageid' => $keys))->all(\PDO::FETCH_OBJ);
23
24 foreach ($contents as $content)
25 {
26 $records[$content->pageid]->contents[$content->contentid] = $content->content;
27 $records[$content->pageid]->editors[$content->contentid] = $content->editor;
28 }
29
30 return $records;
31 }
32 }