PHP Class eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\ExceptionConversion

Inheritance: extends eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway
Datei anzeigen Open project: ezsystems/ezpublish-kernel

Protected Properties

Property Type Description
$innerGateway eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway The wrapped gateway.

Public Methods

Method Description
__construct ( Gateway $innerGateway ) Creates a new exception conversion gateway around $innerGateway.
assignSectionToContent ( integer $sectionId, integer $contentId ) Inserts the assignment of $contentId to $sectionId.
countContentObjectsInSection ( integer $id ) : integer Counts the number of content objects assigned to section with $id.
countPoliciesUsingSection ( integer $id ) : integer Counts the number of role policies using section with $id in their limitations.
countRoleAssignmentsUsingSection ( integer $id ) : integer Counts the number of role assignments using section with $id in their limitations.
deleteSection ( integer $id ) Deletes the Section with $id.
insertSection ( string $name, string $identifier ) : integer Inserts a new section with $name and $identifier.
loadAllSectionData ( ) : string[][] Loads data for all sections.
loadSectionData ( integer $id ) : string[][] Loads data for section with $id.
loadSectionDataByIdentifier ( string $identifier ) : string[][] Loads data for section with $identifier.
updateSection ( integer $id, string $name, string $identifier ) Updates section with $id to have $name and $identifier.

Method Details

__construct() public method

Creates a new exception conversion gateway around $innerGateway.
public __construct ( Gateway $innerGateway )
$innerGateway eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway

assignSectionToContent() public method

Inserts the assignment of $contentId to $sectionId.
public assignSectionToContent ( integer $sectionId, integer $contentId )
$sectionId integer
$contentId integer

countContentObjectsInSection() public method

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

countPoliciesUsingSection() public method

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

countRoleAssignmentsUsingSection() public method

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

deleteSection() public method

Deletes the Section with $id.
public deleteSection ( integer $id )
$id integer

insertSection() public method

Inserts a new section with $name and $identifier.
public insertSection ( string $name, string $identifier ) : integer
$name string
$identifier string
return integer The ID of the new section

loadAllSectionData() public method

Loads data for all sections.
public loadAllSectionData ( ) : string[][]
return string[][]

loadSectionData() public method

Loads data for section with $id.
public loadSectionData ( integer $id ) : string[][]
$id integer
return string[][]

loadSectionDataByIdentifier() public method

Loads data for section with $identifier.
public loadSectionDataByIdentifier ( string $identifier ) : string[][]
$identifier string
return string[][]

updateSection() public method

Updates section with $id to have $name and $identifier.
public updateSection ( integer $id, string $name, string $identifier )
$id integer
$name string
$identifier string

Property Details

$innerGateway protected_oe property

The wrapped gateway.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Section $innerGateway
return eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway