当前位置: 首页>>代码示例>>PHP>>正文


PHP ContentHandler::getAllContentFormats方法代码示例

本文整理汇总了PHP中ContentHandler::getAllContentFormats方法的典型用法代码示例。如果您正苦于以下问题:PHP ContentHandler::getAllContentFormats方法的具体用法?PHP ContentHandler::getAllContentFormats怎么用?PHP ContentHandler::getAllContentFormats使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ContentHandler的用法示例。


在下文中一共展示了ContentHandler::getAllContentFormats方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getAllowedParams

 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' => array(ApiBase::PARAM_TYPE => 'text'), 'summary' => null, 'tags' => array(ApiBase::PARAM_TYPE => ChangeTags::listExplicitlyDefinedTags(), ApiBase::PARAM_ISMULTI => true), 'minor' => false, 'notminor' => false, 'bot' => false, 'basetimestamp' => array(ApiBase::PARAM_TYPE => 'timestamp'), 'starttimestamp' => array(ApiBase::PARAM_TYPE => 'timestamp'), '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' => array(ApiBase::PARAM_TYPE => 'text'), 'appendtext' => array(ApiBase::PARAM_TYPE => 'text'), '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()), 'token' => array(ApiBase::PARAM_HELP_MSG_APPEND => array('apihelp-edit-param-token')));
 }
开发者ID:D66Ha,项目名称:mediawiki,代码行数:4,代码来源:ApiEditPage.php

示例2: getAllowedParams

 public function getAllowedParams()
 {
     return array('title' => array(ApiBase::PARAM_DFLT => 'API'), 'text' => null, 'summary' => null, 'page' => null, 'pageid' => array(ApiBase::PARAM_TYPE => 'integer'), 'redirects' => false, 'oldid' => array(ApiBase::PARAM_TYPE => 'integer'), 'prop' => array(ApiBase::PARAM_DFLT => 'text|langlinks|categories|links|templates|images|externallinks|sections|revid|displaytitle|iwlinks|properties', ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => array('text', 'langlinks', 'languageshtml', 'categories', 'categorieshtml', 'links', 'templates', 'images', 'externallinks', 'sections', 'revid', 'displaytitle', 'headitems', 'headhtml', 'iwlinks', 'wikitext', 'properties')), 'pst' => false, 'onlypst' => false, 'uselang' => null, 'section' => null, 'disablepp' => false, 'generatexml' => false, 'contentformat' => array(ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats()), 'contentmodel' => array(ApiBase::PARAM_TYPE => ContentHandler::getContentModels()));
 }
开发者ID:nischayn22,项目名称:mediawiki-core,代码行数:4,代码来源:ApiParse.php

示例3: getAllowedParams

 public function getAllowedParams()
 {
     return array('prop' => array(ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_DFLT => 'ids|timestamp|flags|comment|user', ApiBase::PARAM_TYPE => array('ids', 'flags', 'timestamp', 'user', 'userid', 'size', 'sha1', 'contentmodel', 'comment', 'parsedcomment', 'content', 'tags'), ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-prop'), 'limit' => array(ApiBase::PARAM_TYPE => 'limit', ApiBase::PARAM_MIN => 1, ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-limit'), 'expandtemplates' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-expandtemplates'), 'generatexml' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-generatexml'), 'parse' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-parse'), 'section' => array(ApiBase::PARAM_DFLT => null, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-section'), 'diffto' => array(ApiBase::PARAM_DFLT => null, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-diffto'), 'difftotext' => array(ApiBase::PARAM_DFLT => null, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-difftotext'), 'contentformat' => array(ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(), ApiBase::PARAM_DFLT => null, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-contentformat'));
 }
开发者ID:eliagbayani,项目名称:LiteratureEditor,代码行数:4,代码来源:ApiQueryRevisionsBase.php

示例4: getAllowedParams

 public function getAllowedParams()
 {
     return array('title' => null, 'text' => array(ApiBase::PARAM_TYPE => 'text'), 'summary' => null, 'page' => null, 'pageid' => array(ApiBase::PARAM_TYPE => 'integer'), 'redirects' => false, 'oldid' => array(ApiBase::PARAM_TYPE => 'integer'), 'prop' => array(ApiBase::PARAM_DFLT => 'text|langlinks|categories|links|templates|' . 'images|externallinks|sections|revid|displaytitle|iwlinks|properties', ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_TYPE => array('text', 'langlinks', 'categories', 'categorieshtml', 'links', 'templates', 'images', 'externallinks', 'sections', 'revid', 'displaytitle', 'headitems', 'headhtml', 'modules', 'jsconfigvars', 'encodedjsconfigvars', 'indicators', 'iwlinks', 'wikitext', 'properties', 'limitreportdata', 'limitreporthtml', 'parsetree'), ApiBase::PARAM_HELP_MSG_PER_VALUE => array('parsetree' => array('apihelp-parse-paramvalue-prop-parsetree', CONTENT_MODEL_WIKITEXT))), 'pst' => false, 'onlypst' => false, 'effectivelanglinks' => false, 'section' => null, 'sectiontitle' => array(ApiBase::PARAM_TYPE => 'string'), 'disablepp' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_DEPRECATED => true), 'disablelimitreport' => false, 'disableeditsection' => false, 'disabletidy' => false, 'generatexml' => array(ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => array('apihelp-parse-param-generatexml', CONTENT_MODEL_WIKITEXT), ApiBase::PARAM_DEPRECATED => true), 'preview' => false, 'sectionpreview' => false, 'disabletoc' => false, 'contentformat' => array(ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats()), 'contentmodel' => array(ApiBase::PARAM_TYPE => ContentHandler::getContentModels()));
 }
开发者ID:huatuoorg,项目名称:mediawiki,代码行数:4,代码来源:ApiParse.php

示例5: getAllowedParams

 public function getAllowedParams()
 {
     return array('prop' => array(ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_DFLT => 'ids|timestamp|flags|comment|user', ApiBase::PARAM_TYPE => array('ids', 'flags', 'timestamp', 'user', 'userid', 'size', 'sha1', 'contentmodel', 'comment', 'parsedcomment', 'content', 'tags')), 'limit' => array(ApiBase::PARAM_TYPE => 'limit', ApiBase::PARAM_MIN => 1, ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2), 'startid' => array(ApiBase::PARAM_TYPE => 'integer'), 'endid' => array(ApiBase::PARAM_TYPE => 'integer'), 'start' => array(ApiBase::PARAM_TYPE => 'timestamp'), 'end' => array(ApiBase::PARAM_TYPE => 'timestamp'), 'dir' => array(ApiBase::PARAM_DFLT => 'older', ApiBase::PARAM_TYPE => array('newer', 'older')), 'user' => array(ApiBase::PARAM_TYPE => 'user'), 'excludeuser' => array(ApiBase::PARAM_TYPE => 'user'), 'tag' => null, 'expandtemplates' => false, 'generatexml' => false, 'parse' => false, 'section' => null, 'token' => array(ApiBase::PARAM_TYPE => array_keys($this->getTokenFunctions()), ApiBase::PARAM_ISMULTI => true), 'continue' => null, 'diffto' => null, 'difftotext' => null, 'contentformat' => array(ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(), ApiBase::PARAM_DFLT => null));
 }
开发者ID:mangowi,项目名称:mediawiki,代码行数:4,代码来源:ApiQueryRevisions.php

示例6: getAllowedParams

 public function getAllowedParams()
 {
     return array('title' => array(ApiBase::PARAM_TYPE => 'string', ApiBase::PARAM_REQUIRED => true), 'section' => array(ApiBase::PARAM_TYPE => 'string'), 'sectiontitle' => array(ApiBase::PARAM_TYPE => 'string'), 'text' => array(ApiBase::PARAM_TYPE => 'text', ApiBase::PARAM_REQUIRED => true), 'contentmodel' => array(ApiBase::PARAM_TYPE => ContentHandler::getContentModels(), ApiBase::PARAM_REQUIRED => true), 'contentformat' => array(ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(), ApiBase::PARAM_REQUIRED => true), 'baserevid' => array(ApiBase::PARAM_TYPE => 'integer', ApiBase::PARAM_REQUIRED => true));
 }
开发者ID:natebrunette,项目名称:sphericalcow,代码行数:4,代码来源:ApiStashEdit.php

示例7: getAllowedParams

 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()));
 }
开发者ID:mangowi,项目名称:mediawiki,代码行数:4,代码来源:ApiEditPage.php

示例8: getAllowedParams

 public function getAllowedParams()
 {
     return ['prop' => [ApiBase::PARAM_ISMULTI => true, ApiBase::PARAM_DFLT => 'ids|timestamp|flags|comment|user', ApiBase::PARAM_TYPE => ['ids', 'flags', 'timestamp', 'user', 'userid', 'size', 'sha1', 'contentmodel', 'comment', 'parsedcomment', 'content', 'tags', 'parsetree'], ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-prop', ApiBase::PARAM_HELP_MSG_PER_VALUE => ['ids' => 'apihelp-query+revisions+base-paramvalue-prop-ids', 'flags' => 'apihelp-query+revisions+base-paramvalue-prop-flags', 'timestamp' => 'apihelp-query+revisions+base-paramvalue-prop-timestamp', 'user' => 'apihelp-query+revisions+base-paramvalue-prop-user', 'userid' => 'apihelp-query+revisions+base-paramvalue-prop-userid', 'size' => 'apihelp-query+revisions+base-paramvalue-prop-size', 'sha1' => 'apihelp-query+revisions+base-paramvalue-prop-sha1', 'contentmodel' => 'apihelp-query+revisions+base-paramvalue-prop-contentmodel', 'comment' => 'apihelp-query+revisions+base-paramvalue-prop-comment', 'parsedcomment' => 'apihelp-query+revisions+base-paramvalue-prop-parsedcomment', 'content' => 'apihelp-query+revisions+base-paramvalue-prop-content', 'tags' => 'apihelp-query+revisions+base-paramvalue-prop-tags', 'parsetree' => ['apihelp-query+revisions+base-paramvalue-prop-parsetree', CONTENT_MODEL_WIKITEXT]]], 'limit' => [ApiBase::PARAM_TYPE => 'limit', ApiBase::PARAM_MIN => 1, ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-limit'], 'expandtemplates' => [ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-expandtemplates'], 'generatexml' => [ApiBase::PARAM_DFLT => false, ApiBase::PARAM_DEPRECATED => true, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-generatexml'], 'parse' => [ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-parse'], 'section' => [ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-section'], 'diffto' => [ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-diffto'], 'difftotext' => [ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-difftotext'], 'difftotextpst' => [ApiBase::PARAM_DFLT => false, ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-difftotextpst'], 'contentformat' => [ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(), ApiBase::PARAM_HELP_MSG => 'apihelp-query+revisions+base-param-contentformat']];
 }
开发者ID:claudinec,项目名称:galan-wiki,代码行数:4,代码来源:ApiQueryRevisionsBase.php

示例9: getAllowedParams

 public function getAllowedParams()
 {
     return ['title' => [ApiBase::PARAM_TYPE => 'string', ApiBase::PARAM_REQUIRED => true], 'section' => [ApiBase::PARAM_TYPE => 'string'], 'sectiontitle' => [ApiBase::PARAM_TYPE => 'string'], 'text' => [ApiBase::PARAM_TYPE => 'text', ApiBase::PARAM_DFLT => null], 'stashedtexthash' => [ApiBase::PARAM_TYPE => 'string', ApiBase::PARAM_DFLT => null], 'summary' => [ApiBase::PARAM_TYPE => 'string'], 'contentmodel' => [ApiBase::PARAM_TYPE => ContentHandler::getContentModels(), ApiBase::PARAM_REQUIRED => true], 'contentformat' => [ApiBase::PARAM_TYPE => ContentHandler::getAllContentFormats(), ApiBase::PARAM_REQUIRED => true], 'baserevid' => [ApiBase::PARAM_TYPE => 'integer', ApiBase::PARAM_REQUIRED => true]];
 }
开发者ID:paladox,项目名称:mediawiki,代码行数:4,代码来源:ApiStashEdit.php


注:本文中的ContentHandler::getAllContentFormats方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。