User:Leucosticte/AMTEP

getUser; $params = $this->extractRequestParams;

}

public function getParamDescription { $p = $this->getModulePrefix;

return array(                   'title' => "Title of the page you want to edit. Cannot be used together with {$p}pageid",                    'pageid' => "Page ID of the page you want to edit. Cannot be used together with {$p}title",                    'section' => 'Section number. 0 for the top section, \'new\' for a new section',                    'sectiontitle' => 'The title for a new section',                    'text' => 'Page content',                    'token' => array( 'Edit token. You can get one of these through prop=info.', "The token should always be sent as the last parameter, or at ". "least, after the {$p}text parameter" ),                   'summary'                            => "Edit summary. Also section title when {$p}section=new and {$p}sectiontitle is not set",                    'minor' => 'Minor edit',                    'notminor' => 'Non-minor edit',                    'bot' => 'Mark this edit as bot',                    'basetimestamp' => array( 'Timestamp of the base revision (obtained through prop=revisions&rvprop=timestamp).', 'Used to detect edit conflicts; leave unset to ignore conflicts' ),                   'starttimestamp' => array( 'Timestamp when you obtained the edit token.', 'Used to detect edit conflicts; leave unset to ignore conflicts' ),                   'recreate' => 'Override any errors about the article having been deleted in the meantime',                    'createonly' => 'Don\'t edit the page if it exists already',                    'nocreate' => 'Throw an error if the page doesn\'t exist',                    'watch' => 'Add the page to your watchlist',                    'unwatch' => 'Remove the page from your watchlist',                    'watchlist' => 'Unconditionally add or remove the page from your ' .                            'watchlist, use preferences or do not change watch',                    'md5' => array( "The MD5 hash of the {$p}text parameter, or the {$p}prependtext ". "and {$p}appendtext parameters concatenated.", 'If set, the edit won\'t be done unless the hash is correct' ),                   'prependtext' => "Add this text to the beginning of the page. Overrides {$p}text",                    'appendtext' => array( "Add this text to the end of the page. Overrides {$p}text.", "Use {$p}section=new to append a new section" ),                   'undo' => "Undo this revision. Overrides {$p}text, {$p}prependtext and {$p}appendtext",                    'undoafter' => 'Undo all revisions from undo to this one. If not set, just undo one revision',                    'redirect' => 'Automatically resolve redirects',                    'contentformat' => 'Content serialization format used for the input text',                    'contentmodel' => 'Content model of the new content',                    'mirrorrevid' => 'Revision ID from the remote wiki',                    'mirrorrcid' => 'Recent change ID from the remote wiki',                    'mirroruserid' => 'User ID from the remote wiki',                    'mirroruser' => 'User text from the remote wiki',                    'timestamp' => 'Timestamp of when the edit was made on the remote wiki' );   }

public function getAllowedParams { return array(                   'title' => array( ApiBase::PARAM_TYPE => 'string', ),                   'pageid' => array( ApiBase::PARAM_TYPE => 'integer', ),                   'section' => null,                    'sectiontitle' => array( ApiBase::PARAM_TYPE => 'string', ),                   'text' => null,                    'token' => array( ApiBase::PARAM_TYPE => 'string', ApiBase::PARAM_REQUIRED => true ),                   'summary' => null,                    'minor' => false,                    'notminor' => false,                    'bot' => false,                    'basetimestamp' => null,                    'starttimestamp' => null,                    'recreate' => false,                    'createonly' => false,                    'nocreate' => false,                    'watch' => array( ApiBase::PARAM_DFLT => false, ApiBase::PARAM_DEPRECATED => true, ),                   'unwatch' => array( ApiBase::PARAM_DFLT => false, ApiBase::PARAM_DEPRECATED => true, ),                   'watchlist' => array( ApiBase::PARAM_DFLT => 'preferences', ApiBase::PARAM_TYPE => array(                                   'watch',                                    'unwatch',                                    'preferences',                                    'nochange'                            ), ),                   'md5' => null,                    'prependtext' => null,                    'appendtext' => null,                    'undo' => array( ApiBase::PARAM_TYPE => 'integer' ),                   'undoafter' => array( ApiBase::PARAM_TYPE => 'integer' ),                   'redirect' => array( ApiBase::PARAM_TYPE => 'boolean', ApiBase::PARAM_DFLT => false, ),                   'contentformat' => array( ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats, ),                   'contentmodel' => array( ApiBase::PARAM_TYPE => ContentHandler::getContentModels, ),                   'mirrorrevid' => array( ApiBase::PARAM_TYPE => 'integer', ApiBase::PARAM_REQUIRED => true ),                   'mirroruserid' => array( ApiBase::PARAM_TYPE => 'integer', ApiBase::PARAM_REQUIRED => true ),                   'mirroruser' => array( ApiBase::PARAM_TYPE => 'string', ApiBase::PARAM_REQUIRED => true ),                   'mirrortimestamp' => array( ApiBase::PARAM_TYPE => 'timestamp', ApiBase::PARAM_REQUIRED => true )           );    } }