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

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

Sets the object state $stateId to content with $contentId ID.
abstract public setContentState ( mixed $contentId, mixed $groupId, mixed $stateId )
$contentId mixed
$groupId mixed
$stateId mixed
    public abstract function setContentState($contentId, $groupId, $stateId);

Usage Example

 /**
  * Sets the object state $stateId to content with $contentId ID.
  *
  * @param mixed $contentId
  * @param mixed $groupId
  * @param mixed $stateId
  */
 public function setContentState($contentId, $groupId, $stateId)
 {
     try {
         return $this->innerGateway->setContentState($contentId, $groupId, $stateId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway::setContentState