eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway::deleteObjectStateGroup PHP Метод

deleteObjectStateGroup() абстрактный публичный Метод

Deletes the object state group identified by $groupId.
abstract public deleteObjectStateGroup ( mixed $groupId )
$groupId mixed
    public abstract function deleteObjectStateGroup($groupId);

Usage Example

Пример #1
0
 /**
  * Deletes a object state group including all states and links to content
  *
  * @param mixed $groupId
  */
 public function deleteGroup($groupId)
 {
     $objectStates = $this->loadObjectStates($groupId);
     foreach ($objectStates as $objectState) {
         $this->objectStateGateway->deleteObjectStateLinks($objectState->id);
         $this->objectStateGateway->deleteObjectState($objectState->id);
     }
     $this->objectStateGateway->deleteObjectStateGroup($groupId);
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway::deleteObjectStateGroup