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

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

Protected Properties

Property Type Description
$dbHandler Database handler.

Public Methods

Method Description
__construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler ) Creates a new DoctrineDatabase Section Gateway.
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 ( integer $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 DoctrineDatabase Section Gateway.
public __construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler )
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler

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 ( integer $identifier ) : string[][]
$identifier integer
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

$dbHandler protected_oe property

Database handler.
protected $dbHandler