‪TYPO3CMS  10.4
TYPO3\CMS\Core\Database\QueryView Class Reference

Public Member Functions

 __construct (array $settings=null, $menuItems=null, $moduleName=null)
 
string form ()
 
string makeStoreControl ()
 
array initStoreArray ()
 
array cleanStoreQueryConfigs ($storeQueryConfigs, $storeArray)
 
array addToStoreQueryConfigs ($storeQueryConfigs, $index)
 
int saveQueryInAction ($uid)
 
array loadStoreQueryConfigs ($storeQueryConfigs, $storeIndex, $writeArray)
 
string procesStoreControl ()
 
string queryMaker ()
 
array getQueryResultCode ($type, array $dataRows, $table)
 
string csvValues ($row, $delim=',', $quote='"', $conf = [], $table = '')
 
string search ()
 
string resultRowDisplay ($row, $conf, $table)
 
string getProcessedValueExtra ($table, $fieldName, $fieldValue, $conf, $splitString)
 
string getTreeList ($id, $depth, $begin=0, $permsClause=null)
 
string makeValueList ($fieldName, $fieldValue, $conf, $table, $splitString)
 
string resultRowTitles ($row, $conf)
 
string csvRowTitles ($row, $conf)
 
 setFormName ($formName)
 

Public Attributes

string $storeList = 'search_query_smallparts,search_result_labels,labels_noprefix,show_deleted,queryConfig,queryTable,queryFields,queryLimit,queryOrder,queryOrderDesc,queryOrder2,queryOrder2Desc,queryGroup,search_query_makeQuery'
 
int $noDownloadB = 0
 
array $hookArray = array( )
 

Protected Attributes

string $formName = ''
 
TYPO3 CMS Core Imaging IconFactory $iconFactory
 
array $tableArray = array( )
 
LanguageService $languageService
 
BackendUserAuthentication $backendUserAuthentication
 
array $settings = array( )
 
array $menuItems = array( )
 
string $moduleName
 

Private Member Functions

 renderNoResultsFoundMessage ()
 

Detailed Description

Class used in module tools/dbint (advanced search) and which may hold code specific for that module However the class has a general principle in it which may be used in the web/export module.

Definition at line 41 of file QueryView.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Database\QueryView::__construct ( array  $settings = null,
  $menuItems = null,
  $moduleName = null 
)
Parameters
array$settings‪previously stored in $GLOBALS['SOBE']->MOD_SETTINGS
array$menuItems‪previously stored in $GLOBALS['SOBE']->MOD_MENU
string$moduleName‪previously stored in $GLOBALS['SOBE']->moduleName

Definition at line 93 of file QueryView.php.

References $GLOBALS, TYPO3\CMS\Core\Database\QueryView\$menuItems, TYPO3\CMS\Core\Database\QueryView\$moduleName, and TYPO3\CMS\Core\Database\QueryView\$settings.

Member Function Documentation

◆ addToStoreQueryConfigs()

array TYPO3\CMS\Core\Database\QueryView::addToStoreQueryConfigs (   $storeQueryConfigs,
  $index 
)

Add to store query configs

Parameters
array$storeQueryConfigs
int$index
Returns
‪array

Definition at line 210 of file QueryView.php.

Referenced by TYPO3\CMS\Core\Database\QueryView\procesStoreControl().

◆ cleanStoreQueryConfigs()

array TYPO3\CMS\Core\Database\QueryView::cleanStoreQueryConfigs (   $storeQueryConfigs,
  $storeArray 
)

Clean store query configs

Parameters
array$storeQueryConfigs
array$storeArray
Returns
‪array

Definition at line 191 of file QueryView.php.

Referenced by TYPO3\CMS\Core\Database\QueryView\procesStoreControl().

◆ csvRowTitles()

string TYPO3\CMS\Core\Database\QueryView::csvRowTitles (   $row,
  $conf 
)

CSV row titles

Parameters
array$row
array$conf
Returns
‪string
Todo:
‪Unused?

Definition at line 1168 of file QueryView.php.

◆ csvValues()

string TYPO3\CMS\Core\Database\QueryView::csvValues (   $row,
  $delim = ',',
  $quote = '"',
  $conf = [],
  $table = '' 
)

CSV values

Parameters
array$row
string$delim
string$quote
array$conf
string$table
Returns
‪string A single line of CSV

Definition at line 567 of file QueryView.php.

References TYPO3\CMS\Core\Utility\CsvUtility\csvValues(), and TYPO3\CMS\Core\Database\QueryView\getProcessedValueExtra().

Referenced by TYPO3\CMS\Core\Database\QueryView\getQueryResultCode().

◆ form()

string TYPO3\CMS\Core\Database\QueryView::form ( )

Get form

Returns
‪string

Definition at line 109 of file QueryView.php.

◆ getProcessedValueExtra()

string TYPO3\CMS\Core\Database\QueryView::getProcessedValueExtra (   $table,
  $fieldName,
  $fieldValue,
  $conf,
  $splitString 
)

Get processed value extra

Parameters
string$table
string$fieldName
string$fieldValue
array$conf‪Not used
string$splitString
Returns
‪string

Definition at line 759 of file QueryView.php.

References $fields, $GLOBALS, and TYPO3\CMS\Core\Database\QueryView\makeValueList().

Referenced by TYPO3\CMS\Core\Database\QueryView\csvValues(), and TYPO3\CMS\Core\Database\QueryView\resultRowDisplay().

◆ getQueryResultCode()

array TYPO3\CMS\Core\Database\QueryView::getQueryResultCode (   $type,
array  $dataRows,
  $table 
)

Get query result code

Parameters
string$type
array$dataRows‪Rows to display
string$table
Returns
‪array HTML-code for "header" and "content"
Exceptions

Definition at line 481 of file QueryView.php.

References $GLOBALS, TYPO3\CMS\Core\Database\QueryView\csvValues(), TYPO3\CMS\Core\Database\QueryView\renderNoResultsFoundMessage(), TYPO3\CMS\Core\Database\QueryView\resultRowDisplay(), TYPO3\CMS\Core\Database\QueryView\resultRowTitles(), and TYPO3\CMS\Core\Utility\DebugUtility\viewArray().

Referenced by TYPO3\CMS\Core\Database\QueryView\queryMaker().

◆ getTreeList()

string TYPO3\CMS\Core\Database\QueryView::getTreeList (   $id,
  $depth,
  $begin = 0,
  $permsClause = null 
)

Get tree list

Parameters
int$id
int$depth
int$begin
string$permsClause
Returns
‪string

Definition at line 873 of file QueryView.php.

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

Referenced by TYPO3\CMS\Core\Database\QueryView\makeValueList().

◆ initStoreArray()

array TYPO3\CMS\Core\Database\QueryView::initStoreArray ( )

Init store array

Returns
‪array

Definition at line 172 of file QueryView.php.

Referenced by TYPO3\CMS\Core\Database\QueryView\makeStoreControl(), and TYPO3\CMS\Core\Database\QueryView\procesStoreControl().

◆ loadStoreQueryConfigs()

array TYPO3\CMS\Core\Database\QueryView::loadStoreQueryConfigs (   $storeQueryConfigs,
  $storeIndex,
  $writeArray 
)

Load store query configs

Parameters
array$storeQueryConfigs
int$storeIndex
array$writeArray
Returns
‪array

Definition at line 279 of file QueryView.php.

Referenced by TYPO3\CMS\Core\Database\QueryView\procesStoreControl().

◆ makeStoreControl()

string TYPO3\CMS\Core\Database\QueryView::makeStoreControl ( )

◆ makeValueList()

string TYPO3\CMS\Core\Database\QueryView::makeValueList (   $fieldName,
  $fieldValue,
  $conf,
  $table,
  $splitString 
)

◆ procesStoreControl()

◆ queryMaker()

◆ renderNoResultsFoundMessage()

TYPO3\CMS\Core\Database\QueryView::renderNoResultsFoundMessage ( )
private

◆ resultRowDisplay()

string TYPO3\CMS\Core\Database\QueryView::resultRowDisplay (   $row,
  $conf,
  $table 
)

◆ resultRowTitles()

string TYPO3\CMS\Core\Database\QueryView::resultRowTitles (   $row,
  $conf 
)

Render table header

Parameters
array$row‪Table columns
array$conf‪Table TCA
Returns
‪string HTML of table header

Definition at line 1132 of file QueryView.php.

Referenced by TYPO3\CMS\Core\Database\QueryView\getQueryResultCode(), and TYPO3\CMS\Core\Database\QueryView\search().

◆ saveQueryInAction()

int TYPO3\CMS\Core\Database\QueryView::saveQueryInAction (   $uid)

◆ search()

string TYPO3\CMS\Core\Database\QueryView::search ( )

◆ setFormName()

TYPO3\CMS\Core\Database\QueryView::setFormName (   $formName)

Sets the current name of the input form.

Parameters
string$formName‪The name of the form.

Definition at line 1197 of file QueryView.php.

References TYPO3\CMS\Core\Database\QueryView\$formName.

Member Data Documentation

◆ $backendUserAuthentication

BackendUserAuthentication TYPO3\CMS\Core\Database\QueryView::$backendUserAuthentication
protected

Definition at line 73 of file QueryView.php.

◆ $formName

string TYPO3\CMS\Core\Database\QueryView::$formName = ''
protected

Definition at line 57 of file QueryView.php.

Referenced by TYPO3\CMS\Core\Database\QueryView\setFormName().

◆ $hookArray

array TYPO3\CMS\Core\Database\QueryView::$hookArray = array( )

Definition at line 53 of file QueryView.php.

◆ $iconFactory

TYPO3 CMS Core Imaging IconFactory TYPO3\CMS\Core\Database\QueryView::$iconFactory
protected

Definition at line 61 of file QueryView.php.

◆ $languageService

LanguageService TYPO3\CMS\Core\Database\QueryView::$languageService
protected

Definition at line 69 of file QueryView.php.

◆ $menuItems

array TYPO3\CMS\Core\Database\QueryView::$menuItems = array( )
protected

information on the menu of this module

Definition at line 82 of file QueryView.php.

Referenced by TYPO3\CMS\Core\Database\QueryView\__construct().

◆ $moduleName

string TYPO3\CMS\Core\Database\QueryView::$moduleName
protected

Definition at line 86 of file QueryView.php.

Referenced by TYPO3\CMS\Core\Database\QueryView\__construct().

◆ $noDownloadB

int TYPO3\CMS\Core\Database\QueryView::$noDownloadB = 0

Definition at line 49 of file QueryView.php.

◆ $settings

array TYPO3\CMS\Core\Database\QueryView::$settings = array( )
protected

Settings, usually from the controller (previously known from $GLOBALS['SOBE']->MOD_SETTINGS

Definition at line 78 of file QueryView.php.

Referenced by TYPO3\CMS\Core\Database\QueryView\__construct().

◆ $storeList

string TYPO3\CMS\Core\Database\QueryView::$storeList = 'search_query_smallparts,search_result_labels,labels_noprefix,show_deleted,queryConfig,queryTable,queryFields,queryLimit,queryOrder,queryOrderDesc,queryOrder2,queryOrder2Desc,queryGroup,search_query_makeQuery'

Definition at line 45 of file QueryView.php.

◆ $tableArray

array TYPO3\CMS\Core\Database\QueryView::$tableArray = array( )
protected

Definition at line 65 of file QueryView.php.