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

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

Updates the object state priority to provided value.
abstract public updateObjectStatePriority ( mixed $stateId, integer $priority )
$stateId mixed
$priority integer
    public abstract function updateObjectStatePriority($stateId, $priority);

Usage Example

 /**
  * 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);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\ObjectState\Gateway::updateObjectStatePriority