Handler
Handler.php
:
9
Interface
Methods¶
assign()
¶
Handler.php
:
81
Assigns section to single content object.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $sectionId | mixed | - | - |
| $contentId | mixed | - | - |
assignmentsCount()
¶
Handler.php
:
90
Number of content assignments a Section has.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $sectionId | mixed | - | - |
Return values
int
countRoleAssignmentsUsingSection()
¶
Handler.php
:
108
Counts the number of role assignments using section with $sectionId in their limitations.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $sectionId | int | - | - |
Return values
int
create()
¶
Handler.php
:
22
Create a new section.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $name | string | - | - |
| $identifier | string | - | - |
Return values
delete()
¶
Handler.php
:
73
Delete a section.
|
|
|
Might throw an exception if the section is still associated with some content objects. Make sure that no content objects are associated with the section any more before calling this method.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $id | mixed | - | - |
load()
¶
Handler.php
:
44
Get section data.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $id | mixed | - | - |
Return values
Tags
loadAll()
¶
Handler.php
:
51
Get all section data.
|
|
|
Return values
array<string|int, Section>
loadByIdentifier()
¶
Handler.php
:
62
Get section data by identifier.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $identifier | string | - | - |
Return values
Tags
policiesCount()
¶
Handler.php
:
99
Number of role policies using a Section in limitations.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $sectionId | mixed | - | - |
Return values
int
update()
¶
Handler.php
:
33
Update name and identifier of a section.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $id | mixed | - | - |
| $name | string | - | - |
| $identifier | string | - | - |