Class Role
This model describes the roles that can be affected to the users
- Hawk\Model uses Hawk\Utils
-
Hawk\Role
Methods summary
public static
array
|
|
public
boolean
|
#
isRemovable( )
Check if the role is removable. A role is removable if it's not 'Guest' or 'Admin', and not the default role |
public
string
|
Methods inherited from Hawk\Model
__construct()
,
add()
,
addIfNotExists()
,
countElementsByExample()
,
countElementsBySQL()
,
delete()
,
deleteByExample()
,
deleteBySQL()
,
getByExample()
,
getById()
,
getBySQL()
,
getData()
,
getDbInstance()
,
getDbName()
,
getListByExample()
,
getListBySQL()
,
getPrimaryColumn()
,
getTable()
,
save()
,
set()
,
setDbName()
,
setPrimaryColumn()
,
setTable()
,
update()
Methods used from Hawk\Utils
Constants summary
integer |
GUEST_ROLE_ID
The id corresponding to the 'Guest' role |
#
0
|
integer |
ADMIN_ROLE_ID
The id corresponding to the 'Admin' role |
#
1
|
Properties summary
public static
string
|
$tablename
The associated table |
#
"Role"
|