class Template implements JsonSerializable (View source)

Traits

Properties

protected $package from  PackageTrait
protected $id
protected $icon
protected $name
protected $handle
protected $categories
protected $fields
protected $tags

Methods

mixed
getPackage()

No description

setPackage(mixed $package)

No description

getPackageID()

No description

getPackageHandle()

No description

__construct()

Template constructor.

int|null
getId()

No description

string
getHandle()

No description

setHandle(string $handle)

No description

string
getIcon()

No description

setIcon(string $icon)

No description

string
getName()

No description

string
getDisplayName()

No description

setName(string $name)

No description

mixed
getCategories()

No description

void
setCategories(mixed $categories)

No description

getFields()

No description

Field[]
getRequiredFields()

Goes through all TemplateField objects for this template, checks to see if they're required and if they are returns the Field object.

void
setFields(mixed $fields)

No description

ArrayCollection
getTags()

No description

Image|string|null
getTemplateIconImage(bool $asTag = true)

No description

void
export(SimpleXMLElement $node)

No description

jsonSerialize()

No description

Details

mixed getPackage()

No description

Return Value

mixed

setPackage(mixed $package)

No description

Parameters

mixed $package

getPackageID()

No description

getPackageHandle()

No description

__construct()

Template constructor.

int|null getId()

No description

Return Value

int|null

string getHandle()

No description

Return Value

string

Template setHandle(string $handle)

No description

Parameters

string $handle

Return Value

Template

string getIcon()

No description

Return Value

string

Template setIcon(string $icon)

No description

Parameters

string $icon

Return Value

Template

string getName()

No description

Return Value

string

string getDisplayName()

No description

Return Value

string

Template setName(string $name)

No description

Parameters

string $name

Return Value

Template

mixed getCategories()

No description

Return Value

mixed

void setCategories(mixed $categories)

No description

Parameters

mixed $categories

Return Value

void

TemplateField[] getFields()

No description

Return Value

TemplateField[]

Field[] getRequiredFields()

Goes through all TemplateField objects for this template, checks to see if they're required and if they are returns the Field object.

Return Value

Field[]

void setFields(mixed $fields)

No description

Parameters

mixed $fields

Return Value

void

ArrayCollection getTags()

No description

Return Value

ArrayCollection

Image|string|null getTemplateIconImage(bool $asTag = true)

No description

Parameters

bool $asTag

Return Value

Image|string|null

void export(SimpleXMLElement $node)

No description

Parameters

SimpleXMLElement $node

Return Value

void

jsonSerialize()

No description