class Taxon implements TaxonInterface

Traits

Methods

__construct()

No description

getTranslation( string $locale = null)

No description

bool
hasTranslation( TranslationInterface $translation)

No description

addTranslation( TranslationInterface $translation)

No description

removeTranslation( TranslationInterface $translation)

No description

setCurrentLocale( string $currentLocale)

No description

setFallbackLocale( string $fallbackLocale)

No description

string
__toString()

No description

mixed
getId()

No description

string
getCode()

No description

setCode( string $code)

No description

bool
isRoot()

No description

getRoot()

No description

getParent()

No description

setParent( TaxonInterface $parent = null)

No description

getParents()

No description

Collection|TaxonInterface[]
getChildren()

No description

bool
hasChild( TaxonInterface $taxon)

No description

bool
hasChildren()

No description

addChild( TaxonInterface $taxon)

No description

removeChild( TaxonInterface $taxon)

No description

string
getName()

No description

setName( string $name)

No description

string
getSlug()

No description

setSlug( string $slug = null)

No description

string
getDescription()

No description

setDescription( string $description)

No description

int
getLeft()

No description

setLeft( int $left)

No description

int
getRight()

No description

setRight( int $right)

No description

int
getLevel()

No description

setLevel( int $level)

No description

int
getPosition()

No description

setPosition( int $position)

No description

Details

at line 75
__construct()

in TranslatableTrait at line 63
TranslationInterface getTranslation( string $locale = null)

Parameters

string $locale

Return Value

TranslationInterface

in TranslatableTrait at line 101
TranslationInterface[] getTranslations()

Return Value

TranslationInterface[]

in TranslatableTrait at line 111
bool hasTranslation( TranslationInterface $translation)

Parameters

TranslationInterface $translation

Return Value

bool

in TranslatableTrait at line 119
addTranslation( TranslationInterface $translation)

Parameters

TranslationInterface $translation

in TranslatableTrait at line 132
removeTranslation( TranslationInterface $translation)

Parameters

TranslationInterface $translation

in TranslatableTrait at line 144
setCurrentLocale( string $currentLocale)

Parameters

string $currentLocale

in TranslatableTrait at line 152
setFallbackLocale( string $fallbackLocale)

Parameters

string $fallbackLocale

at line 85
string __toString()

Return Value

string

at line 93
mixed getId()

Return Value

mixed

at line 101
string getCode()

Return Value

string

at line 109
setCode( string $code)

Parameters

string $code

at line 117
bool isRoot()

Return Value

bool

at line 125
TaxonInterface getRoot()

Return Value

TaxonInterface

at line 133
TaxonInterface getParent()

Return Value

TaxonInterface

at line 141
setParent( TaxonInterface $parent = null)

Parameters

TaxonInterface $parent

at line 152
TaxonInterface[] getParents()

Return Value

TaxonInterface[]

at line 170
Collection|TaxonInterface[] getChildren()

Return Value

Collection|TaxonInterface[]

at line 178
bool hasChild( TaxonInterface $taxon)

Parameters

TaxonInterface $taxon

Return Value

bool

at line 186
bool hasChildren()

Return Value

bool

at line 194
addChild( TaxonInterface $taxon)

Parameters

TaxonInterface $taxon

at line 208
removeChild( TaxonInterface $taxon)

Parameters

TaxonInterface $taxon

at line 220
string getName()

Return Value

string

at line 228
setName( string $name)

Parameters

string $name

at line 236
string getSlug()

Return Value

string

at line 244
setSlug( string $slug = null)

Parameters

string $slug

at line 252
string getDescription()

Return Value

string

at line 260
setDescription( string $description)

Parameters

string $description

at line 268
int getLeft()

Return Value

int

at line 276
setLeft( int $left)

Parameters

int $left

at line 284
int getRight()

Return Value

int

at line 292
setRight( int $right)

Parameters

int $right

at line 300
int getLevel()

Return Value

int

at line 308
setLevel( int $level)

Parameters

int $level

at line 316
int getPosition()

Return Value

int

at line 324
setPosition( int $position)

Parameters

int $position