protected function getContentDbFieldsStmt(array $fields)
    {
        $query = $this->databaseHandler->createSelectQuery();
        $query->select($fields)
            ->from($this->databaseHandler->quoteTable(self::CONTENTOBJECT_TABLE))
            ->where($query->expr->eq('status', ContentInfo::STATUS_PUBLISHED));
        $stmt = $query->prepare();
        $stmt->execute();

        return $stmt;
    }
protected function getContentDbFieldsStmt(array $fields)
    {
        $query = $this->databaseHandler->createSelectQuery();
        $query->select($fields)
            ->from($this->databaseHandler->quoteTable(self::CONTENTOBJECT_TABLE))
            ->where($query->expr->eq('status', ContentInfo::STATUS_PUBLISHED));
        $stmt = $query->prepare();
        $stmt->execute();

        return $stmt;
    }
protected function getContentDbFieldsStmt ( array $ fields ) { $ query = $ this -> databaseHandler -> createSelectQuery ( ) ; $ query -> select ( $ fields ) -> from ( $ this -> databaseHandler -> quoteTable ( self :: CONTENTOBJECT_TABLE ) ) -> where ( $ query -> expr -> eq ( 'status' , ContentInfo :: STATUS_PUBLISHED ) ) ; $ stmt = $ query -> prepare ( ) ; $ stmt -> execute ( ) ; return $ stmt ; }
Get PDOStatement to fetch metadata about content objects to be indexed.

@param array $fields Select fields
@return \PDOStatement
Get PDOStatement to fetch metadata about content objects to be indexed .