|
@@ 22-31 (lines=10) @@
|
| 19 |
|
/** |
| 20 |
|
* @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::createGroup |
| 21 |
|
*/ |
| 22 |
|
public function createGroup(InputStruct $input) |
| 23 |
|
{ |
| 24 |
|
$this->logger->logCall(__METHOD__, array('struct' => $input)); |
| 25 |
|
$group = $this->persistenceHandler->objectStateHandler()->createGroup($input); |
| 26 |
|
|
| 27 |
|
$this->cache->clear('objectstategroup', 'all'); |
| 28 |
|
$this->cache->getItem('objectstategroup', $group->id)->set($group)->save(); |
| 29 |
|
|
| 30 |
|
return $group; |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
/** |
| 34 |
|
* @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::loadGroup |
|
@@ 125-135 (lines=11) @@
|
| 122 |
|
/** |
| 123 |
|
* @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::deleteGroup |
| 124 |
|
*/ |
| 125 |
|
public function deleteGroup($groupId) |
| 126 |
|
{ |
| 127 |
|
$this->logger->logCall(__METHOD__, array('groupId' => $groupId)); |
| 128 |
|
$return = $this->persistenceHandler->objectStateHandler()->deleteGroup($groupId); |
| 129 |
|
|
| 130 |
|
$this->cache->clear('objectstategroup', 'all'); |
| 131 |
|
$this->cache->clear('objectstategroup', $groupId); |
| 132 |
|
$this->cache->clear('objectstate', 'byGroup', $groupId); |
| 133 |
|
|
| 134 |
|
return $return; |
| 135 |
|
} |
| 136 |
|
|
| 137 |
|
/** |
| 138 |
|
* @see \eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::create |