/** * @return array|string */ public function cleanup() { if (!empty($this->_processor)) { $this->_processor->cleanup(); $id = $this->_processor->object->get('id'); } else { parent::cleanup(); $id = $this->object->get('id'); } $get = (require 'get.class.php'); /** @var mxResourceGetProcessor $processor */ $processor = new $get($this->modx, array('id' => $id)); $processor->initialize(); return $processor->process(); }
/** * @return array */ public function cleanup() { $this->processFiles(); return parent::cleanup(); }