TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository Class Reference

Public Member Functions

 getGrlistRecord ($phash)
 
 getNumberOfFulltextRecords ($phash)
 
 getNumberOfWords ($phash)
 
 getExternalDocumentsStatistic ()
 
 getRecordsNumbers ()
 
 getPageHashTypes ()
 
 getNumberOfSections ($pageHash)
 
 getPageStatistic ()
 
 getGeneralSearchStatistic ($additionalWhere, $pageUid, $max=50)
 
 saveStopWords (array $words)
 
 saveKeywords (array $words, $pageId)
 

Public Attributes

 $external_parsers = []
 

Protected Member Functions

 countUniqueTypes ($itemType)
 
 addAdditionalInformation (array &$row)
 
 extGetTreeList ($id, $depth, $begin=0, $perms_clause)
 
 makeItemTypeIcon ($itemType)
 
 getDatabaseConnection ()
 
 getBackendUserAuthentication ()
 

Protected Attributes

 $allPhashListed = []
 
 $iconFileNameCache = []
 

Detailed Description

Administration repository

Definition at line 32 of file AdministrationRepository.php.

Member Function Documentation

◆ addAdditionalInformation()

◆ countUniqueTypes()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::countUniqueTypes (   $itemType)
protected

◆ extGetTreeList()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::extGetTreeList (   $id,
  $depth,
  $begin = 0,
  $perms_clause 
)
protected

Generates a list of Page-uid's from $id. The only pages excluded from the list are deleted pages.

Parameters
int$idpage id
int$depthto traverse down the page tree.
int$beginis an optional integer that determines at which level in the tree to start collecting uid's. Zero means 'start right away', 1 = 'next level and out'
string$perms_clause
Returns
string Returns the list with a comma in the end + id itself

Definition at line 429 of file AdministrationRepository.php.

References TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository\$allPhashListed, TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository\getDatabaseConnection(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository\getGeneralSearchStatistic().

◆ getBackendUserAuthentication()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::getBackendUserAuthentication ( )
protected
Returns
BackendUserAuthentication

Definition at line 567 of file AdministrationRepository.php.

References $GLOBALS.

Referenced by TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository\addAdditionalInformation().

◆ getDatabaseConnection()

◆ getExternalDocumentsStatistic()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::getExternalDocumentsStatistic ( )

◆ getGeneralSearchStatistic()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::getGeneralSearchStatistic (   $additionalWhere,
  $pageUid,
  $max = 50 
)

Get general statistic

Parameters
string$additionalWhere
int$pageUid
int$max
Returns
array|NULL

Definition at line 269 of file AdministrationRepository.php.

References TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository\extGetTreeList(), and TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository\getDatabaseConnection().

◆ getGrlistRecord()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::getGrlistRecord (   $phash)

◆ getNumberOfFulltextRecords()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::getNumberOfFulltextRecords (   $phash)

◆ getNumberOfSections()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::getNumberOfSections (   $pageHash)

◆ getNumberOfWords()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::getNumberOfWords (   $phash)

◆ getPageHashTypes()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::getPageHashTypes ( )

◆ getPageStatistic()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::getPageStatistic ( )

◆ getRecordsNumbers()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::getRecordsNumbers ( )

Get count of the tables used for indexed_search

Returns
array

Definition at line 138 of file AdministrationRepository.php.

References TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository\getDatabaseConnection().

◆ makeItemTypeIcon()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::makeItemTypeIcon (   $itemType)
protected

Collect the type icons

Parameters
string$itemType
Returns
string

Definition at line 542 of file AdministrationRepository.php.

Referenced by TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository\addAdditionalInformation().

◆ saveKeywords()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::saveKeywords ( array  $words,
  $pageId 
)

Save keywords

Parameters
array$wordskeywords
int$pageIdpage id
Returns
void

Definition at line 511 of file AdministrationRepository.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\getRecord(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ saveStopWords()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::saveStopWords ( array  $words)

Save stop words

Parameters
array$wordsstop words
Returns
void

Definition at line 494 of file AdministrationRepository.php.

References TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository\getDatabaseConnection().

Member Data Documentation

◆ $allPhashListed

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::$allPhashListed = []
protected

◆ $external_parsers

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::$external_parsers = []

Definition at line 39 of file AdministrationRepository.php.

◆ $iconFileNameCache

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::$iconFileNameCache = []
protected

Definition at line 49 of file AdministrationRepository.php.