Interface

eZ\Publish\SPI\Persistence\Content\Section\Handler

interface Handler

Methods

Section create(string $name, string $identifier)

Create a new section.

Section update(mixed $id, string $name, string $identifier)

Update name and identifier of a section.

Section load(mixed $id)

Get section data.

Section[] loadAll()

Get all section data.

Section loadByIdentifier(string $identifier)

Get section data by identifier.

delete(mixed $id)

Delete a section.

assign(mixed $sectionId, mixed $contentId)

Assigns section to single content object.

int assignmentsCount(mixed $sectionId)

Number of content assignments a Section has.

int policiesCount(mixed $sectionId)

Number of role policies using a Section in limitations.

int countRoleAssignmentsUsingSection(int $sectionId)

Counts the number of role assignments using section with $sectionId in their limitations.

Details

at line 24
public Section create(string $name, string $identifier)

Create a new section.

Parameters

string $name
string $identifier

Return Value

Section

at line 35
public Section update(mixed $id, string $name, string $identifier)

Update name and identifier of a section.

Parameters

mixed $id
string $name
string $identifier

Return Value

Section

at line 46
public Section load(mixed $id)

Get section data.

Parameters

mixed $id

Return Value

Section

Exceptions

NotFoundException If section is not found

at line 53
public Section[] loadAll()

Get all section data.

Return Value

Section[]

at line 64
public Section loadByIdentifier(string $identifier)

Get section data by identifier.

Parameters

string $identifier

Return Value

Section

Exceptions

NotFoundException If section is not found

at line 75
public delete(mixed $id)

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

mixed $id

at line 83
public assign(mixed $sectionId, mixed $contentId)

Assigns section to single content object.

Parameters

mixed $sectionId
mixed $contentId

at line 92
public int assignmentsCount(mixed $sectionId)

Number of content assignments a Section has.

Parameters

mixed $sectionId

Return Value

int

at line 101
public int policiesCount(mixed $sectionId)

Number of role policies using a Section in limitations.

Parameters

mixed $sectionId

Return Value

int

at line 110
public int countRoleAssignmentsUsingSection(int $sectionId)

Counts the number of role assignments using section with $sectionId in their limitations.

Parameters

int $sectionId

Return Value

int