src/FrontendIntegration/InsertTags.php
protected function getMetaModelDataFrom($strTable, $intID)
    {
        // Check if we know the table.
        if (!$this->connection->getSchemaManager()->tablesExist([$strTable])) {
            return null;
        }

        // Get all information form table or return null if we have no data.
        $statement = $this->connection
            ->prepare('SELECT metamodel, metamodel_filtering FROM ' . $strTable . ' WHERE id=? LIMIT 0,1');

        $statement->bindValue(1, $intID);
        $statement->execute();

        // Check if we have some data.
        if ($statement->rowCount() < 1) {
            return null;
        }

        return $statement->fetch(\PDO::FETCH_OBJ);
    }
protected function getMetaModelDataFrom($strTable, $intID)
    {
        // Check if we know the table.
        if (!$this->connection->getSchemaManager()->tablesExist([$strTable])) {
            return null;
        }

        // Get all information form table or return null if we have no data.
        $statement = $this->connection
            ->prepare('SELECT metamodel, metamodel_filtering FROM ' . $strTable . ' WHERE id=? LIMIT 0,1');

        $statement->bindValue(1, $intID);
        $statement->execute();

        // Check if we have some data.
        if ($statement->rowCount() < 1) {
            return null;
        }

        return $statement->fetch(\PDO::FETCH_OBJ);
    }
protected function getMetaModelDataFrom ( $ strTable , $ intID ) { // Check if we know the table. if ( ! $ this -> connection -> getSchemaManager ( ) -> tablesExist ( [ $ strTable ] ) ) { return null ; } // Get all information form table or return null if we have no data. $ statement = $ this -> connection -> prepare ( 'SELECT metamodel, metamodel_filtering FROM ' . $ strTable . ' WHERE id=? LIMIT 0,1' ) ; $ statement -> bindValue ( 1 , $ intID ) ; $ statement -> execute ( ) ; // Check if we have some data. if ( $ statement -> rowCount ( ) < 1 ) { return null ; } return $ statement -> fetch ( \ PDO :: FETCH_OBJ ) ; }
Get the MetaModel id and the filter id.

@param string $strTable Name of table.

@param int    $intID    ID of the filter.

@return null|\stdClass Returns null when nothing was found or a \Database\Result with the chosen information.

@throws \Doctrine\DBAL\DBALException When an database error occur.
Get the MetaModel id and the filter id .