|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace eZ\Publish\Core\Event; |
|
6
|
|
|
|
|
7
|
|
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
8
|
|
|
use eZ\Publish\API\Repository\SectionService as SectionServiceInterface; |
|
9
|
|
|
use eZ\Publish\API\Repository\Values\Content\ContentInfo; |
|
10
|
|
|
use eZ\Publish\API\Repository\Values\Content\Location; |
|
11
|
|
|
use eZ\Publish\API\Repository\Values\Content\Section; |
|
12
|
|
|
use eZ\Publish\API\Repository\Values\Content\SectionCreateStruct; |
|
13
|
|
|
use eZ\Publish\API\Repository\Values\Content\SectionUpdateStruct; |
|
14
|
|
|
|
|
15
|
|
|
class SectionService implements SectionServiceInterface |
|
16
|
|
|
{ |
|
17
|
|
|
/** @var Symfony\Component\EventDispatcher\EventDispatcherInterface */ |
|
18
|
|
|
protected $eventDispatcher; |
|
19
|
|
|
|
|
20
|
|
|
public function __construct(SectionServiceInterface $innerService, EventDispatcherInterface $eventDispatcher) |
|
|
|
|
|
|
21
|
|
|
{ |
|
22
|
|
|
parent::__construct($innerRepository); |
|
|
|
|
|
|
23
|
|
|
|
|
24
|
|
|
$this->eventDispatcher = $eventDispatcher; |
|
|
|
|
|
|
25
|
|
|
} |
|
26
|
|
|
|
|
27
|
|
|
public function createSection(SectionCreateStruct $sectionCreateStruct) |
|
28
|
|
|
{ |
|
29
|
|
|
parent::createSection($sectionCreateStruct); |
|
30
|
|
|
} |
|
31
|
|
|
|
|
32
|
|
|
public function updateSection(Section $section, SectionUpdateStruct $sectionUpdateStruct) |
|
33
|
|
|
{ |
|
34
|
|
|
parent::updateSection($section, $sectionUpdateStruct); |
|
35
|
|
|
} |
|
36
|
|
|
|
|
37
|
|
|
public function loadSection($sectionId) |
|
38
|
|
|
{ |
|
39
|
|
|
parent::loadSection($sectionId); |
|
40
|
|
|
} |
|
41
|
|
|
|
|
42
|
|
|
public function loadSections() |
|
43
|
|
|
{ |
|
44
|
|
|
parent::loadSections(); |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
|
|
public function loadSectionByIdentifier($sectionIdentifier) |
|
48
|
|
|
{ |
|
49
|
|
|
parent::loadSectionByIdentifier($sectionIdentifier); |
|
50
|
|
|
} |
|
51
|
|
|
|
|
52
|
|
|
public function countAssignedContents(Section $section) |
|
53
|
|
|
{ |
|
54
|
|
|
parent::countAssignedContents($section); |
|
55
|
|
|
} |
|
56
|
|
|
|
|
57
|
|
|
public function isSectionUsed(Section $section) |
|
58
|
|
|
{ |
|
59
|
|
|
parent::isSectionUsed($section); |
|
60
|
|
|
} |
|
61
|
|
|
|
|
62
|
|
|
public function assignSection(ContentInfo $contentInfo, Section $section) |
|
63
|
|
|
{ |
|
64
|
|
|
parent::assignSection($contentInfo, $section); |
|
65
|
|
|
} |
|
66
|
|
|
|
|
67
|
|
|
public function assignSectionToSubtree(Location $location, Section $section): void |
|
68
|
|
|
{ |
|
69
|
|
|
parent::assignSectionToSubtree($location, $section); |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
|
|
public function deleteSection(Section $section) |
|
73
|
|
|
{ |
|
74
|
|
|
parent::deleteSection($section); |
|
75
|
|
|
} |
|
76
|
|
|
|
|
77
|
|
|
public function newSectionCreateStruct() |
|
78
|
|
|
{ |
|
79
|
|
|
parent::newSectionCreateStruct(); |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
public function newSectionUpdateStruct() |
|
83
|
|
|
{ |
|
84
|
|
|
parent::newSectionUpdateStruct(); |
|
85
|
|
|
} |
|
86
|
|
|
} |
|
87
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.