PHP Class Gc\User\Role\Model

Inheritance: extends Gc\Db\AbstractTable
Afficher le fichier Open project: gotcms/gotcms Class Usage Examples

Protected Properties

Свойство Type Description
$name string Table name

Méthodes publiques

Méthode 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 méthode

Delete Role
public delete ( ) : boolean
Résultat boolean

fromArray() public static méthode

Initiliaze from array
public static fromArray ( array $array ) : Model
$array array Data
Résultat Model

fromId() public static méthode

Initiliaze from id
public static fromId ( integer $userRoleId ) : Model
$userRoleId integer User role id
Résultat Model

getUserPermissions() public méthode

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

save() public méthode

Save Role
public save ( ) : integer
Résultat integer

Property Details

$name protected_oe property

Table name
protected string $name
Résultat string