class PageTemplate implements RenderableTemplateInterface (View source)

Handles joining a page object to template objects. Every time a new page version is approved we rebuild this association against the page (much like the PagePath object). This doesn't join directly to the HTML of template, but to the template object only.

A separate object or record on the page level will take care of what templates are selected for a page. That way we don't have to rebuild those associations on every page version approval.

Traits

Properties

protected $id
protected $cID
protected $template
protected $data

Methods

getData()

No description

mixed
getId()

No description

mixed
getPageID()

No description

void
setPageID(mixed $cID)

No description

getTemplate()

No description

void
setTemplate(Template $template)

No description

getRawData()

No description

void
setData(mixed $data)

No description

jsonSerialize()

No description

Details

Collection getData()

No description

Return Value

Collection

mixed getId()

No description

Return Value

mixed

mixed getPageID()

No description

Return Value

mixed

void setPageID(mixed $cID)

No description

Parameters

mixed $cID

Return Value

void

Template getTemplate()

No description

Return Value

Template

void setTemplate(Template $template)

No description

Parameters

Template $template

Return Value

void

getRawData()

No description

void setData(mixed $data)

No description

Parameters

mixed $data

Return Value

void

jsonSerialize()

No description