|
static | makeMemberList ( $username, $initialDescription) |
| Spawns a new "members" list, using the project creator as initial member.
|
|
static | postMemberList (Title $title, $summary, IContextSource $context) |
| Posts the newly created "members" list on-wiki.
|
|
|
const | FORMAT_WIKI = 'text/x-collabkit' |
|
◆ __construct()
CollaborationListContentHandler::__construct |
( |
| $modelId = 'CollaborationListContent', |
|
|
| $formats = [ CONTENT_FORMAT_JSON, CONTENT_FORMAT_TEXT, self::FORMAT_WIKI ] ) |
- Parameters
-
string | $modelId | |
string[] | $formats | |
◆ canBeUsedOn()
CollaborationListContentHandler::canBeUsedOn |
( |
Title | $title | ) |
|
Can this content handler be used on a given page?
- Parameters
-
- Returns
- bool
◆ getContentClass()
CollaborationListContentHandler::getContentClass |
( |
| ) |
|
|
protected |
◆ isParserCacheSupported()
CollaborationListContentHandler::isParserCacheSupported |
( |
| ) |
|
FIXME is this really true?
- Returns
- bool
◆ makeEmptyContent()
CollaborationListContentHandler::makeEmptyContent |
( |
| ) |
|
◆ makeMemberList()
static CollaborationListContentHandler::makeMemberList |
( |
| $username, |
|
|
| $initialDescription ) |
|
static |
Spawns a new "members" list, using the project creator as initial member.
- Parameters
-
string | $username | Username without "User:" prefix |
string | $initialDescription | The initial description of the list |
- Returns
- CollaborationListContent
◆ makeRedirectContent()
CollaborationListContentHandler::makeRedirectContent |
( |
Title | $destination, |
|
|
| $text = '' ) |
Turns CollaborationListContent 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
◆ postMemberList()
static CollaborationListContentHandler::postMemberList |
( |
Title | $title, |
|
|
| $summary, |
|
|
IContextSource | $context ) |
|
static |
Posts the newly created "members" list on-wiki.
- Parameters
-
Title | $title | |
string | $summary | |
IContextSource | $context | |
- Todo
- rework this to use a generic CollaborationList editor function once it exists
- Returns
- Status
◆ serializeContent()
CollaborationListContentHandler::serializeContent |
( |
Content | $content, |
|
|
| $format = null ) |
◆ supportsDirectApiEditing()
CollaborationListContentHandler::supportsDirectApiEditing |
( |
| ) |
|
◆ supportsRedirects()
CollaborationListContentHandler::supportsRedirects |
( |
| ) |
|
◆ unserializeContent()
CollaborationListContentHandler::unserializeContent |
( |
| $text, |
|
|
| $format = null ) |
Takes JSON string and creates a new CollaborationListContent object.
Validation is intentionally not done at this step, as it is done later.
- Parameters
-
string | $text | |
string | null | $format | |
- Returns
- CollaborationListContent
- Exceptions
-
MWContentSerializationException | |
The documentation for this class was generated from the following file: