class.ext_update.php
public function access() {

        $typo3Version = VersionNumberUtility::getNumericTypo3Version();
        if (VersionNumberUtility::convertVersionNumberToInteger($typo3Version) >= 8000000) {
            // If TYPO3 version is version 8 or higher
            $count = $this->queryBuilder->count('uid')
                ->from('tt_address')
                ->where(
                    $this->queryBuilder->expr()->eq(
                        'registeraddresshash',
                        $this->queryBuilder->createNamedParameter('')
                    )
                )
                ->execute()
                ->fetchColumn(0);
        } else {
            // For TYPO3 Version 7 or lower
            $count = $this->databaseConnection->exec_SELECTcountRows(
                'uid',
                'tt_address',
                'registeraddresshash=""'
            );
        }

        return ($count > 0);
    }
public function access() {

        $typo3Version = VersionNumberUtility::getNumericTypo3Version();
        if (VersionNumberUtility::convertVersionNumberToInteger($typo3Version) >= 8000000) {
            // If TYPO3 version is version 8 or higher
            $count = $this->queryBuilder->count('uid')
                ->from('tt_address')
                ->where(
                    $this->queryBuilder->expr()->eq(
                        'registeraddresshash',
                        $this->queryBuilder->createNamedParameter('')
                    )
                )
                ->execute()
                ->fetchColumn(0);
        } else {
            // For TYPO3 Version 7 or lower
            $count = $this->databaseConnection->exec_SELECTcountRows(
                'uid',
                'tt_address',
                'registeraddresshash=""'
            );
        }

        return ($count > 0);
    }
public function access ( ) { $ typo3Version = VersionNumberUtility :: getNumericTypo3Version ( ) ; if ( VersionNumberUtility :: convertVersionNumberToInteger ( $ typo3Version ) >= 8000000 ) { // If TYPO3 version is version 8 or higher $ count = $ this -> queryBuilder -> count ( 'uid' ) -> from ( 'tt_address' ) -> where ( $ this -> queryBuilder -> expr ( ) -> eq ( 'registeraddresshash' , $ this -> queryBuilder -> createNamedParameter ( '' ) ) ) -> execute ( ) -> fetchColumn ( 0 ) ; } else { // For TYPO3 Version 7 or lower $ count = $ this -> databaseConnection -> exec_SELECTcountRows ( 'uid' , 'tt_address' , 'registeraddresshash=""' ) ; } return ( $ count > 0 ) ; }
Called by the extension manager to determine if the update menu entry
should by showed.

@return bool
Called by the extension manager to determine if the update menu entry should by showed .