Changeset 25245 for trunk/ws.php
- Timestamp:
- Oct 30, 2013, 9:29:48 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ws.php
r25237 r25245 883 883 array('admin_only'=>true, 'post_only'=>true) 884 884 ); 885 886 $service->addMethod( 887 'pwg.permissions.getList', 888 'ws_permissions_getList', 889 array( 890 'cat_id' => array('flags'=>WS_PARAM_FORCE_ARRAY|WS_PARAM_OPTIONAL, 891 'type'=>WS_TYPE_ID), 892 'group_id' => array('flags'=>WS_PARAM_FORCE_ARRAY|WS_PARAM_OPTIONAL, 893 'type'=>WS_TYPE_ID), 894 'user_id' => array('flags'=>WS_PARAM_FORCE_ARRAY|WS_PARAM_OPTIONAL, 895 'type'=>WS_TYPE_ID), 896 ), 897 '<b>Admin only.</b> Returns permissions: user ids and group ids having access to each album ; this list can be filterd with "cat_id". 898 <br>If "user_id" OR "group_id" is provided it returns a list of album ids the user or group has access to. 899 <br>Provide only on parameter!', 900 null, 901 array('admin_only'=>true) 902 ); 903 904 $service->addMethod( 905 'pwg.permissions.add', 906 'ws_permissions_add', 907 array( 908 'cat_id' => array('flags'=>WS_PARAM_FORCE_ARRAY, 909 'type'=>WS_TYPE_ID), 910 'group_id' => array('flags'=>WS_PARAM_FORCE_ARRAY|WS_PARAM_OPTIONAL, 911 'type'=>WS_TYPE_ID), 912 'user_id' => array('flags'=>WS_PARAM_FORCE_ARRAY|WS_PARAM_OPTIONAL, 913 'type'=>WS_TYPE_ID), 914 'recursive' => array('default'=>false, 915 'type'=>WS_TYPE_BOOL), 916 ), 917 '<b>Admin only.</b> Adds permissions to an album.', 918 null, 919 array('admin_only'=>true) 920 ); 921 922 $service->addMethod( 923 'pwg.permissions.remove', 924 'ws_permissions_remove', 925 array( 926 'cat_id' => array('flags'=>WS_PARAM_FORCE_ARRAY, 927 'type'=>WS_TYPE_ID), 928 'group_id' => array('flags'=>WS_PARAM_FORCE_ARRAY|WS_PARAM_OPTIONAL, 929 'type'=>WS_TYPE_ID), 930 'user_id' => array('flags'=>WS_PARAM_FORCE_ARRAY|WS_PARAM_OPTIONAL, 931 'type'=>WS_TYPE_ID), 932 ), 933 '<b>Admin & POST only.</b> Removes permissions from an album.', 934 null, 935 array('admin_only'=>true, 'post_only'=>true) 936 ); 885 937 } 886 938
Note: See TracChangeset
for help on using the changeset viewer.