Exemplo n.º 1
0
 private function exportConfigs(ZipArchive $za, $archiveDir)
 {
     $this->configs['avatarUrl'] = OW::getStorage()->getFileUrl(BOL_AvatarService::getInstance()->getAvatarsDir());
     $tableName = OW::getDbo()->escapeString(str_replace(OW_DB_PREFIX, '%%TBL-PREFIX%%', BOL_ConfigDao::getInstance()->getTableName()));
     $query = " SELECT `key`, `name`, `value`, `description` FROM " . BOL_ConfigDao::getInstance()->getTableName() . " WHERE name NOT IN ( 'maintenance', 'update_soft', 'site_installed', 'soft_build', 'soft_version' )\n                    AND `key` NOT IN ( 'dataimporter', 'dataexporter' ) ";
     $sql = DATAEXPORTER_BOL_ExportService::getInstance()->exportTableToSql(OW_DB_PREFIX . 'base_config', false, false, true, $query);
     $za->addFromString($archiveDir . '/configs.sql', $sql);
 }
Exemplo n.º 2
0
 /**
  * Constructor.
  */
 private function __construct()
 {
     $this->configDao = BOL_ConfigDao::getInstance();
 }