BmobRole Class Reference

Inherits from BmobObject : NSObject
Declared in BmobRole.h

  name

角色名

@property (nonatomic, copy) NSString *name

Declared In

BmobRole.h

+ query

查询Role表

+ (BmobQuery *)query

Return Value

BmobQuery查询对象

Declared In

BmobRole.h

– initWithName:

创建BmobRole对象

- (instancetype)initWithName:(NSString *)name

Parameters

name

角色名

Return Value

BmobRole对象

Declared In

BmobRole.h

– initWithName:acl:

创建BmobRole对象

- (instancetype)initWithName:(NSString *)name acl:(BmobACL *)acl

Parameters

name

角色名

acl

ACL权限

Return Value

BmobRole对象

Declared In

BmobRole.h

+ roleWithName:

创建BmobRole对象

+ (instancetype)roleWithName:(NSString *)name

Parameters

name

角色名

Return Value

BmobRole对象

Declared In

BmobRole.h

+ roleWithName:acl:

创建BmobRole对象

+ (instancetype)roleWithName:(NSString *)name acl:(BmobACL *)acl

Parameters

name

角色名

acl

ACL权限

Return Value

BmobRole对象

Declared In

BmobRole.h

– addUsersRelation:

角色表里面的users列

- (void)addUsersRelation:(BmobRelation *)relation

Parameters

relation

关联user表的关联对象

Declared In

BmobRole.h

– addRolesRelation:

角色表里面的roles列

- (void)addRolesRelation:(BmobRelation *)relation

Parameters

relation

关联roles表的关联对象

Declared In

BmobRole.h