Example #1
0
 private function onZip()
 {
     $client = GWF_Client::getClient(GWF_Session::getUserID());
     $rand = Common::randomDateStamp();
     $archivename = 'dbimg/gwf_purchase_' . $rand . '.zip';
     $zipper = $this->module->getMethod('Zipper');
     $zipper instanceof VersionServer_Zipper;
     $zipper->setArchiveName($archivename);
     $error = $zipper->onZip($client->getModuleNames(), 'default');
     if ($zipper->hasError()) {
         return $error;
     }
     GWF_Upload::outputFile($archivename, 'arc/zip');
     return $error;
 }