PHP 클래스 eZ\Publish\Core\Repository\SectionService

상속: implements eZ\Publish\API\Repository\SectionService
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$repository eZ\Publish\API\Repository\Repository
$sectionHandler eZ\Publish\SPI\Persistence\Content\Section\Handler
$settings array

공개 메소드들

메소드 설명
__construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\Content\Section\Handler $sectionHandler, array $settings = [] ) Setups service with reference to repository object that created it & corresponding handler.
assignSection ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, eZ\Publish\API\Repository\Values\Content\Section $section ) Assigns the content to the given section this method overrides the current assigned section.
countAssignedContents ( eZ\Publish\API\Repository\Values\Content\Section $section ) : integer Counts the contents which $section is assigned to.
createSection ( eZ\Publish\API\Repository\Values\Content\SectionCreateStruct $sectionCreateStruct ) : eZ\Publish\API\Repository\Values\Content\Section Creates a new Section in the content repository.
deleteSection ( eZ\Publish\API\Repository\Values\Content\Section $section ) Deletes $section from content repository.
isSectionUsed ( eZ\Publish\API\Repository\Values\Content\Section $section ) : boolean Returns true if the given section is assigned to contents, or used in role policies, or in role assignments.
loadSection ( mixed $sectionId ) : eZ\Publish\API\Repository\Values\Content\Section Loads a Section from its id ($sectionId).
loadSectionByIdentifier ( string $sectionIdentifier ) : eZ\Publish\API\Repository\Values\Content\Section Loads a Section from its identifier ($sectionIdentifier).
loadSections ( ) : eZ\Publish\API\Repository\Values\Content\Section[] Loads all sections.
newSectionCreateStruct ( ) : eZ\Publish\API\Repository\Values\Content\SectionCreateStruct Instantiates a new SectionCreateStruct.
newSectionUpdateStruct ( ) : eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct Instantiates a new SectionUpdateStruct.
updateSection ( eZ\Publish\API\Repository\Values\Content\Section $section, eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct $sectionUpdateStruct ) : eZ\Publish\API\Repository\Values\Content\Section Updates the given section in the content repository.

보호된 메소드들

메소드 설명
buildDomainSectionObject ( eZ\Publish\SPI\Persistence\Content\Section $spiSection ) : eZ\Publish\API\Repository\Values\Content\Section Builds API Section object from provided SPI Section object.

메소드 상세

__construct() 공개 메소드

Setups service with reference to repository object that created it & corresponding handler.
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\SPI\Persistence\Content\Section\Handler $sectionHandler, array $settings = [] )
$repository eZ\Publish\API\Repository\Repository
$sectionHandler eZ\Publish\SPI\Persistence\Content\Section\Handler
$settings array

assignSection() 공개 메소드

Assigns the content to the given section this method overrides the current assigned section.
public assignSection ( eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo, eZ\Publish\API\Repository\Values\Content\Section $section )
$contentInfo eZ\Publish\API\Repository\Values\Content\ContentInfo
$section eZ\Publish\API\Repository\Values\Content\Section

buildDomainSectionObject() 보호된 메소드

Builds API Section object from provided SPI Section object.
protected buildDomainSectionObject ( eZ\Publish\SPI\Persistence\Content\Section $spiSection ) : eZ\Publish\API\Repository\Values\Content\Section
$spiSection eZ\Publish\SPI\Persistence\Content\Section
리턴 eZ\Publish\API\Repository\Values\Content\Section

countAssignedContents() 공개 메소드

Counts the contents which $section is assigned to.
사용 중단: since 6.0
public countAssignedContents ( eZ\Publish\API\Repository\Values\Content\Section $section ) : integer
$section eZ\Publish\API\Repository\Values\Content\Section
리턴 integer

createSection() 공개 메소드

Creates a new Section in the content repository.
public createSection ( eZ\Publish\API\Repository\Values\Content\SectionCreateStruct $sectionCreateStruct ) : eZ\Publish\API\Repository\Values\Content\Section
$sectionCreateStruct eZ\Publish\API\Repository\Values\Content\SectionCreateStruct
리턴 eZ\Publish\API\Repository\Values\Content\Section The newly created section

deleteSection() 공개 메소드

Deletes $section from content repository.
public deleteSection ( eZ\Publish\API\Repository\Values\Content\Section $section )
$section eZ\Publish\API\Repository\Values\Content\Section

isSectionUsed() 공개 메소드

This does not check user permissions.
부터: 6.0
public isSectionUsed ( eZ\Publish\API\Repository\Values\Content\Section $section ) : boolean
$section eZ\Publish\API\Repository\Values\Content\Section
리턴 boolean

loadSection() 공개 메소드

Loads a Section from its id ($sectionId).
public loadSection ( mixed $sectionId ) : eZ\Publish\API\Repository\Values\Content\Section
$sectionId mixed
리턴 eZ\Publish\API\Repository\Values\Content\Section

loadSectionByIdentifier() 공개 메소드

Loads a Section from its identifier ($sectionIdentifier).
public loadSectionByIdentifier ( string $sectionIdentifier ) : eZ\Publish\API\Repository\Values\Content\Section
$sectionIdentifier string
리턴 eZ\Publish\API\Repository\Values\Content\Section

loadSections() 공개 메소드

Loads all sections.
public loadSections ( ) : eZ\Publish\API\Repository\Values\Content\Section[]
리턴 eZ\Publish\API\Repository\Values\Content\Section[]

newSectionCreateStruct() 공개 메소드

Instantiates a new SectionCreateStruct.
public newSectionCreateStruct ( ) : eZ\Publish\API\Repository\Values\Content\SectionCreateStruct
리턴 eZ\Publish\API\Repository\Values\Content\SectionCreateStruct

newSectionUpdateStruct() 공개 메소드

Instantiates a new SectionUpdateStruct.
public newSectionUpdateStruct ( ) : eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct
리턴 eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct

updateSection() 공개 메소드

Updates the given section in the content repository.
public updateSection ( eZ\Publish\API\Repository\Values\Content\Section $section, eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct $sectionUpdateStruct ) : eZ\Publish\API\Repository\Values\Content\Section
$section eZ\Publish\API\Repository\Values\Content\Section
$sectionUpdateStruct eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct
리턴 eZ\Publish\API\Repository\Values\Content\Section

프로퍼티 상세

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

protected Repository,eZ\Publish\API\Repository $repository
리턴 eZ\Publish\API\Repository\Repository

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

protected Handler,eZ\Publish\SPI\Persistence\Content\Section $sectionHandler
리턴 eZ\Publish\SPI\Persistence\Content\Section\Handler

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

protected array $settings
리턴 array