mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
add getUpdateUrlBy...(), add process for return url when package install
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8647 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
29e7c3b35b
commit
7aebc36fb5
12 changed files with 57 additions and 14 deletions
|
|
@ -189,10 +189,22 @@
|
|||
|
||||
if(substr($path,-1) == '/') $path = substr($path, 0, strlen($path)-1);
|
||||
|
||||
$args->path = $path;
|
||||
$output = executeQuery('autoinstall.getPackageSrlByPath', $args);
|
||||
if (!$GLOBLAS['XE_AUTOINSTALL_PACKAGE_SRL_BY_PATH'][$path])
|
||||
{
|
||||
$args->path = $path;
|
||||
$output = executeQuery('autoinstall.getPackageSrlByPath', $args);
|
||||
|
||||
return $output->data->package_srl;
|
||||
$GLOBLAS['XE_AUTOINSTALL_PACKAGE_SRL_BY_PATH'][$path] = $output->data->package_srl;
|
||||
}
|
||||
|
||||
return $GLOBLAS['XE_AUTOINSTALL_PACKAGE_SRL_BY_PATH'][$path];
|
||||
}
|
||||
|
||||
function getRemoveUrlByPackageSrl($packageSrl)
|
||||
{
|
||||
if (!$packageSrl) return;
|
||||
|
||||
return getUrl('', 'module', 'admin', 'act', 'dispAutoinstallAdminUninstall', 'package_srl', $packageSrl);
|
||||
}
|
||||
|
||||
function getRemoveUrlByPath($path)
|
||||
|
|
@ -205,5 +217,21 @@
|
|||
return getUrl('', 'module', 'admin', 'act', 'dispAutoinstallAdminUninstall', 'package_srl', $packageSrl);
|
||||
}
|
||||
|
||||
function getUpdateUrlByPackageSrl($packageSrl)
|
||||
{
|
||||
if (!$packageSrl) return;
|
||||
|
||||
return getUrl('', 'module', 'admin', 'act', 'dispAutoinstallAdminInstall', 'package_srl', $packageSrl);
|
||||
}
|
||||
|
||||
function getUpdateUrlByPath($path)
|
||||
{
|
||||
if (!$path) return;
|
||||
|
||||
$packageSrl = $this->getPackageSrlByPath($path);
|
||||
if (!$packageSrl) return;
|
||||
|
||||
return getUrl('', 'module', 'admin', 'act', 'dispAutoinstallAdminInstall', 'package_srl', $packageSrl);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue