getOption('backupmodx.core_path', null, $modx->getOption('core_path') . 'components/backupmodx/'); $this->backupmodx = $modx->getService('backupmodx', 'BackupMODX', $corePath . 'model/backupmodx/', array( 'core_path' => $corePath )); } public function process() { $database = ($this->getProperty('database') == 'true') ? true : false; $files = ($this->getProperty('files') == 'true') ? true : false; $note = $this->getProperty('note'); $backup = new Backup($this->modx); $result = $backup->backup($files, $database, $note); if (is_array($result)) { $_SESSION['tmpActiveBackup'] = $result; return $this->outputArray($result, 1); } else { return $this->failure($result); } } } return 'BackupMODXBackupProcessor';