interface PermissionRepository

Interface PermissionRepository

Methods

findByName(string $siteKey, string $name)

Find a registered by type and name

insert(Permission $item)

Insert register information

update(Permission $item)

Update register information

int
delete(Permission $item)

Delete register information

array
fetchAncestor(string $siteKey, string $name)

Returns ancestor of item

array
fetchDescendant(string $siteKey, string $name)

Returns descendant of item

void
foster(Permission $item, string $to)

Parent Changing with descendant

void
affiliate(Permission $item, string $to)

affiliated to another registered

Details

at line 36
Permission findByName(string $siteKey, string $name)

Find a registered by type and name

Parameters

string $siteKey site key
string $name target name

Return Value

Permission

at line 44
Permission insert(Permission $item)

Insert register information

Parameters

Permission $item permission instance

Return Value

Permission

at line 52
Permission update(Permission $item)

Update register information

Parameters

Permission $item permission instance

Return Value

Permission

at line 60
int delete(Permission $item)

Delete register information

Parameters

Permission $item permission instance

Return Value

int affecting statement

at line 69
array fetchAncestor(string $siteKey, string $name)

Returns ancestor of item

Parameters

string $siteKey site key
string $name target name

Return Value

array

at line 78
array fetchDescendant(string $siteKey, string $name)

Returns descendant of item

Parameters

string $siteKey site key
string $name target name

Return Value

array

at line 87
void foster(Permission $item, string $to)

Parent Changing with descendant

Parameters

Permission $item permission instance
string $to parent name

Return Value

void

at line 96
void affiliate(Permission $item, string $to)

affiliated to another registered

Parameters

Permission $item permission instance
string $to parent name

Return Value

void