Get a ResourceLoader object associated with this OutputPage. Get the URL to redirect to, or an empty string if not redirect URL set. Get the list of style-only modules to load on this page. GetModuleStyles ( $filter=false, $position=null) Get the list of modules to include on this page. GetModules ( $filter=false, $position=null, $param='mModules', $type=RL\Module::TYPE_COMBINED) Get an array containing the variables to be set in mw.config in JavaScript. Get the javascript config vars to include on this page. Get the indicators associated with this page. Get the current index policy for the page as a string. Get the X-Frame-Options header value (without the name part), or false if there isn't one. Get the current follow policy for the page as a string. Get (and set if not yet set) the CSP nonce. Get the list of category links, in a 2-D array with the following format: $arr = $link, where $type is either "normal" or "hidden" (for hidden categories) and $link a HTML fragment with a link to the category page. Get the list of category names this page belongs to. Returns the URL to be used for the > if one is set. Get the list of cookie names that will influence the cache. Return whether the output will contain only the body of the article. Show what level of JavaScript / CSS untrustworthiness is allowed on this page. More.įorcibly hide the new section link? More.įormatPermissionsErrorMessage (array $errors, $action=null)įormatPermissionStatus ( PermissionStatus $status, string $action=null)įormat permission $status obtained from Authority for display. More.Īdd ResourceLoader module styles for OOUI and set up the PHP implementation of it for use with MediaWiki and this OutputPage instance. More.ĭo not allow scripts which can be modified by wiki users to load on this page only allow scripts bundled with, or generated by, the software. More.įorce the page to send nocache headers. Whether the output might become publicly cached. Set the expectation that cache control will not change after this point. More.ĬheckLastModified tells the client to use the client-cached page if possible. More.ĪddWikiTextAsInterface ( $text, $linestart= true, PageReference $title=null)Ĭonvert wikitext in the user interface language to HTML and add it to the buffer. More.ĪddWikiTextAsContent ( $text, $linestart= true, PageReference $title=null)Ĭonvert wikitext in the page content language to HTML and add it to the buffer. More.Īdd a wikitext-formatted message to the output. More.ĪddVaryHeader ( $header, array $option=null)Īdd an HTTP header that will influence on the cache. More.Īdd the output of a QuickTemplate to the output buffer. More.ĪddStyle ( $style, $media='', $condition='', $dir='')Īdd a local or specified stylesheet, with the given media options. More.Īdd a JavaScript file to be loaded as on this page. More.Īdd raw HTML to the list of scripts (including \ tag, etc.) Internal use only. More.ĪddReturnTo ( $title, array $query=, $text=null, $options=)Īdd a "return to" link pointing to a specified title. More.ĪddParserOutputText ( ParserOutput $parserOutput, $poOptions=)Īdd the HTML associated with a ParserOutput object, without any metadata. More.ĪddParserOutputMetadata ( ParserOutput $parserOutput)Īdd all metadata associated with a ParserOutput object, but without the actual HTML. More.ĪddParserOutputContent ( ParserOutput $parserOutput, $poOptions=)Īdd the HTML and enhancements for it (like ResourceLoader modules) associated with a ParserOutput object, without any other metadata. More.ĪddParserOutput ( ParserOutput $parserOutput, $poOptions=)Īdd everything from a ParserOutput object. Load the styles of one or more style-only ResourceLoader modules on this page. Load one or more ResourceLoader modules on this page. More.Īdd a new "" tag To add an http-equiv meta tag, precede the name with "http:". More.Īdd one or more variables to be set in mw.config in JavaScript. More.ĪddInlineStyle ( $style_css, $flip='noflip')Īdds inline CSS styles Internal use only. More.Īdd a self-contained script tag with the given contents Internal use only. More.ĪddHelpLink ( $to, $overrideBaseUrl=false)Īdds help link with an icon via page indicators. More.Īdd one or more head items to the output. More.Īdd or replace a head item to the output. Shortcut for adding an Html::element via addHTML. More.ĪddElement ( $element, array $attribs=, $contents='') More.ĪddContentOverrideCallback (callable $callback)Īdd a callback for mapping from a Title to a Content object, for things like page preview. More.ĪddContentOverride ( $target, Content $content)įorce the given Content object for the given page, for things like page preview. More.Īdd an array of categories, with names in the keys. Get TTL in and pass it to lowerCdnMaxage() More.ĪddBacklinkSubtitle ( PageReference $title, $query=)Īdd a subtitle containing a backlink to a page. AdaptCdnTTL ( $mtime, $minTTL=0, $maxTTL=0)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |