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