PHP Class Newscoop\Entity\User\Staff

Inheritance: extends Newscoop\Entity\User, implements Zend_Acl_Role_Interface
Mostrar archivo Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$groups
$role Newscoop\Entity\Acl\Role

Public Methods

Method 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 method

public __construct ( )

getGroups() public method

Get groups
public getGroups ( ) : array
return array of Newscoop\Entity\User\Group

getParents() public method

Get roles
public getParents ( ) : array
return array

getRoleId() public method

Get role id
public getRoleId ( ) : integer
return integer

hasPermission() public method

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

setRole() public method

Set role
public setRole ( Role $role ) : User
$role Newscoop\Entity\Acl\Role
return Newscoop\Entity\User

Property Details

$groups protected_oe property

protected $groups

$role protected_oe property

protected Role,Newscoop\Entity\Acl $role
return Newscoop\Entity\Acl\Role