ICollection
in
Tags
Table of Contents
Methods
- addResource() : void
- Adds a resource to a collection
- canAccess() : bool
- Can a user/guest access the collection
- getId() : int
- getName() : string
- getResources() : array<string|int, IResource>
- removeResource() : void
- Removes a resource from a collection
- setName() : void
Methods
addResource()
Adds a resource to a collection
public
addResource(IResource $resource) : void
Parameters
- $resource : IResource
Tags
canAccess()
Can a user/guest access the collection
public
canAccess(IUser|null $user) : bool
Parameters
- $user : IUser|null
Tags
Return values
boolgetId()
public
getId() : int
Tags
Return values
intgetName()
public
getName() : string
Tags
Return values
stringgetResources()
public
getResources() : array<string|int, IResource>
Tags
Return values
array<string|int, IResource>removeResource()
Removes a resource from a collection
public
removeResource(IResource $resource) : void
Parameters
- $resource : IResource
Tags
setName()
public
setName(string $name) : void
Parameters
- $name : string