/** * Loads content IDs related to tag identified by $tagId. * * @throws \RuntimeException * * @param mixed $tagId * @param int $offset The start offset for paging * @param int $limit The number of content IDs returned. If $limit = -1 all content IDs starting at $offset are returned * * @return array */ public function getRelatedContentIds($tagId, $offset = 0, $limit = -1) { try { return $this->innerGateway->getRelatedContentIds($tagId, $offset, $limit); } catch (DBALException $e) { throw new RuntimeException('Database error', 0, $e); } catch (PDOException $e) { throw new RuntimeException('Database error', 0, $e); } }
/** * Loads content IDs related to tag identified by $tagId. * * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If the specified tag is not found * * @param mixed $tagId * @param int $offset The start offset for paging * @param int $limit The number of content IDs returned. If $limit = -1 all content IDs starting at $offset are returned * * @return array */ public function loadRelatedContentIds($tagId, $offset = 0, $limit = -1) { return $this->gateway->getRelatedContentIds($tagId, $offset, $limit); }