aboutsummaryrefslogtreecommitdiffstats
path: root/ws.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-20 14:52:52 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-20 14:52:52 +0000
commit491e8adc7467de9f9aa6dbbebfcb8b82c676b46a (patch)
treeaad72cf4b73fa2bd6ffb6e91c174d18547410741 /ws.php
parentfede13ce419b40ca22cf58b76f74d44d6d564dac (diff)
feature:2271
Merge autoupdate plugin into piwigo core. git-svn-id: http://piwigo.org/svn/trunk@10511 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--ws.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/ws.php b/ws.php
index 0df265783..046ee4743 100644
--- a/ws.php
+++ b/ws.php
@@ -418,6 +418,33 @@ function ws_addDefaultMethods( $arr )
<br>Argument "type" can be "thumbnail" or "websize". Default is "thumbnail".
<br>If maxwidth, maxheight or quality are missing, default parameters of upload will be used.'
);
+
+ $service->addMethod(
+ 'pwg.extensions.update',
+ 'ws_extensions_update',
+ array(
+ 'type' => array(),
+ 'id' => array(),
+ 'revision'=> array(),
+ 'pwg_token' => array(),
+ ),
+ 'Update an extension. Webmaster only.
+<br>Parameter type must be "plugins", "languages" or "themes".'
+ );
+
+ $service->addMethod(
+ 'pwg.extensions.ignoreUpdate',
+ 'ws_extensions_ignoreupdate',
+ array(
+ 'type' => array('default'=>null),
+ 'id' => array('default'=>null),
+ 'reset' => array('default'=>null),
+ 'pwg_token' => array(),
+ ),
+ 'Ignore an extension if it need update.
+<br>Parameter type must be "plugins", "languages" or "themes".
+<br>If reset parameter is true, all ignored extensions will be reinitilized.'
+ );
}
add_event_handler('ws_add_methods', 'ws_addDefaultMethods');