DatabaseRepository
class DatabaseRepository implements PermissionRepository
Class DatabaseRepository
Properties
protected VirtualConnectionInterface | $conn | Connection instance | |
protected string | $table | Table name |
Methods
findByName(string $siteKey, string $name)
Find a registered by type and name
int
array
fetchAncestor(string $siteKey, string $name)
Returns ancestor of item
array
fetchDescendant(string $siteKey, string $name)
Returns descendant of item
void
void
string
getNow()
Now datetime string
createItem(array $attributes)
Create a new registered object instance
Details
at line 52
__construct(VirtualConnectionInterface $conn)
Constructor
at line 65
Permission
findByName(string $siteKey, string $name)
Find a registered by type and name
at line 82
Permission
insert(Permission $item)
Insert register information
at line 104
Permission
update(Permission $item)
Update register information
at line 124
int
delete(Permission $item)
Delete register information
at line 136
array
fetchAncestor(string $siteKey, string $name)
Returns ancestor of item
at line 158
array
fetchDescendant(string $siteKey, string $name)
Returns descendant of item
at line 181
void
foster(Permission $item, string $to)
Parent Changing with descendant
at line 209
void
affiliate(Permission $item, string $to)
affiliated to another registered
at line 227
string
getNow()
Now datetime string
at line 239
protected Permission
createItem(array $attributes)
Create a new registered object instance