Class

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

class DoctrineDatabase extends 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(int $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.

__construct(DatabaseHandler $dbHandler)

Creates a new DoctrineDatabase Section Gateway.

Details

at line 44
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 74
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 102
public string[][] loadSectionData(int $id)

Loads data for section with $id.

Parameters

int $id

Return Value

string[][]

at line 129
public string[][] loadAllSectionData()

Loads data for all sections.

Return Value

string[][]

at line 153
public string[][] loadSectionDataByIdentifier(int $identifier)

Loads data for section with $identifier.

Parameters

int $identifier

Return Value

string[][]

at line 182
public int countContentObjectsInSection(int $id)

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

Parameters

int $id

Return Value

int

at line 214
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 254
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 287
public deleteSection(int $id)

Deletes the Section with $id.

Parameters

int $id

at line 308
public assignSectionToContent(int $sectionId, int $contentId)

Inserts the assignment of $contentId to $sectionId.

Parameters

int $sectionId
int $contentId

at line 31
public __construct(DatabaseHandler $dbHandler)

Creates a new DoctrineDatabase Section Gateway.

Parameters

DatabaseHandler $dbHandler