Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1430519
PageContent.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
PageContent.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Wikimedia\Parsoid\Config
;
use
InvalidArgumentException
;
/**
* Page content data object
*/
abstract
class
PageContent
{
/**
* Return the roles available in this page
* @return string[]
*/
abstract
public
function
getRoles
():
array
;
/**
* Determine whether the page contains a role
* @param string $role
* @return bool
*/
abstract
public
function
hasRole
(
string
$role
):
bool
;
/**
* Fetch the content model for a role
* @param string $role
* @return string
* @throws InvalidArgumentException if the role doesn't exist
*/
abstract
public
function
getModel
(
string
$role
):
string
;
/**
* Fetch the content format for a role
* @param string $role
* @return string
* @throws InvalidArgumentException if the role doesn't exist
*/
abstract
public
function
getFormat
(
string
$role
):
string
;
/**
* Fetch the content for a role
* @param string $role
* @return string
* @throws InvalidArgumentException if the role doesn't exist
*/
abstract
public
function
getContent
(
string
$role
):
string
;
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 18:57 (5 h, 45 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
95/d6/713373d2abc8ddc5cc8abb94131b
Default Alt Text
PageContent.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment