ResourceTypeRepositoryInterface
Table of Contents
Methods
-
getById()
: ResourceType|null
-
getByModuleIdAndCode()
: ResourceType|null
-
getList()
: ResourceTypeCollection
-
isExists()
: bool
-
remove()
: void
-
save()
: int
getById()
public
getById(int $id[, int|null $userId = null ]) : ResourceType|null
Parameters
-
$id
: int
-
-
$userId
: int|null
= null
-
getByModuleIdAndCode()
public
getByModuleIdAndCode(string $moduleId, string $code) : ResourceType|null
Parameters
-
$moduleId
: string
-
-
$code
: string
-
getList()
public
getList([int|null $limit = null ][, int|null $offset = null ][, ConditionTree|null $filter = null ][, array<string|int, mixed>|null $sort = null ][, int|null $userId = null ]) : ResourceTypeCollection
Parameters
-
$limit
: int|null
= null
-
-
$offset
: int|null
= null
-
-
$filter
: ConditionTree|null
= null
-
-
$sort
: array<string|int, mixed>|null
= null
-
-
$userId
: int|null
= null
-
isExists()
public
isExists(int $id) : bool
Parameters
-
$id
: int
-
remove()
public
remove(int $resourceTypeId) : void
Parameters
-
$resourceTypeId
: int
-
save()
public
save(ResourceType $resourceType) : int
Parameters
-
$resourceType
: ResourceType
-