PHP Class Neos\Neos\Domain\Model\UserPreferences

This is a very naïve, rough and temporary implementation of a User Preferences container. We'll need a better one which understands which options are available and contains some information about possible help texts etc.
Afficher le fichier Open project: neos/neos-development-collection

Protected Properties

Свойство Type Description
$preferences array The actual settings

Méthodes publiques

Méthode Description
get ( string $key ) : mixed
getInterfaceLanguage ( ) : string
getPreferences ( ) : array Get preferences
set ( string $key, mixed $value ) : void
setInterfaceLanguage ( string $localeIdentifier ) : void
setPreferences ( array $preferences ) : void

Method Details

get() public méthode

public get ( string $key ) : mixed
$key string
Résultat mixed

getInterfaceLanguage() public méthode

public getInterfaceLanguage ( ) : string
Résultat string the locale identifier

getPreferences() public méthode

Get preferences
public getPreferences ( ) : array
Résultat array

set() public méthode

public set ( string $key, mixed $value ) : void
$key string
$value mixed
Résultat void

setInterfaceLanguage() public méthode

public setInterfaceLanguage ( string $localeIdentifier ) : void
$localeIdentifier string
Résultat void

setPreferences() public méthode

public setPreferences ( array $preferences ) : void
$preferences array
Résultat void

Property Details

$preferences protected_oe property

The actual settings
protected array $preferences
Résultat array