getContentIdsByContentTypeId() 추상적인 공개 메소드

Returns all Content IDs for a given $contentTypeId.
abstract public getContentIdsByContentTypeId ( integer $contentTypeId ) : int[]
$contentTypeId integer
리턴 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);
     }
 }
예제 #2
0
 /**
  * Returns all content objects of $contentTypeId.
  *
  * @param mixed $contentTypeId
  *
  * @return int[]
  */
 protected function getContentIdsByContentTypeId($contentTypeId)
 {
     return $this->contentGateway->getContentIdsByContentTypeId($contentTypeId);
 }