/** * {@inheritdoc} */ public function getMatchingIds() { $arrValues = $this->sanitizeValue(); // Get out when no values are available. if (!$arrValues) { return array(); } $objMatches = $this->objAttribute->getMetaModel()->getServiceContainer()->getDatabase()->prepare('SELECT item_id as id FROM tl_metamodel_tag_relation WHERE value_id IN (' . implode(',', $arrValues) . ') AND att_id = ?')->execute($this->objAttribute->get('id')); return $objMatches->fetchEach('id'); }
/** * {@inheritDoc} */ protected function checkConfiguration() { return parent::checkConfiguration() && $this->getDatabase()->tableExists($this->getTagSource()); }
/** * {@inheritDoc} */ protected function checkConfiguration() { return parent::checkConfiguration() && null !== $this->getTagMetaModel(); }