issue #2132 update ws_categories_getAdminList

add new params: cat_id and recursive
This commit is contained in:
Linty
2024-07-31 11:36:43 +02:00
parent e5e84e07e6
commit 3826f355ae
2 changed files with 58 additions and 4 deletions

6
ws.php
View File

@@ -603,7 +603,13 @@ function ws_addDefaultMethods( $arr )
'pwg.categories.getAdminList',
'ws_categories_getAdminList',
array(
'cat_id' => array('default'=>null,
'type'=>WS_TYPE_INT|WS_TYPE_POSITIVE,
'info'=>'Parent category. "0" or empty for root.'),
'search' => array('default' => null),
'recursive' => array(
'default' => true,
'type' => WS_TYPE_BOOL),
'additional_output' => array('default'=>null,
'info'=>'Comma saparated list (see method description)'),
),