class Theme extends AbstractEntity (View source)

Themes describe a database entity to store front-end and back-end controllers.

Properties

protected $id from AbstractEntity
protected $staticTheme

Methods

int
getId()

No description

setId(int $id)

No description

boolean
isAvailable()

No description

$this
setAvailable(boolean $available)

No description

boolean
isStaticTheme()

Static means that your theme is not suitable for responding from nodes urls but only static routes.

$this
setStaticTheme(boolean $newstaticTheme)

No description

string
getClassName()

No description

$this
setClassName(string $className)

No description

array
getInformations()

Get theme informations in an array.

string
getHostname()

No description

$this
setHostname(string $hostname)

No description

string
getRoutePrefix()

No description

$this
setRoutePrefix(string $routePrefix)

No description

boolean
isBackendTheme()

No description

$this
setBackendTheme(boolean $backendTheme)

No description

setHomeNode(Node $homeNode = null)

No description

getHomeNode()

No description

setRoot(Node $root = null)

No description

getRoot()

No description

Details

int getId()

Return Value

int

AbstractEntity setId(int $id)

Parameters

int $id

Return Value

AbstractEntity

boolean isAvailable()

Return Value

boolean

$this setAvailable(boolean $available)

Parameters

boolean $available

Return Value

$this

boolean isStaticTheme()

Static means that your theme is not suitable for responding from nodes urls but only static routes.

Return Value

boolean

$this setStaticTheme(boolean $newstaticTheme)

Parameters

boolean $newstaticTheme

Return Value

$this

string getClassName()

Return Value

string

$this setClassName(string $className)

Parameters

string $className

Return Value

$this

array getInformations()

Get theme informations in an array.

  • name
  • author
  • copyright
  • dir

Return Value

array

string getHostname()

Return Value

string

$this setHostname(string $hostname)

Parameters

string $hostname

Return Value

$this

string getRoutePrefix()

Return Value

string

$this setRoutePrefix(string $routePrefix)

Parameters

string $routePrefix

Return Value

$this

boolean isBackendTheme()

Return Value

boolean

$this setBackendTheme(boolean $backendTheme)

Parameters

boolean $backendTheme

Return Value

$this

Node setHomeNode(Node $homeNode = null)

Parameters

Node $homeNode

Return Value

Node

Node getHomeNode()

Return Value

Node

Node setRoot(Node $root = null)

Parameters

Node $root

Return Value

Node

Node getRoot()

Return Value

Node