PHP 클래스 Neos\Neos\Service\UserService

The methods getters of this class are accessible via the "context.userInformation" variable in security policies and thus are implicitly considered to be part of the public API. This UserService should be replaced by \Neos\Neos\Domain\Service\UserService in the long run.
파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$defaultLanguageIdentifier string
$userDomainService Neos\Neos\Domain\Service\UserService
$workspaceRepository Neos\ContentRepository\Domain\Repository\WorkspaceRepository

공개 메소드들

메소드 설명
getBackendUser ( ) : User Returns the current backend user
getInterfaceLanguage ( ) : string Returns the interface language the user selected. Will fall back to the default language defined in settings
getPersonalWorkspace ( ) : Workspace Returns the current user's personal workspace or null if no user is logged in
getPersonalWorkspaceName ( ) : string Returns the name of the currently logged in user's personal workspace (even if that might not exist at that time).
getUserPreference ( string $preference ) : mixed Returns the stored preferences of a user
getUserWorkspace ( ) : Workspace Returns the current user's personal workspace or null if no user is logged in.
getUserWorkspaceName ( ) : string Returns the name of the currently logged in user's personal workspace (even if that might not exist at that time).

메소드 상세

getBackendUser() 공개 메소드

Returns the current backend user
public getBackendUser ( ) : User
리턴 Neos\Neos\Domain\Model\User

getInterfaceLanguage() 공개 메소드

Returns the interface language the user selected. Will fall back to the default language defined in settings
public getInterfaceLanguage ( ) : string
리턴 string

getPersonalWorkspace() 공개 메소드

Returns the current user's personal workspace or null if no user is logged in
public getPersonalWorkspace ( ) : Workspace
리턴 Neos\ContentRepository\Domain\Model\Workspace

getPersonalWorkspaceName() 공개 메소드

If no user is logged in this method returns null.
public getPersonalWorkspaceName ( ) : string
리턴 string

getUserPreference() 공개 메소드

Returns the stored preferences of a user
public getUserPreference ( string $preference ) : mixed
$preference string
리턴 mixed

getUserWorkspace() 공개 메소드

Deprecated, use getPersonalWorkspace() instead.
사용 중단: 2.1
public getUserWorkspace ( ) : Workspace
리턴 Neos\ContentRepository\Domain\Model\Workspace

getUserWorkspaceName() 공개 메소드

If no user is logged in this method returns null. Deprecated, use getPersonalWorkspaceName() instead.
사용 중단: 2.1
public getUserWorkspaceName ( ) : string
리턴 string

프로퍼티 상세

$defaultLanguageIdentifier 보호되어 있는 프로퍼티

protected string $defaultLanguageIdentifier
리턴 string

$userDomainService 보호되어 있는 프로퍼티

protected UserService,Neos\Neos\Domain\Service $userDomainService
리턴 Neos\Neos\Domain\Service\UserService

$workspaceRepository 보호되어 있는 프로퍼티

protected WorkspaceRepository,Neos\ContentRepository\Domain\Repository $workspaceRepository
리턴 Neos\ContentRepository\Domain\Repository\WorkspaceRepository