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.
Show file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$preferences array The actual settings

Public Methods

Method 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 method

public get ( string $key ) : mixed
$key string
return mixed

getInterfaceLanguage() public method

public getInterfaceLanguage ( ) : string
return string the locale identifier

getPreferences() public method

Get preferences
public getPreferences ( ) : array
return array

set() public method

public set ( string $key, mixed $value ) : void
$key string
$value mixed
return void

setInterfaceLanguage() public method

public setInterfaceLanguage ( string $localeIdentifier ) : void
$localeIdentifier string
return void

setPreferences() public method

public setPreferences ( array $preferences ) : void
$preferences array
return void

Property Details

$preferences protected property

The actual settings
protected array $preferences
return array