Parent class for all themes

package sso\lib\dto

 Methods

Decode options for flatten them and use simple replacement in css pattern file

decodeOptions(array<mixed,mixed> $options) : array<mixed,mixed>

Parameters

$options

array<mixed,mixed>

fieldName => value

Returns

array<mixed,mixed>fieldName => value

Retrieve theme description

description() : string

Returns

stringdescription

Retrieve the CSS content of the theme

displayCss() : string

Returns

stringCSS content

Retrieve Theme object from SsoProfil

get(\sso\SsoProfil $profil) : \sso\Theme
Static

Parameters

$profil

\sso\SsoProfil

The profile

Exceptions

\sso\BusinessException if theme is unknown

Returns

\sso\Themethe theme object in profile

Retrieve CSS file name

getCssFile() : string

Returns

stringCSS file name

Retrieve all theme options

getOptions() : array<mixed,mixed>

Returns

array<mixed,mixed>fieldName => value

Set a theme in a profile

set(\sso\SsoProfil $profil, \sso\Theme $theme) 
Static

Parameters

$profil

\sso\SsoProfil

The profile

$theme

\sso\Theme

The theme

 Properties

 

$id

$id : string

Default

magic
property