TYPO3  7.6
Public Member Functions | Public Attributes | Protected Attributes | List of all members
QueryView Class Reference

Public Member Functions

 __construct ()
 
 form ()
 
 makeStoreControl ()
 
 initStoreArray ()
 
 cleanStoreQueryConfigs ($storeQueryConfigs, $storeArray)
 
 addToStoreQueryConfigs ($storeQueryConfigs, $index)
 
 loadStoreQueryConfigs ($storeQueryConfigs, $storeIndex, $writeArray)
 
 procesStoreControl ()
 
 queryMaker ()
 
 getQueryResultCode ($mQ, $res, $table)
 
 csvValues ($row, $delim= ',', $quote= '"', $conf = array(), $table = '')
 
 tableWrap ($str)
 
 search ()
 
 resultRowDisplay ($row, $conf, $table)
 
 getProcessedValueExtra ($table, $fieldName, $fieldValue, $conf, $splitString)
 
 getTreeList ($id, $depth, $begin=0, $perms_clause)
 
 makeValueList ($fieldName, $fieldValue, $conf, $table, $splitString)
 
 resultRowTitles ($row, $conf, $table)
 
 csvRowTitles ($row, $conf, $table)
 
 setFormName ($formName)
 

Public Attributes

 $storeList = 'search_query_smallparts,search_result_labels,labels_noprefix,show_deleted,queryConfig,queryTable,queryFields,queryLimit,queryOrder,queryOrderDesc,queryOrder2,queryOrder2Desc,queryGroup,search_query_makeQuery'
 
 $downloadScript = 'index.php'
 
 $formW = 48
 
 $noDownloadB = 0
 
 $hookArray = array()
 

Protected Attributes

 $formName = ''
 
 $iconFactory
 

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 26 of file QueryView.php.

Constructor & Destructor Documentation

__construct ( )

constructor

Definition at line 66 of file QueryView.php.

References $GLOBALS, and GeneralUtility\makeInstance().

Member Function Documentation

addToStoreQueryConfigs (   $storeQueryConfigs,
  $index 
)

Add to store query configs

Parameters
array$storeQueryConfigs
int$index
Returns
array

Definition at line 171 of file QueryView.php.

References $GLOBALS.

Referenced by QueryView\procesStoreControl().

cleanStoreQueryConfigs (   $storeQueryConfigs,
  $storeArray 
)

Clean store query configs

Parameters
array$storeQueryConfigs
array$storeArray
Returns
array

Definition at line 152 of file QueryView.php.

Referenced by QueryView\procesStoreControl().

csvRowTitles (   $row,
  $conf,
  $table 
)

CSV row titles

Parameters
array$row
array$conf
mixed$tableNot used
Returns
string

Definition at line 1007 of file QueryView.php.

csvValues (   $row,
  $delim = ',',
  $quote = '"',
  $conf = array(),
  $table = '' 
)

CSV values

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

Definition at line 472 of file QueryView.php.

Referenced by QueryView\getQueryResultCode().

form ( )

Get form

Returns
string

Definition at line 77 of file QueryView.php.

References $GLOBALS.

getProcessedValueExtra (   $table,
  $fieldName,
  $fieldValue,
  $conf,
  $splitString 
)

Get processed value extra

Parameters
string$table
string$fieldName
string$fieldValue
array$confNot used
string$splitString
Returns
string

Definition at line 613 of file QueryView.php.

getQueryResultCode (   $mQ,
  $res,
  $table 
)

Get query result code

Parameters
string$mQ
bool | \mysqli_result | object$resMySQLi result object / DBAL object
string$table
Returns
string

Definition at line 389 of file QueryView.php.

References $GLOBALS, GeneralUtility\callUserFunction(), QueryView\csvValues(), QueryView\resultRowDisplay(), and QueryView\resultRowTitles().

Referenced by QueryView\queryMaker().

getTreeList (   $id,
  $depth,
  $begin = 0,
  $perms_clause 
)

Get tree list

Parameters
int$id
int$depth
int$begin
string$perms_clause
Returns
string

Definition at line 728 of file QueryView.php.

initStoreArray ( )

Init store array

Returns
array

Definition at line 133 of file QueryView.php.

References $GLOBALS.

Referenced by QueryView\makeStoreControl(), and QueryView\procesStoreControl().

loadStoreQueryConfigs (   $storeQueryConfigs,
  $storeIndex,
  $writeArray 
)

Load store query configs

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

Definition at line 232 of file QueryView.php.

Referenced by QueryView\procesStoreControl().

makeStoreControl ( )

Make store control

Returns
string

Definition at line 94 of file QueryView.php.

References $GLOBALS, and QueryView\initStoreArray().

Referenced by QueryView\queryMaker().

makeValueList (   $fieldName,
  $fieldValue,
  $conf,
  $table,
  $splitString 
)

Make value list

Parameters
string$fieldName
string$fieldValue
array$conf
string$table
string$splitString
Returns
string

Definition at line 766 of file QueryView.php.

procesStoreControl ( )
queryMaker ( )
resultRowDisplay (   $row,
  $conf,
  $table 
)

Result row display

Parameters
array$row
array$conf
string$table
Returns
string

Definition at line 548 of file QueryView.php.

Referenced by QueryView\getQueryResultCode().

resultRowTitles (   $row,
  $conf,
  $table 
)

Render table header

Parameters
array$rowTable columns
array$confTable TCA
string$tableTable name
Returns
string HTML of table header

Definition at line 975 of file QueryView.php.

Referenced by QueryView\getQueryResultCode().

search ( )

Search

Returns
string

Definition at line 499 of file QueryView.php.

setFormName (   $formName)

Sets the current name of the input form.

Parameters
string$formNameThe name of the form.
Returns
void

Definition at line 1037 of file QueryView.php.

tableWrap (   $str)

Table wrap

Parameters
string$str
Returns
string

Definition at line 489 of file QueryView.php.

Referenced by QueryView\queryMaker().

Member Data Documentation

$downloadScript = 'index.php'

Definition at line 36 of file QueryView.php.

$formName = ''
protected

Definition at line 56 of file QueryView.php.

$formW = 48

Definition at line 41 of file QueryView.php.

$hookArray = array()

Definition at line 51 of file QueryView.php.

$iconFactory
protected

Definition at line 61 of file QueryView.php.

$noDownloadB = 0

Definition at line 46 of file QueryView.php.

$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 31 of file QueryView.php.