SemanticDocumentationArticle
in package
Class to make Hyde documentation pages smarter by dynamically enriching them with semantic HTML.
Table of Contents
Properties
Methods
- hasTorchlight() : bool
- Does the current document use Torchlight?
- make() : static
- Create a new SemanticDocumentationArticle instance, process, and return it.
- renderBody() : HtmlString
- renderFooter() : HtmlString
- renderHeader() : HtmlString
- __construct() : mixed
- addDynamicFooterContent() : static
- addDynamicHeaderContent() : static
- canRenderSourceLink() : bool
- Do we satisfy the requirements to render an edit source button in the supplied position?
- getTokenizedDataArray() : array<string|int, mixed>
- normalizeBody() : void
- process() : static
- renderSourceLink() : string
- tokenize() : static
Properties
$body
protected
string
$body
$footer
protected
string
$footer
= ''
$header
protected
string
$header
= ''
$html
protected
string
$html
$page
protected
DocumentationPage
$page
Methods
hasTorchlight()
Does the current document use Torchlight?
public
hasTorchlight() : bool
Return values
boolmake()
Create a new SemanticDocumentationArticle instance, process, and return it.
public
static make(DocumentationPage $page) : static
Parameters
- $page : DocumentationPage
-
The source page object to process.
Return values
static —new processed instance
renderBody()
public
renderBody() : HtmlString
Return values
HtmlStringrenderFooter()
public
renderFooter() : HtmlString
Return values
HtmlStringrenderHeader()
public
renderHeader() : HtmlString
Return values
HtmlString__construct()
protected
__construct(DocumentationPage $page) : mixed
Parameters
- $page : DocumentationPage
addDynamicFooterContent()
protected
addDynamicFooterContent() : static
Return values
staticaddDynamicHeaderContent()
protected
addDynamicHeaderContent() : static
Return values
staticcanRenderSourceLink()
Do we satisfy the requirements to render an edit source button in the supplied position?
protected
canRenderSourceLink(string $inPosition) : bool
Parameters
- $inPosition : string
Return values
boolgetTokenizedDataArray()
protected
getTokenizedDataArray() : array<string|int, mixed>
Return values
array<string|int, mixed>normalizeBody()
protected
normalizeBody() : void
process()
protected
process() : static
Return values
staticrenderSourceLink()
protected
renderSourceLink() : string
Return values
stringtokenize()
protected
tokenize() : static