TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController Class Reference
Inheritance diagram for TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController:
TYPO3\CMS\Backend\Module\AbstractFunctionModule tx_indexedsearch_modfunc2

Public Member Functions

 __construct ()
 
 main ()
 
 showStats ()
 
 listSeveralStats ($title, $addwhere, $conf)
 
 extGetTreeList ($id, $depth, $begin=0, $perms_clause)
 
 hookRequest ($functionName)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Module\AbstractFunctionModule
 init (&$pObj, $conf)
 
 handleExternalFunctionValue ()
 
 incLocalLang ()
 
 checkExtObj ()
 
 extObjContent ()
 
 modMenu ()
 

Additional Inherited Members

- Public Attributes inherited from TYPO3\CMS\Backend\Module\AbstractFunctionModule
 $pObj
 
 $thisPath = ''
 
 $localLangFile = 'locallang.php'
 
 $extClassConf
 
 $function_key = ''
 

Detailed Description

Module extension (addition to function menu) 'Indexed search statistics' for the 'indexed_search' extension.

Author
Dimitri Ebert dimit.nosp@m.ri.e.nosp@m.bert@.nosp@m.dkd..nosp@m.de

Definition at line 23 of file IndexingStatisticsController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController::__construct ( )

Default constructor loads additional locallang

Definition at line 28 of file IndexingStatisticsController.php.

References $GLOBALS.

Member Function Documentation

◆ extGetTreeList()

TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController::extGetTreeList (   $id,
  $depth,
  $begin = 0,
  $perms_clause 
)

Calls ::extGetTreeList. Although this duplicates the function ::extGetTreeList this is necessary to create the object that is used recursively by the original function.

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
integerStart page id
integerDepth to traverse down the page tree.
integer$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'
stringPerms clause
Returns
string Returns the list with a comma in the end (if any pages selected!)
Todo:
Define visibility

Definition at line 147 of file IndexingStatisticsController.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController\listSeveralStats().

◆ hookRequest()

TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController::hookRequest (   $functionName)

Returns an object reference to the hook object if any

Parameters
stringName of the function you want to call / hook key
Returns
object Hook object, if any. Otherwise NULL.
Author
Kasper Skårhøj
Todo:
Define visibility

Definition at line 159 of file IndexingStatisticsController.php.

References $GLOBALS, and TYPO3\CMS\Core\Utility\GeneralUtility\getUserObj().

Referenced by TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController\showStats().

◆ listSeveralStats()

TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController::listSeveralStats (   $title,
  $addwhere,
  $conf 
)

Generates html table with title and several statistics

Parameters
stringtitle for statistic, like 'Last 30 days' or 'Last 24 hours'
stringadd where for sql query
arrayconfiguration: words = max words for results, bid = pageid
Returns
string html table with results
Todo:
Define visibility

Definition at line 92 of file IndexingStatisticsController.php.

References $GLOBALS, and TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController\extGetTreeList().

Referenced by TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController\showStats().

◆ main()

TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController::main ( )

Calls showStats to generate output.

Returns
string html table with results from showStats()
Todo:
Define visibility

Definition at line 38 of file IndexingStatisticsController.php.

References $GLOBALS, TYPO3\CMS\Backend\Utility\BackendUtility\getFuncCheck(), and TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController\showStats().

◆ showStats()

TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController::showStats ( )

Generates html table containing the statistics. Calls listSeveralStats 3 times, for all statistics, statistics of the last 30 days and statistics of the last 24 hours.

Returns
string html table with results
Todo:
Define visibility

Definition at line 56 of file IndexingStatisticsController.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\_GET(), TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController\hookRequest(), and TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController\listSeveralStats().

Referenced by TYPO3\CMS\IndexedSearch\Controller\IndexingStatisticsController\main().