TemplateModel
class TemplateModel extends BaseModel (View source)
Simple model that represents a template.
Methods
The constructor of a Klaviyo data model.
PHPs magic get method to provide access to our protected attributes.
PHPs magic set method to provide access to our mutable attributes.
Helper method to create the data model.
Helper method to create the data model from a JSON array.
{@inheritdoc}
Retrieve an HTML object from the specified string.
Details
at line line 27
__construct(array $configuration)
The constructor of a Klaviyo data model.
__get($property)
PHPs magic get method to provide access to our protected attributes.
at line line 41
$this
__set($property, $value)
PHPs magic set method to provide access to our mutable attributes.
static KlaviyoModel
create(array $configuration = array())
Helper method to create the data model.
static KlaviyoModel
createFromJson(array $json = '')
Helper method to create the data model from a JSON array.
at line line 90
jsonSerialize()
{@inheritdoc}
at line line 59
$this
setHtml(DOMDocument|string $value)
Set the html value.
at line line 81
DOMDocument
getHtmlObjectFromString(string $content)
Retrieve an HTML object from the specified string.