getContentIdsByContentTypeId() abstract public method

Returns all Content IDs for a given $contentTypeId.
abstract public getContentIdsByContentTypeId ( integer $contentTypeId ) : int[]
$contentTypeId integer
return int[]
 /**
  * Returns all Content IDs for a given $contentTypeId.
  *
  * @param int $contentTypeId
  *
  * @return int[]
  */
 public function getContentIdsByContentTypeId($contentTypeId)
 {
     try {
         return $this->innerGateway->getContentIdsByContentTypeId($contentTypeId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Ejemplo n.º 2
0
 /**
  * Returns all content objects of $contentTypeId.
  *
  * @param mixed $contentTypeId
  *
  * @return int[]
  */
 protected function getContentIdsByContentTypeId($contentTypeId)
 {
     return $this->contentGateway->getContentIdsByContentTypeId($contentTypeId);
 }