Ntb\RestAPI\HtmlSerializer
Serializer for html.
- Author: Christian Blank <c.blank@notthatbad.net>
Synopsis
class HtmlSerializer
extends ViewableData
implements
IRestSerializer
{
- // members
- private static boolean $is_active = true;
- private string $contentType = "text/html";
- // methods
- public string serialize()
- public void contentType()
- private void recursive()
- public boolean active()
Hierarchy
Members
private
- $contentType
—
string
The content type - $is_active
Methods
private
public
- active() — Indicates if the serializer is active.
- contentType()
- serialize() — The given data will be serialized into an html string using a Silverstripe template.