protected function getContentObject($uid)
    {
        $contentTable = 'tt_content';
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($contentTable);
        $queryBuilder
            ->select('*')
            ->from($contentTable)
            ->where($queryBuilder->expr()->eq('uid', $uid));
        $queryBuilder->getRestrictions()->removeAll();
        $data = $queryBuilder->execute()->fetch();

        $this->inlineHelper->addFilesToData($data, 'tt_content');
        $this->inlineHelper->addIrreToData($data);

        return $data;
    }
protected function getContentObject($uid)
    {
        $contentTable = 'tt_content';
        $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable($contentTable);
        $queryBuilder
            ->select('*')
            ->from($contentTable)
            ->where($queryBuilder->expr()->eq('uid', $uid));
        $queryBuilder->getRestrictions()->removeAll();
        $data = $queryBuilder->execute()->fetch();

        $this->inlineHelper->addFilesToData($data, 'tt_content');
        $this->inlineHelper->addIrreToData($data);

        return $data;
    }
protected function getContentObject ( $ uid ) { $ contentTable = 'tt_content' ; $ queryBuilder = GeneralUtility :: makeInstance ( ConnectionPool :: class ) -> getQueryBuilderForTable ( $ contentTable ) ; $ queryBuilder -> select ( '*' ) -> from ( $ contentTable ) -> where ( $ queryBuilder -> expr ( ) -> eq ( 'uid' , $ uid ) ) ; $ queryBuilder -> getRestrictions ( ) -> removeAll ( ) ; $ data = $ queryBuilder -> execute ( ) -> fetch ( ) ; $ this -> inlineHelper -> addFilesToData ( $ data , 'tt_content' ) ; $ this -> inlineHelper -> addIrreToData ( $ data ) ; return $ data ; }
Returns an array with properties of content element with given uid

@param int $uid of content element to get
@return array with all properties of given content element uid
Returns an array with properties of content element with given uid