PHP 클래스 eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\DoctrineDatabase

상속: extends eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$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.

countPoliciesUsingSection() 공개 메소드

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

countRoleAssignmentsUsingSection() 공개 메소드

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

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