/** * 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); } }
/** * Sets the object-state of a state group to $stateId for the given content. * * @param mixed $contentId * @param mixed $groupId * @param mixed $stateId * * @return boolean */ public function setContentState($contentId, $groupId, $stateId) { $this->objectStateGateway->setContentState($contentId, $groupId, $stateId); return true; }