PHP Class Newscoop\Entity\User\Staff

Inheritance: extends Newscoop\Entity\User, implements Zend_Acl_Role_Interface
Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Свойство Type Description
$groups
$role Newscoop\Entity\Acl\Role

Méthodes publiques

Méthode Description
__construct ( )
getGroups ( ) : array Get groups
getParents ( ) : array Get roles
getRoleId ( ) : integer Get role id
hasPermission ( string $permission, $resource = null, $action = null ) : boolean Check permissions
setRole ( Role $role ) : User Set role

Method Details

__construct() public méthode

public __construct ( )

getGroups() public méthode

Get groups
public getGroups ( ) : array
Résultat array of Newscoop\Entity\User\Group

getParents() public méthode

Get roles
public getParents ( ) : array
Résultat array

getRoleId() public méthode

Get role id
public getRoleId ( ) : integer
Résultat integer

hasPermission() public méthode

Check permissions
public hasPermission ( string $permission, $resource = null, $action = null ) : boolean
$permission string
Résultat boolean

setRole() public méthode

Set role
public setRole ( Role $role ) : User
$role Newscoop\Entity\Acl\Role
Résultat Newscoop\Entity\User

Property Details

$groups protected_oe property

protected $groups

$role protected_oe property

protected Role,Newscoop\Entity\Acl $role
Résultat Newscoop\Entity\Acl\Role