Parsoid
A bidirectional parser between wikitext and HTML5
|
Page content data object. More...
Public Member Functions | |
getRoles () | |
Return the roles available in this page. | |
hasRole (string $role) | |
Determine whether the page contains a role. | |
getModel (string $role) | |
Fetch the content model for a role. | |
getFormat (string $role) | |
Fetch the content format for a role. | |
getContent (string $role) | |
Fetch the content for a role. | |
Page content data object.
|
abstract |
Fetch the content for a role.
string | $role |
InvalidArgumentException | if the role doesn't exist |
Reimplemented in Wikimedia\Parsoid\Mocks\MockPageContent.
|
abstract |
Fetch the content format for a role.
string | $role |
InvalidArgumentException | if the role doesn't exist |
Reimplemented in Wikimedia\Parsoid\Mocks\MockPageContent.
|
abstract |
Fetch the content model for a role.
string | $role |
InvalidArgumentException | if the role doesn't exist |
Reimplemented in Wikimedia\Parsoid\Mocks\MockPageContent.
|
abstract |
Return the roles available in this page.
Reimplemented in Wikimedia\Parsoid\Mocks\MockPageContent.
|
abstract |
Determine whether the page contains a role.
string | $role |
Reimplemented in Wikimedia\Parsoid\Mocks\MockPageContent.