예제 #1
0
 /**
  * {@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');
 }
예제 #2
0
 /**
  * {@inheritDoc}
  */
 protected function checkConfiguration()
 {
     return parent::checkConfiguration() && $this->getDatabase()->tableExists($this->getTagSource());
 }
예제 #3
0
 /**
  * {@inheritDoc}
  */
 protected function checkConfiguration()
 {
     return parent::checkConfiguration() && null !== $this->getTagMetaModel();
 }