r91799 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91798‎ | r91799 | r91800 >
Date:18:48, 9 July 2011
Author:foxtrott
Status:deferred
Tags:
Comment:
followup r91797: Improved documentation
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_AutoeditAPI.php
@@ -64,7 +64,7 @@
6565 return array(
6666 'form' => 'The form to use.',
6767 'target' => 'The target page.',
68 - 'query' => 'The query string. Format: template[parameter]=value'
 68+ 'query' => "The query string.\nFormat: template[parameter]=value\nMerge assignations using %26, i.e. template[parameter1]=value1%26template[parameter2]=value2"
6969 );
7070 }
7171
@@ -73,10 +73,18 @@
7474 * @return mixed string or array of strings
7575 */
7676 function getDescription() {
77 - return 'This module is used to remotely create or edit pages using Semantic Forms';
 77+ return "This module is used to remotely create or edit pages using Semantic Forms";
7878 }
7979
8080 /**
 81+ * Returns usage examples for this module.
 82+ * @return mixed string or array of strings
 83+ */
 84+ protected function getExamples() {
 85+ return 'api.php?action=sfautoedit&form=Event&target=SomeEvent&query=Event[Start]=2011/07/09%26Event[End]=2011/07/10';
 86+ }
 87+
 88+ /**
8189 * Returns a string that identifies the version of the class.
8290 * Includes the class name, the svn revision, timestamp, and
8391 * last author.

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91797API module to remotely create or edit pages using Semantic Formsfoxtrott18:38, 9 July 2011