From 892fdb202e33bf74dafdc74363258dbce00d1699 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Wed, 13 Nov 2013 11:08:22 +0000 Subject: feature 2976: improve lisiblity of pwg.users.getList options on APi explore + optimizations (remove in_array()) git-svn-id: http://piwigo.org/svn/trunk@25472 68402e56-0260-453c-a942-63ccdbb3a9ee --- ws.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'ws.php') diff --git a/ws.php b/ws.php index 6d4a35caf..b3f7c0076 100644 --- a/ws.php +++ b/ws.php @@ -826,10 +826,16 @@ function ws_addDefaultMethods( $arr ) 'order' => array('default'=>'id', 'info'=>'id, username, level, email'), 'display' => array('default'=>'basics', - 'info'=>'all,basics,none,username,email,status,level,groups,language,theme,nb_image_page,recent_period,expand,show_nb_comments,show_nb_hits,enabled_high'), - ), - 'Retrieves a list of all the users. -
"display" controls which data are returned, "basics" stands for "username,email,status,level,groups"', + 'info'=>'Comma saparated list (see method description)'), + ), + 'Retrieves a list of all the users.
+
+display controls which data are returned, possible values are:
+all, basics, none,
+username, email, status, level, groups,
+language, theme, nb_image_page, recent_period, expand, show_nb_comments, show_nb_hits,
+enabled_high, registration_date, registration_date_string, registration_date_since, last_visit, last_visit_string, last_visit_since
+basics stands for "username,email,status,level,groups"', $ws_functions_root . 'pwg.users.php', array('admin_only'=>true) ); -- cgit v1.2.3