‪TYPO3CMS  10.4
TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository Class Reference

Public Member Functions

array getGrlistRecord ($phash)
 
int bool getNumberOfFulltextRecords ($phash)
 
int bool getNumberOfWords ($phash)
 
array getExternalDocumentsStatistic ()
 
array getRecordsNumbers ()
 
array getPageHashTypes ()
 
int getNumberOfSections ($pageHash)
 
array getPageStatistic ()
 
array null getGeneralSearchStatistic ($additionalWhere, $pageUid, $max=50)
 
array getTree ($pageId, $depth=4, $mode)
 
 removeIndexedPhashRow ($phashList, $pageId, $depth=4)
 
 saveStopWords (array $words)
 
 saveKeywords (array $words, $pageId)
 

Public Attributes

FileContentParser[] $external_parsers = array( )
 

Protected Member Functions

int countUniqueTypes ($itemType)
 
 addAdditionalInformation (array &$row)
 
array extGetTreeList (int $id)
 
array getPageTreeIds (int $id, int $depth, int $begin)
 
string makeItemTypeIcon ($itemType)
 
BackendUserAuthentication getBackendUserAuthentication ()
 

Protected Attributes

array $allPhashListed = array( )
 
array $iconFileNameCache = array( )
 

Detailed Description

Administration repository

This class is a specific repository implementation and is not considered part of the Public TYPO3 API.

Definition at line 38 of file AdministrationRepository.php.

Member Function Documentation

◆ addAdditionalInformation()

◆ countUniqueTypes()

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

Count unique types

Parameters
string$itemType
Returns
‪int

Definition at line 273 of file AdministrationRepository.php.

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

◆ extGetTreeList()

array TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::extGetTreeList ( int  $id)
protected

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

Parameters
int$id‪page id
Returns
‪array Returns an array with all page IDs

Definition at line 653 of file AdministrationRepository.php.

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

◆ getBackendUserAuthentication()

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

Definition at line 838 of file AdministrationRepository.php.

References $GLOBALS.

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

◆ getExternalDocumentsStatistic()

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

Get statistic of external documents

Returns
‪array

Definition at line 134 of file AdministrationRepository.php.

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

◆ getGeneralSearchStatistic()

array null 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 392 of file AdministrationRepository.php.

References TYPO3\CMS\Core\Database\Query\QueryHelper\stripLogicalOperatorPrefix().

◆ getGrlistRecord()

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

Get group list information

Parameters
int$phash
Returns
‪array

Definition at line 60 of file AdministrationRepository.php.

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

◆ getNumberOfFulltextRecords()

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

Get number of fulltext records

Parameters
int$phash
Returns
‪int|bool

Definition at line 91 of file AdministrationRepository.php.

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

◆ getNumberOfSections()

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

Get number of section records

Parameters
int$pageHash
Returns
‪int

Definition at line 298 of file AdministrationRepository.php.

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

◆ getNumberOfWords()

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

Get number of words

Parameters
int$phash
Returns
‪int|bool

Definition at line 113 of file AdministrationRepository.php.

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

◆ getPageHashTypes()

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

◆ getPageStatistic()

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

◆ getPageTreeIds()

array TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::getPageTreeIds ( int  $id,
int  $depth,
int  $begin 
)
protected

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

Parameters
int$id‪Start page id
int$depth‪Depth to traverse down the page tree.
int$begin‪Determines at which level in the tree to start collecting uid's. Zero means 'start right away', 1 = 'next level and out'
Returns
‪array Returns the list of pages

Definition at line 669 of file AdministrationRepository.php.

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

◆ getRecordsNumbers()

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

Get count of the tables used for indexed_search

Returns
‪array

Definition at line 206 of file AdministrationRepository.php.

◆ getTree()

◆ makeItemTypeIcon()

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

Collect the type icons

Parameters
string$itemType
Returns
‪string

Definition at line 821 of file AdministrationRepository.php.

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

◆ removeIndexedPhashRow()

TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::removeIndexedPhashRow (   $phashList,
  $pageId,
  $depth = 4 
)

◆ saveKeywords()

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

Save keywords

Parameters
array$words‪keywords
int$pageId‪page id

Definition at line 791 of file AdministrationRepository.php.

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

◆ saveStopWords()

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

Save stop words

Parameters
array$words‪stop words

Definition at line 768 of file AdministrationRepository.php.

Member Data Documentation

◆ $allPhashListed

array TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::$allPhashListed = array( )
protected

◆ $external_parsers

FileContentParser [] TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::$external_parsers = array( )

List of fileContentParsers

Definition at line 44 of file AdministrationRepository.php.

◆ $iconFileNameCache

array TYPO3\CMS\IndexedSearch\Domain\Repository\AdministrationRepository::$iconFileNameCache = array( )
protected

Definition at line 52 of file AdministrationRepository.php.