|
static | edit (Title $title, $displayName, $image, $colour, $introduction, $footer, $content, $summary, IContextSource $context) |
| Edit a Collaboration Hub via the edit API.
|
|
static | onParserOutputPostCacheTransform ( $parserOutput, &$text, &$options) |
| Post-parse out our button markers for uncachable permissions-dependent actions and stuff.
|
|
|
const | FORMAT_WIKI = 'text/x-collabkit' |
|
◆ __construct()
CollaborationHubContentHandler::__construct |
( |
| $modelId = 'CollaborationHubContent', |
|
|
| $formats = [ CONTENT_FORMAT_JSON, CONTENT_FORMAT_TEXT, self::FORMAT_WIKI ] ) |
- Parameters
-
string | $modelId | |
string[] | $formats | |
◆ canBeUsedOn()
CollaborationHubContentHandler::canBeUsedOn |
( |
Title | $title | ) |
|
◆ edit()
static CollaborationHubContentHandler::edit |
( |
Title | $title, |
|
|
| $displayName, |
|
|
| $image, |
|
|
| $colour, |
|
|
| $introduction, |
|
|
| $footer, |
|
|
| $content, |
|
|
| $summary, |
|
|
IContextSource | $context ) |
|
static |
Edit a Collaboration Hub via the edit API.
- Parameters
-
Title | $title | |
string | $displayName | |
string | $image | |
string | $colour | |
string | $introduction | |
string | $footer | |
array | $content | |
string | $summary | Message key for edit summary |
IContextSource | $context | The calling context |
- Returns
- Status
◆ getContentClass()
CollaborationHubContentHandler::getContentClass |
( |
| ) |
|
|
protected |
◆ isParserCacheSupported()
CollaborationHubContentHandler::isParserCacheSupported |
( |
| ) |
|
◆ makeEmptyContent()
CollaborationHubContentHandler::makeEmptyContent |
( |
| ) |
|
◆ makeRedirectContent()
CollaborationHubContentHandler::makeRedirectContent |
( |
Title | $destination, |
|
|
| $text = '' ) |
Turns CollaborationHubContent page into redirect.
Note that wikitext redirects are created, as generally, this content model is used in namespaces that support wikitext, and wikitext redirects are expected.
- Parameters
-
Title | $destination | The page to redirect to |
string | $text | Text to include in the redirect. |
- Returns
- Content
◆ onParserOutputPostCacheTransform()
static CollaborationHubContentHandler::onParserOutputPostCacheTransform |
( |
| $parserOutput, |
|
|
& | $text, |
|
|
& | $options ) |
|
static |
Post-parse out our button markers for uncachable permissions-dependent actions and stuff.
- Parameters
-
ParserOutput | $parserOutput | |
string | &$text | The text being transformed, before core transformations are done |
array | &$options | The options array being used for the transformation. |
- Returns
- bool
◆ serializeContent()
CollaborationHubContentHandler::serializeContent |
( |
Content | $content, |
|
|
| $format = null ) |
◆ supportsRedirects()
CollaborationHubContentHandler::supportsRedirects |
( |
| ) |
|
◆ unserializeContent()
CollaborationHubContentHandler::unserializeContent |
( |
| $text, |
|
|
| $format = null ) |
Constructs a CollaborationHubContent object.
Does not perform any validation, as that is done at a later step (to allow for outputting of invalid content for debugging purposes.)
- Parameters
-
string | $text | |
string | null | $format | |
- Returns
- CollaborationHubContent
The documentation for this class was generated from the following file: