Renderer
abstract class Renderer
Properties
protected array | $params | ||
protected string | $savedLocale |
Methods
Create a return a new DOMDocument loaded with given XML
Render an intermediate representation
Render an intermediate representation of plain text
Render an intermediate representation of rich text
Get the value of a parameter
Get the values of all parameters
Set the value of a parameter from the stylesheet
Set the values of several parameters from the stylesheet
Test for the presence of unsupported XML and throw an exception if found
Decode encoded characters from the Supplementary Multilingual Plane
Decode a matched SGML entity
Restore the original locale
Temporarily set the locale to C
Details
at line 31
protected DOMDocument
loadXML(string $xml)
Create a return a new DOMDocument loaded with given XML
at line 58
string
render(string $xml)
Render an intermediate representation
at line 76
protected string
renderPlainText(string $xml)
Render an intermediate representation of plain text
at line 96
abstract protected string
renderRichText(string $xml)
Render an intermediate representation of rich text
at line 104
string
getParameter(string $paramName)
Get the value of a parameter
at line 114
array
getParameters()
Get the values of all parameters
at line 126
void
setParameter(string $paramName, mixed $paramValue)
Set the value of a parameter from the stylesheet
at line 137
void
setParameters(array $params)
Set the values of several parameters from the stylesheet
at line 151
protected void
checkUnsupported(string $xml)
Test for the presence of unsupported XML and throw an exception if found
at line 170
protected string
decodeSMP(string $str)
Decode encoded characters from the Supplementary Multilingual Plane
at line 186
static protected string
decodeEntity(array $m)
Decode a matched SGML entity
at line 194
protected void
restoreLocale()
Restore the original locale
at line 205
protected void
setLocale()
Temporarily set the locale to C