public function process() { $this->package->fromArray($this->getProperties()); if (!$this->package->save()) { return $this->failure($this->modx->lexicon('package_err_save')); } $this->logManagerAction(); return $this->success('', $this->package); }