PHP Interface Xpressengine\Permission\PermissionRepository

Author: XE Developers ([email protected])
Exibir arquivo Open project: xpressengine/xpressengine Interface Usage Examples

Public Methods

Method Description
affiliate ( Permission $item, string $to ) : void affiliated to another registered
delete ( Permission $item ) : integer Delete register information
fetchAncestor ( string $siteKey, string $name ) : array Returns ancestor of item
fetchDescendant ( string $siteKey, string $name ) : array Returns descendant of item
findByName ( string $siteKey, string $name ) : Permission Find a registered by type and name
foster ( Permission $item, string $to ) : void Parent Changing with descendant
insert ( Permission $item ) : Permission Insert register information
update ( Permission $item ) : Permission Update register information

Method Details

affiliate() public method

affiliated to another registered
public affiliate ( Permission $item, string $to ) : void
$item Permission permission instance
$to string parent name
return void

delete() public method

Delete register information
public delete ( Permission $item ) : integer
$item Permission permission instance
return integer affecting statement

fetchAncestor() public method

Returns ancestor of item
public fetchAncestor ( string $siteKey, string $name ) : array
$siteKey string site key
$name string target name
return array

fetchDescendant() public method

Returns descendant of item
public fetchDescendant ( string $siteKey, string $name ) : array
$siteKey string site key
$name string target name
return array

findByName() public method

Find a registered by type and name
public findByName ( string $siteKey, string $name ) : Permission
$siteKey string site key
$name string target name
return Permission

foster() public method

Parent Changing with descendant
public foster ( Permission $item, string $to ) : void
$item Permission permission instance
$to string parent name
return void

insert() public method

Insert register information
public insert ( Permission $item ) : Permission
$item Permission permission instance
return Permission

update() public method

Update register information
public update ( Permission $item ) : Permission
$item Permission permission instance
return Permission