Class

eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway

abstract class Gateway

Section Handler.

Methods

int insertSection(string $name, string $identifier)

Inserts a new section with $name and $identifier.

updateSection(int $id, string $name, string $identifier)

Updates section with $id to have $name and $identifier.

string[][] loadSectionData(int $id)

Loads data for section with $id.

string[][] loadAllSectionData()

Loads data for all sections.

string[][] loadSectionDataByIdentifier(string $identifier)

Loads data for section with $identifier.

int countContentObjectsInSection(int $id)

Counts the number of content objects assigned to section with $id.

int countPoliciesUsingSection(int $id)

Counts the number of role policies using section with $id in their limitations.

int countRoleAssignmentsUsingSection(int $id)

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

deleteSection(int $id)

Deletes the Section with $id.

assignSectionToContent(int $sectionId, int $contentId)

Inserts the assignment of $contentId to $sectionId.

Details

at line 24
abstract public int insertSection(string $name, string $identifier)

Inserts a new section with $name and $identifier.

Parameters

string $name
string $identifier

Return Value

int The ID of the new section

at line 33
abstract public updateSection(int $id, string $name, string $identifier)

Updates section with $id to have $name and $identifier.

Parameters

int $id
string $name
string $identifier

at line 42
abstract public string[][] loadSectionData(int $id)

Loads data for section with $id.

Parameters

int $id

Return Value

string[][]

at line 49
abstract public string[][] loadAllSectionData()

Loads data for all sections.

Return Value

string[][]

at line 58
abstract public string[][] loadSectionDataByIdentifier(string $identifier)

Loads data for section with $identifier.

Parameters

string $identifier

Return Value

string[][]

at line 67
abstract public int countContentObjectsInSection(int $id)

Counts the number of content objects assigned to section with $id.

Parameters

int $id

Return Value

int

at line 76
abstract public int countPoliciesUsingSection(int $id)

Counts the number of role policies using section with $id in their limitations.

Parameters

int $id

Return Value

int

at line 85
abstract public int countRoleAssignmentsUsingSection(int $id)

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

Parameters

int $id

Return Value

int

at line 92
abstract public deleteSection(int $id)

Deletes the Section with $id.

Parameters

int $id

at line 100
abstract public assignSectionToContent(int $sectionId, int $contentId)

Inserts the assignment of $contentId to $sectionId.

Parameters

int $sectionId
int $contentId