MarkdownFacade
in package
A facade class for the Markdown library.
Tags
Table of Contents
Properties
- $cacheKey : string
- The auto-generated name of the cache key.
- $content : string
- The markdown-format content that we will render.
- $record : ActiveRecord
- The business object that stores the content will be rendered to Markdown.
Methods
- __construct() : mixed
- The constructor.
- getContent() : string
- Getter for the content.
- markdown() : string
- Facade method which will invoke our custom markdown class rather than the standard one.
Properties
$cacheKey
The auto-generated name of the cache key.
private
string
$cacheKey
Tags
$content
The markdown-format content that we will render.
private
string
$content
Tags
$record
The business object that stores the content will be rendered to Markdown.
private
ActiveRecord
$record
= null
Tags
Methods
__construct()
The constructor.
public
__construct(ActiveRecord $record[, bool $useCache = true ]) : mixed
Parameters
- $record : ActiveRecord
- $useCache : bool = true
Tags
getContent()
Getter for the content.
public
getContent() : string
Tags
Return values
stringmarkdown()
Facade method which will invoke our custom markdown class rather than the standard one.
public
markdown(mixed $text) : string
Parameters
- $text : mixed