r101805 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101804‎ | r101805 | r101806 >
Date:13:57, 3 November 2011
Author:jeroendedauw
Status:ok
Tags:
Comment:
api examples++
Modified paths:
  • /trunk/extensions/Survey/api/ApiQuerySurveyAnswers.php (modified) (history)
  • /trunk/extensions/Survey/api/ApiQuerySurveySubmissions.php (modified) (history)
  • /trunk/extensions/Survey/api/ApiQuerySurveys.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Survey/api/ApiQuerySurveySubmissions.php
@@ -133,7 +133,9 @@
134134 */
135135 protected function getExamples() {
136136 return array (
137 - 'api.php?action=query&list=surveysubmissions&',
 137+ 'api.php?action=query&list=surveysubmissions&qsid=42',
 138+ 'api.php?action=query&list=surveysubmissions&qssurvey_id=9001',
 139+ 'api.php?action=query&list=surveysubmissions&qsuser_name=Jeroen%20De%20Dauw&qsprops=survey_id|page_id|time',
138140 );
139141 }
140142
Index: trunk/extensions/Survey/api/ApiQuerySurveyAnswers.php
@@ -133,7 +133,9 @@
134134 */
135135 protected function getExamples() {
136136 return array (
137 - 'api.php?action=query&list=surveyanswers&',
 137+ 'api.php?action=query&list=surveyanswers&qaid=42',
 138+ 'api.php?action=query&list=surveyanswers&qaid=42&qaprops=text|submission_id',
 139+ 'api.php?action=query&list=surveyanswers&qaquestion_id=9001&qaprops=text',
138140 );
139141 }
140142
Index: trunk/extensions/Survey/api/ApiQuerySurveys.php
@@ -197,7 +197,8 @@
198198 */
199199 protected function getExamples() {
200200 return array (
201 - 'api.php?action=query&list=surveys&',
 201+ 'api.php?action=query&list=surveys&suids=4|2',
 202+ 'api.php?action=query&list=surveys&suenabled=1&suprops=id|name',
202203 );
203204 }
204205

Status & tagging log