eZ/Publish/Core/Persistence/Cache/ContentTypeHandler.php 1 location
|
@@ 324-332 (lines=9) @@
|
| 321 |
|
/** |
| 322 |
|
* {@inheritdoc} |
| 323 |
|
*/ |
| 324 |
|
public function createDraft($modifierId, $typeId) |
| 325 |
|
{ |
| 326 |
|
$this->logger->logCall(__METHOD__, array('modifier' => $modifierId, 'type' => $typeId)); |
| 327 |
|
$draft = $this->persistenceHandler->contentTypeHandler()->createDraft($modifierId, $typeId); |
| 328 |
|
|
| 329 |
|
$this->deleteCache(['ez-content-type-' . $typeId . '-' . Type::STATUS_DRAFT]); |
| 330 |
|
|
| 331 |
|
return $draft; |
| 332 |
|
} |
| 333 |
|
|
| 334 |
|
/** |
| 335 |
|
* {@inheritdoc} |
eZ/Publish/Core/Persistence/Cache/UserHandler.php 1 location
|
@@ 412-422 (lines=11) @@
|
| 409 |
|
/** |
| 410 |
|
* {@inheritdoc} |
| 411 |
|
*/ |
| 412 |
|
public function deleteRole($roleId, $status = Role::STATUS_DEFINED) |
| 413 |
|
{ |
| 414 |
|
$this->logger->logCall(__METHOD__, array('role' => $roleId)); |
| 415 |
|
$return = $this->persistenceHandler->userHandler()->deleteRole($roleId, $status); |
| 416 |
|
|
| 417 |
|
if ($status === Role::STATUS_DEFINED) { |
| 418 |
|
$this->invalidateCache(['role-' . $roleId, 'role-assignment-role-list-' . $roleId]); |
| 419 |
|
} |
| 420 |
|
|
| 421 |
|
return $return; |
| 422 |
|
} |
| 423 |
|
|
| 424 |
|
/** |
| 425 |
|
* {@inheritdoc} |