SsoProfil class. A Profil is a container for Theme class
| package | sso\lib\dao |
|---|
clearPreview()
createNew(integer $appliId, string $appliName, string $user) : \sso\SsoProfil
integerapplication ID. If NULL, use default theme, recommended theme otherwise
stringapplication name
stringUser ID
\sso\SsoProfilthe new profilegetCurrent(\sso\SsoClient $sso, string $application = NULL) : \sso\SsoProfil
\sso\SsoClientSSO instance
stringapplication, for check again
\sso\SsoProfilprofil to usegetInternalProfile(\sso\SsoClient $sso, integer $appli, string $theme) : NULL | \sso\SsoProfil
\sso\SsoClientSSO instance
integerApplication ID
stringtheme name
NULL\sso\SsoProfilreturn NULL if theme is not an internal themegetThemeObject() : \sso\Theme
\sso\ThemegetThemesList() : array<mixed,string>
array<mixed,string>themes as themeName => themeNameinitProfiles(\sso\Sso $sso)
set SSO_PROFIL key in session
\sso\SsoSSO instance
isInternalTheme(string $theme) : boolean
stringtheme name
booleanTRUE if internal, FALSE otherwiseisPreview() : TRUE
TRUEif we set preview, FALSE otherwiseisThemeValid(string $theme, integer $appliId) : boolean
stringtheme name
integerapplication ID
booleanTRUE if theme exists, or recommended (with appliId not null)setPreview(\sso\SsoProfil $profil)
\sso\SsoProfilThe profile to preview
setThemeObject(\sso\Theme $theme)
\sso\Theme
$appliId : integer
| magic | |
|---|---|
| property |
$enabled : boolean
| magic | |
|---|---|
| property |
$id : integer
| magic | |
|---|---|
| property |
$path : string
NULL$theme : string
| magic | |
|---|---|
| property |
$userId : string
| magic | |
|---|---|
| property |
$internalProfiles : array<mixed,string>
array(self::RECOMMENDED_PROFILE)DEFAULT_THEME = 'menu'
PREVIEW_KEY = 'SSO_PREVIEW'
RECOMMENDED_PROFILE = 'recommended'