/**
  * Updates the object state priority to provided value.
  *
  * @param mixed $stateId
  * @param int $priority
  */
 public function updateObjectStatePriority($stateId, $priority)
 {
     try {
         return $this->innerGateway->updateObjectStatePriority($stateId, $priority);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Esempio n. 2
0
 /**
  * Returns the number of objects which are in this state
  *
  * @param mixed $stateId
  *
  * @return int
  */
 public function getContentCount($stateId)
 {
     return $this->objectStateGateway->getContentCount($stateId);
 }