PHP Class Sulu\Bundle\SecurityBundle\Entity\RoleSettingRepository

Inheritance: extends Sulu\Component\Persistence\Repository\ORM\EntityRepository
显示文件 Open project: sulu/sulu

Public Methods

Method Description
findSetting ( integer $roleId, string $key ) : Sulu\Component\Security\Authentication\RoleSettingInterface | null Returns role-setting object.
findSettingValue ( integer $roleId, string $key ) : mixed | null Returns value of given role-setting.

Method Details

findSetting() public method

Returns role-setting object.
public findSetting ( integer $roleId, string $key ) : Sulu\Component\Security\Authentication\RoleSettingInterface | null
$roleId integer
$key string
return Sulu\Component\Security\Authentication\RoleSettingInterface | null

findSettingValue() public method

Returns value of given role-setting.
public findSettingValue ( integer $roleId, string $key ) : mixed | null
$roleId integer
$key string
return mixed | null