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

Inheritance: extends eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway
Afficher le fichier Open project: ezsystems/ezpublish-kernel

Protected Properties

Свойство Type Description
$dbHandler Database handler.

Méthodes publiques

Méthode 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 méthode

Creates a new DoctrineDatabase Section Gateway.
public __construct ( eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler )
$dbHandler eZ\Publish\Core\Persistence\Database\DatabaseHandler

assignSectionToContent() public méthode

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

countContentObjectsInSection() public méthode

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

countPoliciesUsingSection() public méthode

Counts the number of role policies using section with $id in their limitations.
public countPoliciesUsingSection ( integer $id ) : integer
$id integer
Résultat integer

countRoleAssignmentsUsingSection() public méthode

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

deleteSection() public méthode

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

insertSection() public méthode

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

loadAllSectionData() public méthode

Loads data for all sections.
public loadAllSectionData ( ) : string[][]
Résultat string[][]

loadSectionData() public méthode

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

loadSectionDataByIdentifier() public méthode

Loads data for section with $identifier.
public loadSectionDataByIdentifier ( integer $identifier ) : string[][]
$identifier integer
Résultat string[][]

updateSection() public méthode

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