\Charcoal\CmsTag

CMS Tag

Summary

Methods
Properties
Constants
__construct()
loadCategoryItems()
name()
color()
setName()
setColor()
No public properties found
No constants found
No protected methods found
$name
$color
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : \Charcoal\Translator\Translation|string|null

The tag's name.

Type

\Charcoal\Translator\Translation|string|null

$color

$color : string

The tag's color.

Type

string

Methods

__construct()

__construct(array  $data = null) 

Parameters

array $data

The object's data options.

loadCategoryItems()

loadCategoryItems() : void

Throws

\Exception

If function is called.

name()

name() : \Charcoal\Translator\Translation|string|null

The tag's name.

Returns

\Charcoal\Translator\Translation|string|null

color()

color() : mixed

The tag's color.

Returns

mixed

setName()

setName(mixed  $name) : self

Parameters

mixed $name

The name of the tag.

Returns

self

setColor()

setColor(string  $color) : self

Parameters

string $color

The color in HEX format as a string.

Returns

self