PHP Class Neos\Neos\Ui\TypoScript\Helper\ModulesHelper

Inheritance: implements TYPO3\Eel\ProtectedContextAwareInterface
Show file Open project: neos/neos-ui

Protected Properties

Property Type Description
$modules array
$privilegeManager TYPO3\Flow\Security\Authorization\PrivilegeManagerInterface

Public Methods

Method Description
allowsCallOfMethod ( string $methodName ) : boolean
isAllowed ( $moduleName ) : boolean Checks whether the current user has access to a module
isAvailable ( string $moduleName ) : boolean Checks, whether a module is available to the current user
isEnabled ( strin $modulePath ) : boolean Checks whether a module is enabled

Method Details

allowsCallOfMethod() public method

public allowsCallOfMethod ( string $methodName ) : boolean
$methodName string
return boolean

isAllowed() public method

Checks whether the current user has access to a module
public isAllowed ( $moduleName ) : boolean
return boolean

isAvailable() public method

Checks, whether a module is available to the current user
public isAvailable ( string $moduleName ) : boolean
$moduleName string
return boolean

isEnabled() public method

Checks whether a module is enabled
public isEnabled ( strin $modulePath ) : boolean
$modulePath strin
return boolean

Property Details

$modules protected property

protected array $modules
return array

$privilegeManager protected property

protected PrivilegeManagerInterface,TYPO3\Flow\Security\Authorization $privilegeManager
return TYPO3\Flow\Security\Authorization\PrivilegeManagerInterface