eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway::updateLocationsContentVersionNo PHP Method

updateLocationsContentVersionNo() abstract public method

Updates all Locations of content identified with $contentId with $versionNo.
abstract public updateLocationsContentVersionNo ( mixed $contentId, mixed $versionNo )
$contentId mixed
$versionNo mixed
    public abstract function updateLocationsContentVersionNo($contentId, $versionNo);

Usage Example

コード例 #1
0
 /**
  * Updates all Locations of content identified with $contentId with $versionNo
  *
  * @param mixed $contentId
  * @param mixed $versionNo
  *
  * @return void
  */
 public function updateLocationsContentVersionNo($contentId, $versionNo)
 {
     try {
         return $this->innerGateway->updateLocationsContentVersionNo($contentId, $versionNo);
     } 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\Location\Gateway::updateLocationsContentVersionNo