PHP Class Newscoop\Entity\Acl\Rule

Inheritance: implements Resource\Acl\RuleInterface
Show file Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$action string
$id integer
$resource string
$role Newscoop\Entity\Acl\Role
$type string
$types array

Public Methods

Method Description
getAction ( ) : string Get action
getId ( ) : integer Get id
getResource ( ) : string | null Get resource
getRoleId ( ) : integer Get role id
getType ( ) : string Get type
setAction ( string $action ) : Newscoop\Entity\Acl\Rule Set action
setResource ( string $resource ) : Newscoop\Entity\Acl\Rule Set resource
setRole ( Role $role ) : Newscoop\Entity\Acl\Rule Set role
setType ( string $type ) : Newscoop\Entity\Acl\Rule Set type

Method Details

getAction() public method

Get action
public getAction ( ) : string
return string

getId() public method

Get id
public getId ( ) : integer
return integer

getResource() public method

Get resource
public getResource ( ) : string | null
return string | null

getRoleId() public method

Get role id
public getRoleId ( ) : integer
return integer

getType() public method

Get type
public getType ( ) : string
return string

setAction() public method

Set action
public setAction ( string $action ) : Newscoop\Entity\Acl\Rule
$action string
return Newscoop\Entity\Acl\Rule

setResource() public method

Set resource
public setResource ( string $resource ) : Newscoop\Entity\Acl\Rule
$resource string
return Newscoop\Entity\Acl\Rule

setRole() public method

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

setType() public method

Set type
public setType ( string $type ) : Newscoop\Entity\Acl\Rule
$type string
return Newscoop\Entity\Acl\Rule

Property Details

$action protected property

protected string $action
return string

$id protected property

protected int $id
return integer

$resource protected property

protected string $resource
return string

$role protected property

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

$type protected property

protected string $type
return string

$types protected property

protected array $types
return array