| @@ 25-32 (lines=8) @@ | ||
| 22 | /** |
|
| 23 | * @see \eZ\Publish\SPI\Persistence\Content\Language\Handler::create |
|
| 24 | */ |
|
| 25 | public function create(CreateStruct $struct) |
|
| 26 | { |
|
| 27 | $this->logger->logCall(__METHOD__, array('struct' => $struct)); |
|
| 28 | $language = $this->persistenceHandler->contentLanguageHandler()->create($struct); |
|
| 29 | $this->cache->getItem('language', $language->id)->set($language); |
|
| 30 | ||
| 31 | return $language; |
|
| 32 | } |
|
| 33 | ||
| 34 | /** |
|
| 35 | * @see \eZ\Publish\SPI\Persistence\Content\Language\Handler::update |
|
| @@ 33-41 (lines=9) @@ | ||
| 30 | /** |
|
| 31 | * @see \eZ\Publish\SPI\Persistence\Content\Type\Handler::createGroup |
|
| 32 | */ |
|
| 33 | public function createGroup(GroupCreateStruct $struct) |
|
| 34 | { |
|
| 35 | $this->logger->logCall(__METHOD__, array('struct' => $struct)); |
|
| 36 | $group = $this->persistenceHandler->contentTypeHandler()->createGroup($struct); |
|
| 37 | ||
| 38 | $this->cache->getItem('contentTypeGroup', $group->id)->set($group); |
|
| 39 | ||
| 40 | return $group; |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @see \eZ\Publish\SPI\Persistence\Content\Type\Handler::updateGroup |
|
| @@ 26-33 (lines=8) @@ | ||
| 23 | /** |
|
| 24 | * @see eZ\Publish\SPI\Persistence\Content\Section\Handler |
|
| 25 | */ |
|
| 26 | public function create($name, $identifier) |
|
| 27 | { |
|
| 28 | $this->logger->logCall(__METHOD__, array('name' => $name, 'identifier' => $identifier)); |
|
| 29 | $section = $this->persistenceHandler->sectionHandler()->create($name, $identifier); |
|
| 30 | $this->cache->getItem('section', $section->id)->set($section); |
|
| 31 | ||
| 32 | return $section; |
|
| 33 | } |
|
| 34 | ||
| 35 | /** |
|
| 36 | * @see eZ\Publish\SPI\Persistence\Content\Section\Handler |
|
| @@ 38-46 (lines=9) @@ | ||
| 35 | /** |
|
| 36 | * @see eZ\Publish\SPI\Persistence\Content\Section\Handler |
|
| 37 | */ |
|
| 38 | public function update($id, $name, $identifier) |
|
| 39 | { |
|
| 40 | $this->logger->logCall(__METHOD__, array('section' => $id, 'name' => $name, 'identifier' => $identifier)); |
|
| 41 | $this->cache |
|
| 42 | ->getItem('section', $id) |
|
| 43 | ->set($section = $this->persistenceHandler->sectionHandler()->update($id, $name, $identifier)); |
|
| 44 | ||
| 45 | return $section; |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * @see eZ\Publish\SPI\Persistence\Content\Section\Handler |
|