PHP Класс eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\DoctrineDatabase

Наследование: extends eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$dbHandler Database handler.

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

assignSectionToContent() публичный Метод

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

countContentObjectsInSection() публичный Метод

Counts the number of content objects assigned to section with $id.
public countContentObjectsInSection ( integer $id ) : integer
$id integer
Результат integer

countPoliciesUsingSection() публичный Метод

Counts the number of role policies using section with $id in their limitations.
public countPoliciesUsingSection ( integer $id ) : integer
$id integer
Результат integer

countRoleAssignmentsUsingSection() публичный Метод

Counts the number of role assignments using section with $id in their limitations.
public countRoleAssignmentsUsingSection ( integer $id ) : integer
$id integer
Результат integer

deleteSection() публичный Метод

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

insertSection() публичный Метод

Inserts a new section with $name and $identifier.
public insertSection ( string $name, string $identifier ) : integer
$name string
$identifier string
Результат integer The ID of the new section

loadAllSectionData() публичный Метод

Loads data for all sections.
public loadAllSectionData ( ) : string[][]
Результат string[][]

loadSectionData() публичный Метод

Loads data for section with $id.
public loadSectionData ( integer $id ) : string[][]
$id integer
Результат string[][]

loadSectionDataByIdentifier() публичный Метод

Loads data for section with $identifier.
public loadSectionDataByIdentifier ( integer $identifier ) : string[][]
$identifier integer
Результат string[][]

updateSection() публичный Метод

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

Описание свойств

$dbHandler защищенное свойство

Database handler.
protected $dbHandler