PHP 클래스 Backend\Modules\Groups\Engine\Model

파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
addActionPermissions ( array $actionPermissions ) Add action permissions
addModulePermissions ( array $modulePermissions ) Add module permissions
alreadyExists ( string $name ) : boolean Check if a group already exists
delete ( integer $id ) Delete a group
deleteActionPermissions ( array $actionPermissions ) Delete action permissions
deleteModulePermissions ( array $modulePermissions ) Delete module permissions
deleteMultipleGroups ( integer $userId ) Delete a user's multiple groups
exists ( integer $id ) : boolean Check if a group already exists
existsActionPermission ( array $permission ) : boolean Check if a action permission exists
existsModulePermission ( array $permission ) : boolean Check if a module permission exists
get ( integer $id ) : array Get a group
getActionPermissions ( integer $id ) : array Get group action permissions
getAll ( ) : array Get all groups
getGroupsByUser ( integer $id ) : array Get all groups of one user
getModulePermissions ( integer $id ) : array Get group module permissions
getSetting ( integer $groupId, string $name ) : array Get a group setting
getUsers ( integer $groupId ) : array Get all users in a group
insert ( array $group, array $setting ) Insert a group and a setting
insertMultipleGroups ( integer $userId, array $groups ) Insert a user's multiple groups
insertSetting ( array $setting ) : integer Insert a group setting
isUserInGroup ( integer $userId, integer $groupId ) : boolean Check if a certain user is in a certain group
update ( array $group, array $setting ) Update a group
updateSetting ( array $setting ) Update a group setting

메소드 상세

addActionPermissions() 공개 정적인 메소드

Add action permissions
public static addActionPermissions ( array $actionPermissions )
$actionPermissions array

addModulePermissions() 공개 정적인 메소드

Add module permissions
public static addModulePermissions ( array $modulePermissions )
$modulePermissions array

alreadyExists() 공개 정적인 메소드

Check if a group already exists
public static alreadyExists ( string $name ) : boolean
$name string
리턴 boolean

delete() 공개 정적인 메소드

Delete a group
public static delete ( integer $id )
$id integer The id of the group to delete.

deleteActionPermissions() 공개 정적인 메소드

Delete action permissions
public static deleteActionPermissions ( array $actionPermissions )
$actionPermissions array The action permissions to delete.

deleteModulePermissions() 공개 정적인 메소드

Delete module permissions
public static deleteModulePermissions ( array $modulePermissions )
$modulePermissions array The module permissions to delete.

deleteMultipleGroups() 공개 정적인 메소드

Delete a user's multiple groups
public static deleteMultipleGroups ( integer $userId )
$userId integer The id of the user.

exists() 공개 정적인 메소드

Check if a group already exists
public static exists ( integer $id ) : boolean
$id integer The id to check upon.
리턴 boolean

existsActionPermission() 공개 정적인 메소드

Check if a action permission exists
public static existsActionPermission ( array $permission ) : boolean
$permission array The permission to check upon.
리턴 boolean

existsModulePermission() 공개 정적인 메소드

Check if a module permission exists
public static existsModulePermission ( array $permission ) : boolean
$permission array The permission to check upon.
리턴 boolean

get() 공개 정적인 메소드

Get a group
public static get ( integer $id ) : array
$id integer The id of the group to fetch.
리턴 array

getActionPermissions() 공개 정적인 메소드

Get group action permissions
public static getActionPermissions ( integer $id ) : array
$id integer The id of the group.
리턴 array

getAll() 공개 정적인 메소드

Get all groups
public static getAll ( ) : array
리턴 array

getGroupsByUser() 공개 정적인 메소드

Get all groups of one user
public static getGroupsByUser ( integer $id ) : array
$id integer
리턴 array

getModulePermissions() 공개 정적인 메소드

Get group module permissions
public static getModulePermissions ( integer $id ) : array
$id integer The id of the group.
리턴 array

getSetting() 공개 정적인 메소드

Get a group setting
public static getSetting ( integer $groupId, string $name ) : array
$groupId integer The id of the group of the setting.
$name string The name of the setting to fetch.
리턴 array

getUsers() 공개 정적인 메소드

Get all users in a group
public static getUsers ( integer $groupId ) : array
$groupId integer The id of the group.
리턴 array

insert() 공개 정적인 메소드

Insert a group and a setting
public static insert ( array $group, array $setting )
$group array The group to insert.
$setting array The setting to insert.

insertMultipleGroups() 공개 정적인 메소드

Insert a user's multiple groups
public static insertMultipleGroups ( integer $userId, array $groups )
$userId integer The id of the user.
$groups array The groups.

insertSetting() 공개 정적인 메소드

Insert a group setting
public static insertSetting ( array $setting ) : integer
$setting array
리턴 integer

isUserInGroup() 공개 정적인 메소드

Check if a certain user is in a certain group
public static isUserInGroup ( integer $userId, integer $groupId ) : boolean
$userId integer The user id
$groupId integer The group id
리턴 boolean

update() 공개 정적인 메소드

Update a group
public static update ( array $group, array $setting )
$group array The group to update.
$setting array The setting to update.

updateSetting() 공개 정적인 메소드

Update a group setting
public static updateSetting ( array $setting )
$setting array The setting to update.