Свойство | Тип | Описание | |
---|---|---|---|
$sectionGateway | Section Gateway. |
Метод | Описание | |
---|---|---|
__construct ( |
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. |
public __construct ( |
||
$sectionGateway |
public assignmentsCount ( mixed $sectionId ) : integer | ||
$sectionId | mixed | |
Результат | integer |
public countRoleAssignmentsUsingSection ( integer $sectionId ) : integer | ||
$sectionId | integer | |
Результат | integer |
protected createSectionFromArray ( array $data ) : eZ\Publish\SPI\Persistence\Content\Section | ||
$data | array | |
Результат | eZ\Publish\SPI\Persistence\Content\Section |
protected createSectionsFromArray ( array $data ) : eZ\Publish\SPI\Persistence\Content\Section[] | ||
$data | array | |
Результат | eZ\Publish\SPI\Persistence\Content\Section[] |
public loadAll ( ) : eZ\Publish\SPI\Persistence\Content\Section[] | ||
Результат | eZ\Publish\SPI\Persistence\Content\Section[] |
public loadByIdentifier ( string $identifier ) : eZ\Publish\SPI\Persistence\Content\Section | ||
$identifier | string | |
Результат | eZ\Publish\SPI\Persistence\Content\Section |
public policiesCount ( mixed $sectionId ) : integer | ||
$sectionId | mixed | |
Результат | integer |