コード例 #1
0
 public function getAllowedParams()
 {
     return array('postId' => array(ApiBase::PARAM_REQUIRED => true), 'prev_revision' => array(ApiBase::PARAM_REQUIRED => true), 'content' => array(ApiBase::PARAM_REQUIRED => true), 'format' => array(ApiBase::PARAM_REQUIRED => true, ApiBase::PARAM_DFLT => 'wikitext', ApiBase::PARAM_TYPE => array('html', 'wikitext'))) + parent::getAllowedParams();
 }
コード例 #2
0
 public function getAllowedParams()
 {
     return array('moderationState' => array(ApiBase::PARAM_REQUIRED => true, ApiBase::PARAM_TYPE => array(AbstractRevision::MODERATED_LOCKED, 'unlock', 'close', 'reopen')), 'reason' => array(ApiBase::PARAM_REQUIRED => true, ApiBase::PARAM_TYPE => 'string')) + parent::getAllowedParams();
 }
コード例 #3
0
 public function getAllowedParams()
 {
     return array('prev_revision' => array(ApiBase::PARAM_REQUIRED => true), 'content' => array(ApiBase::PARAM_REQUIRED => true)) + parent::getAllowedParams();
 }
コード例 #4
0
 public function getAllowedParams()
 {
     return array('moderationState' => array(ApiBase::PARAM_REQUIRED => true, ApiBase::PARAM_TYPE => $this->getModerationStates()), 'reason' => array(ApiBase::PARAM_REQUIRED => true), 'postId' => array(ApiBase::PARAM_REQUIRED => true)) + parent::getAllowedParams();
 }