eZ\Publish\Core\Persistence\Legacy\Content\Gateway::getAllLocationIds PHP Method

getAllLocationIds() abstract public method

Returns all IDs for locations that refer to $contentId.
abstract public getAllLocationIds ( integer $contentId ) : int[]
$contentId integer
return int[]
    public abstract function getAllLocationIds($contentId);

Usage Example

コード例 #1
0
 /**
  * Returns all IDs for locations that refer to $contentId
  *
  * @param int $contentId
  *
  * @return int[]
  */
 public function getAllLocationIds($contentId)
 {
     try {
         return $this->innerGateway->getAllLocationIds($contentId);
     } 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\Gateway::getAllLocationIds