19 $xmlDoc =
'<?xml version="1.0" encoding="utf-8" ?><methodCall><params>';
20 if(!is_array($params))
25 $params[
"module"] =
"resourceapi";
26 foreach($params as $key => $val)
28 $xmlDoc .= sprintf(
"<%s><![CDATA[%s]]></%s>", $key, $val, $key);
30 $xmlDoc .=
"</params></methodCall>";
50 $xmlDoc = $xml->parse($buff);
79 $this->
stop(
'msg_not_match_server');
92 $config =
new stdClass;
107 $version_update_id = implode(
'.', array(__CLASS__,
__XE_VERSION__,
'updated'));
110 if(!
FileHandler::exists(
'./modules/autoinstall/schemas/autoinstall_installed_packages.xml')
111 && $oDB->isTableExists(
"autoinstall_installed_packages"))
116 && $oDB->isTableExists(
"autoinstall_remote_categories"))
122 if(!$oDB->isColumnExists(
'ai_remote_categories',
'list_order'))
129 if(!isset($config->downloadServer))
135 if(!$oDB->isColumnExists(
'autoinstall_packages',
'have_instance'))
156 $version_update_id = implode(
'.', array(__CLASS__,
__XE_VERSION__,
'updated'));
159 if(!
FileHandler::exists(
'./modules/autoinstall/schemas/autoinstall_installed_packages.xml')
160 && $oDB->isTableExists(
"autoinstall_installed_packages"))
162 $oDB->dropTable(
"autoinstall_installed_packages");
165 && $oDB->isTableExists(
"autoinstall_remote_categories"))
167 $oDB->dropTable(
"autoinstall_remote_categories");
171 if(!$oDB->isColumnExists(
'ai_remote_categories',
'list_order'))
173 $oDB->addColumn(
'ai_remote_categories',
'list_order',
'number', 11, NULL, TRUE);
174 $oDB->addIndex(
'ai_remote_categories',
'idx_list_order', array(
'list_order'));
179 if(!isset($config->downloadServer))
186 if(!$oDB->isColumnExists(
'autoinstall_packages',
'have_instance'))
188 $oDB->addColumn(
'autoinstall_packages',
'have_instance',
'char',
'1',
'N', TRUE);
getController($module_name)
getRemoteResource($url, $body=null, $timeout=3, $method= 'GET', $content_type=null, $headers=array(), $cookies=array(), $post_data=array(), $request_config=array())
const _XE_DOWNLOAD_SERVER_
getInstance($db_type=NULL)