public function printNumberOfRecords()
    {
        $content = '';
        $numberOfRecords = $this->getNumberOfRecordsInIndex();
        if ($numberOfRecords) {
            $content .=
                '<p class="box infobox"><i>'
                . LocalizationUtility::translate(
                    'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml:index_contains',
                    'KeSearch'
                )
                . ' '
                . $numberOfRecords
                . ' '
                . LocalizationUtility::translate(
                    'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml:records',
                    'KeSearch'
                )
                . ': ';

            $results_per_type = $this->getNumberOfRecordsInIndexPerType();
            $first = true;
            foreach ($results_per_type as $type => $count) {
                if (!$first) {
                    $content .= ', ';
                }
                $content .= $type . ' (' . $count . ')';
                $first = false;
            }
            $content .= '.<br/>';
            $content .=
                LocalizationUtility::translate(
                    'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml:last_indexing',
                    'KeSearch'
                )
                . ' '
                . $this->getLatestRecordDate() . '.';

            $content .= '</i></p>';
        }

        return $content;
    }
public function printNumberOfRecords()
    {
        $content = '';
        $numberOfRecords = $this->getNumberOfRecordsInIndex();
        if ($numberOfRecords) {
            $content .=
                '<p class="box infobox"><i>'
                . LocalizationUtility::translate(
                    'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml:index_contains',
                    'KeSearch'
                )
                . ' '
                . $numberOfRecords
                . ' '
                . LocalizationUtility::translate(
                    'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml:records',
                    'KeSearch'
                )
                . ': ';

            $results_per_type = $this->getNumberOfRecordsInIndexPerType();
            $first = true;
            foreach ($results_per_type as $type => $count) {
                if (!$first) {
                    $content .= ', ';
                }
                $content .= $type . ' (' . $count . ')';
                $first = false;
            }
            $content .= '.<br/>';
            $content .=
                LocalizationUtility::translate(
                    'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml:last_indexing',
                    'KeSearch'
                )
                . ' '
                . $this->getLatestRecordDate() . '.';

            $content .= '</i></p>';
        }

        return $content;
    }
public function printNumberOfRecords ( ) { $ content = '' ; $ numberOfRecords = $ this -> getNumberOfRecordsInIndex ( ) ; if ( $ numberOfRecords ) { $ content .= '<p class="box infobox"><i>' . LocalizationUtility :: translate ( 'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml:index_contains' , 'KeSearch' ) . ' ' . $ numberOfRecords . ' ' . LocalizationUtility :: translate ( 'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml:records' , 'KeSearch' ) . ': ' ; $ results_per_type = $ this -> getNumberOfRecordsInIndexPerType ( ) ; $ first = true ; foreach ( $ results_per_type as $ type => $ count ) { if ( ! $ first ) { $ content .= ', ' ; } $ content .= $ type . ' (' . $ count . ')' ; $ first = false ; } $ content .= '.<br/>' ; $ content .= LocalizationUtility :: translate ( 'LLL:EXT:ke_search/Resources/Private/Language/locallang_mod.xml:last_indexing' , 'KeSearch' ) . ' ' . $ this -> getLatestRecordDate ( ) . '.' ; $ content .= '</i></p>' ; } return $ content ; }
prints number of records in index
@author Christian Bülter <buelter@kennziffer.com>
@since 28.04.15
prints number of records in index