/**
  * Returns an array with basic tag data by remote ID.
  *
  * @param string $remoteId
  *
  * @return array
  */
 public function getBasicTagDataByRemoteId($remoteId)
 {
     try {
         return $this->innerGateway->getBasicTagDataByRemoteId($remoteId);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
Exemple #2
0
 /**
  * Loads a tag info object from its remote ID.
  *
  * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If the specified tag is not found
  *
  * @param string $remoteId
  *
  * @return \Netgen\TagsBundle\SPI\Persistence\Tags\TagInfo
  */
 public function loadTagInfoByRemoteId($remoteId)
 {
     $row = $this->gateway->getBasicTagDataByRemoteId($remoteId);
     return $this->mapper->createTagInfoFromRow($row);
 }