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

상속: implements eZ\Publish\SPI\Persistence\Content\Section\Handler
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$sectionGateway Gateway Section Gateway.

공개 메소드들

메소드 설명
__construct ( Gateway $sectionGateway ) Creates a new Section Handler.
assign ( mixed $sectionId, mixed $contentId ) Assigns section to single content object.
assignmentsCount ( mixed $sectionId ) : integer Number of content assignments a Section has.
countRoleAssignmentsUsingSection ( integer $sectionId ) : integer Counts the number of role assignments using section with $sectionId in their limitations.
create ( string $name, string $identifier ) : eZ\Publish\SPI\Persistence\Content\Section Create a new section.
delete ( mixed $id ) Delete a section.
load ( mixed $id ) : eZ\Publish\SPI\Persistence\Content\Section Get section data.
loadAll ( ) : eZ\Publish\SPI\Persistence\Content\Section[] Get all section data.
loadByIdentifier ( string $identifier ) : eZ\Publish\SPI\Persistence\Content\Section Get section data by identifier.
policiesCount ( mixed $sectionId ) : integer Number of role policies using a Section in limitations.
update ( mixed $id, string $name, string $identifier ) : eZ\Publish\SPI\Persistence\Content\Section Update name and identifier of a section.

보호된 메소드들

메소드 설명
createSectionFromArray ( array $data ) : eZ\Publish\SPI\Persistence\Content\Section Creates a Section from the given $data.
createSectionsFromArray ( array $data ) : eZ\Publish\SPI\Persistence\Content\Section[] Creates a Section from the given $data.

메소드 상세

__construct() 공개 메소드

Creates a new Section Handler.
public __construct ( Gateway $sectionGateway )
$sectionGateway Gateway

assign() 공개 메소드

Assigns section to single content object.
public assign ( mixed $sectionId, mixed $contentId )
$sectionId mixed
$contentId mixed

assignmentsCount() 공개 메소드

Number of content assignments a Section has.
public assignmentsCount ( mixed $sectionId ) : integer
$sectionId mixed
리턴 integer

countRoleAssignmentsUsingSection() 공개 메소드

Counts the number of role assignments using section with $sectionId in their limitations.
public countRoleAssignmentsUsingSection ( integer $sectionId ) : integer
$sectionId integer
리턴 integer

create() 공개 메소드

Create a new section.
public create ( string $name, string $identifier ) : eZ\Publish\SPI\Persistence\Content\Section
$name string
$identifier string
리턴 eZ\Publish\SPI\Persistence\Content\Section

createSectionFromArray() 보호된 메소드

Creates a Section from the given $data.
protected createSectionFromArray ( array $data ) : eZ\Publish\SPI\Persistence\Content\Section
$data array
리턴 eZ\Publish\SPI\Persistence\Content\Section

createSectionsFromArray() 보호된 메소드

Creates a Section from the given $data.
protected createSectionsFromArray ( array $data ) : eZ\Publish\SPI\Persistence\Content\Section[]
$data array
리턴 eZ\Publish\SPI\Persistence\Content\Section[]

delete() 공개 메소드

Might throw an exception if the section is still associated with some content objects. Make sure that no content objects are associated with the section any more *before* calling this method.
public delete ( mixed $id )
$id mixed

load() 공개 메소드

Get section data.
public load ( mixed $id ) : eZ\Publish\SPI\Persistence\Content\Section
$id mixed
리턴 eZ\Publish\SPI\Persistence\Content\Section

loadAll() 공개 메소드

Get all section data.
public loadAll ( ) : eZ\Publish\SPI\Persistence\Content\Section[]
리턴 eZ\Publish\SPI\Persistence\Content\Section[]

loadByIdentifier() 공개 메소드

Get section data by identifier.
public loadByIdentifier ( string $identifier ) : eZ\Publish\SPI\Persistence\Content\Section
$identifier string
리턴 eZ\Publish\SPI\Persistence\Content\Section

policiesCount() 공개 메소드

Number of role policies using a Section in limitations.
public policiesCount ( mixed $sectionId ) : integer
$sectionId mixed
리턴 integer

update() 공개 메소드

Update name and identifier of a section.
public update ( mixed $id, string $name, string $identifier ) : eZ\Publish\SPI\Persistence\Content\Section
$id mixed
$name string
$identifier string
리턴 eZ\Publish\SPI\Persistence\Content\Section

프로퍼티 상세

$sectionGateway 보호되어 있는 프로퍼티

Section Gateway.
protected Gateway,eZ\Publish\Core\Persistence\Legacy\Content\Section $sectionGateway
리턴 Gateway