/** * 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); } }
/** * 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); }