PHP Class Gc\User\Role\Model

Inheritance: extends Gc\Db\AbstractTable
显示文件 Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Property Type Description
$name string Table name

Public Methods

Method Description
delete ( ) : boolean Delete Role
fromArray ( array $array ) : Model Initiliaze from array
fromId ( integer $userRoleId ) : Model Initiliaze from id
getUserPermissions ( boolean $forceReload = false ) : array Get User permissions
save ( ) : integer Save Role

Method Details

delete() public method

Delete Role
public delete ( ) : boolean
return boolean

fromArray() public static method

Initiliaze from array
public static fromArray ( array $array ) : Model
$array array Data
return Model

fromId() public static method

Initiliaze from id
public static fromId ( integer $userRoleId ) : Model
$userRoleId integer User role id
return Model

getUserPermissions() public method

Get User permissions
public getUserPermissions ( boolean $forceReload = false ) : array
$forceReload boolean Force reload permissions
return array

save() public method

Save Role
public save ( ) : integer
return integer

Property Details

$name protected_oe property

Table name
protected string $name
return string