TYPO3
7.6
|
Public Member Functions | |
generateGridListFromVersions ($versions, $parameter, $currentWorkspace) | |
Public Attributes | |
const | SIGNAL_GenerateDataArray_BeforeCaching = 'generateDataArray.beforeCaching' |
const | SIGNAL_GenerateDataArray_PostProcesss = 'generateDataArray.postProcess' |
const | SIGNAL_GetDataArray_PostProcesss = 'getDataArray.postProcess' |
const | SIGNAL_SortDataArray_PostProcesss = 'sortDataArray.postProcess' |
const | GridColumn_Collection = 'Workspaces_Collection' |
const | GridColumn_CollectionLevel = 'Workspaces_CollectionLevel' |
const | GridColumn_CollectionParent = 'Workspaces_CollectionParent' |
const | GridColumn_CollectionCurrent = 'Workspaces_CollectionCurrent' |
const | GridColumn_CollectionChildren = 'Workspaces_CollectionChildren' |
Protected Member Functions | |
resolveDataArrayDependencies () | |
getDataArray ($start, $limit) | |
initializeWorkspacesCachingFramework () | |
setDataArrayIntoCache (array $versions, $filterTxt) | |
getDataArrayFromCache (array $versions, $filterTxt) | |
calculateHash (array $versions, $filterTxt) | |
sortDataArray () | |
intSort (array $a, array $b) | |
stringSort ($a, $b) | |
isSortable (array $a, array $b) | |
isFilterTextInVisibleColumns ($filterText, array $versionArray) | |
workspaceState ($stateId, $hiddenOnline=false, $hiddenOffline=false) | |
getTcaEnableColumnsFieldName ($table, $type) | |
getLanguageValue ($table, array $record) | |
getSystemLanguageValue ($id, $key) | |
getIntegrityService () | |
emitSignal ($signalName) | |
getDependencyCollectionService () | |
getAdditionalColumnService () | |
getSignalSlotDispatcher () | |
getObjectManager () | |
Protected Attributes | |
$currentWorkspace = null | |
$dataArray = array() | |
$sort = '' | |
$sortDir = '' | |
$workspacesCache = null | |
$systemLanguages | |
$integrityService | |
Grid data service
Definition at line 25 of file GridDataService.php.
|
protected |
Calculates the hash value of the used workspace, the user id, the versions array, the filter text, the sorting attribute, the workspace selected in grid and the sorting direction.
array | $versions | All records uids etc. First key is table name, second key incremental integer. Records are associative arrays with uid and t3ver_oid fields. The pid of the online record is found as "livepid" the pid of the offline record is found in "wspid |
string | $filterTxt | The given filter text from the grid. |
Definition at line 330 of file GridDataService.php.
References $GLOBALS.
Referenced by GridDataService\getDataArrayFromCache(), and GridDataService\setDataArrayIntoCache().
|
protected |
Emits a signal to be handled by any registered slots.
string | $signalName | Name of the signal |
Definition at line 624 of file GridDataService.php.
References GridDataService\getSignalSlotDispatcher().
Referenced by GridDataService\getDataArray(), and GridDataService\sortDataArray().
generateGridListFromVersions | ( | $versions, | |
$parameter, | |||
$currentWorkspace | |||
) |
Generates grid list array from given versions.
array | $versions | All records uids etc. First key is table name, second key incremental integer. Records are associative arrays with uid and t3ver_oid fields. The pid of the online record is found as "livepid" the pid of the offline record is found in "wspid |
\stdClass | $parameter | Parameters as submitted by JavaScript component |
int | $currentWorkspace | The current workspace |
\InvalidArgumentException |
Definition at line 90 of file GridDataService.php.
References GridDataService\$currentWorkspace, and GridDataService\getDataArray().
|
protected |
Definition at line 643 of file GridDataService.php.
References GridDataService\getObjectManager().
|
protected |
Gets the data array by considering the page to be shown in the grid view.
int | $start | |
int | $limit |
Definition at line 256 of file GridDataService.php.
References GridDataService\emitSignal().
Referenced by GridDataService\generateGridListFromVersions().
|
protected |
Checks if a cache entry is given for given versions and filter text and tries to load the data array from cache.
array | $versions | All records uids etc. First key is table name, second key incremental integer. Records are associative arrays with uid and t3ver_oid fields. The pid of the online record is found as "livepid" the pid of the offline record is found in "wspid |
string | $filterTxt | The given filter text from the grid. |
Definition at line 311 of file GridDataService.php.
References GridDataService\calculateHash().
|
protected |
Definition at line 635 of file GridDataService.php.
References GeneralUtility\makeInstance().
Referenced by GridDataService\resolveDataArrayDependencies().
|
protected |
Gets an instance of the integrity service.
Definition at line 610 of file GridDataService.php.
References GridDataService\$integrityService, and GeneralUtility\makeInstance().
|
protected |
Gets the used language value (sys_language.uid) of a given database record.
string | $table | Name of the table |
array | $record | Database record |
Definition at line 560 of file GridDataService.php.
References $GLOBALS, and BackendUtility\isTableLocalizable().
|
protected |
Definition at line 659 of file GridDataService.php.
References GeneralUtility\makeInstance().
Referenced by GridDataService\getAdditionalColumnService(), and GridDataService\getSignalSlotDispatcher().
|
protected |
Definition at line 651 of file GridDataService.php.
References GridDataService\getObjectManager().
Referenced by GridDataService\emitSignal().
|
protected |
Gets a named value of the available sys_language elements.
int | $id | sys_language uid |
string | $key | Name of the value to be fetched (e.g. title) |
Definition at line 580 of file GridDataService.php.
References GridDataService\$systemLanguages.
|
protected |
Gets the field name of the enable-columns as defined in $TCA.
string | $table | Name of the table |
string | $type | Type to be fetches (e.g. 'disabled', 'starttime', 'endtime', 'fe_group) |
Definition at line 541 of file GridDataService.php.
References $GLOBALS.
|
protected |
Initializes the workspace cache
Definition at line 287 of file GridDataService.php.
References GeneralUtility\makeInstance().
|
protected |
Implements individual sorting for columns based on integer comparison.
array | $a | First value |
array | $b | Second value |
Definition at line 394 of file GridDataService.php.
References GridDataService\$sort, elseif, and GridDataService\isSortable().
|
protected |
Determines whether the text used to filter the results is part of a column that is visible in the grid view.
string | $filterText | |
array | $versionArray |
Definition at line 473 of file GridDataService.php.
References $GLOBALS.
|
protected |
Determines whether dataArray elements are sortable. Only elements on the first level (0) or below the same parent element are directly sortable.
array | $a | |
array | $b |
Definition at line 457 of file GridDataService.php.
Referenced by GridDataService\intSort(), and GridDataService\stringSort().
|
protected |
Resolves dependencies of nested structures and sort data elements considering these dependencies.
Definition at line 237 of file GridDataService.php.
References GridDataService\getDependencyCollectionService().
|
protected |
Puts the generated dataArray into the workspace cache.
array | $versions | All records uids etc. First key is table name, second key incremental integer. Records are associative arrays with uid and t3ver_oid fields. The pid of the online record is found as "livepid" the pid of the offline record is found in "wspid |
string | $filterTxt | The given filter text from the grid. |
Definition at line 298 of file GridDataService.php.
References $GLOBALS, and GridDataService\calculateHash().
|
protected |
Performs sorting on the data array accordant to the selected column in the grid view to be used for sorting.
Definition at line 351 of file GridDataService.php.
References GridDataService\emitSignal(), and GeneralUtility\SYSLOG_SEVERITY_ERROR.
|
protected |
Implements individual sorting for columns based on string comparison.
string | $a | First value |
string | $b | Second value |
Definition at line 425 of file GridDataService.php.
References elseif, and GridDataService\isSortable().
|
protected |
Gets the state of a given state value.
int | $stateId | stateId of offline record |
bool | $hiddenOnline | hidden status of online record |
bool | $hiddenOffline | hidden status of offline record |
Definition at line 510 of file GridDataService.php.
References elseif.
|
protected |
Definition at line 43 of file GridDataService.php.
Referenced by GridDataService\generateGridListFromVersions().
|
protected |
Definition at line 50 of file GridDataService.php.
|
protected |
Definition at line 79 of file GridDataService.php.
Referenced by GridDataService\getIntegrityService().
|
protected |
Definition at line 57 of file GridDataService.php.
Referenced by GridDataService\intSort().
|
protected |
Definition at line 64 of file GridDataService.php.
|
protected |
Definition at line 74 of file GridDataService.php.
Referenced by GridDataService\getSystemLanguageValue().
|
protected |
Definition at line 69 of file GridDataService.php.
const GridColumn_Collection = 'Workspaces_Collection' |
Definition at line 32 of file GridDataService.php.
Referenced by CollectionService\resolveDataArrayChildDependencies().
const GridColumn_CollectionChildren = 'Workspaces_CollectionChildren' |
Definition at line 36 of file GridDataService.php.
Referenced by CollectionService\resolveDataArrayChildDependencies().
const GridColumn_CollectionCurrent = 'Workspaces_CollectionCurrent' |
Definition at line 35 of file GridDataService.php.
Referenced by CollectionService\resolveDataArrayChildDependencies().
const GridColumn_CollectionLevel = 'Workspaces_CollectionLevel' |
Definition at line 33 of file GridDataService.php.
Referenced by CollectionService\resolveDataArrayChildDependencies().
const GridColumn_CollectionParent = 'Workspaces_CollectionParent' |
Definition at line 34 of file GridDataService.php.
Referenced by CollectionService\resolveDataArrayChildDependencies().
const SIGNAL_GenerateDataArray_BeforeCaching = 'generateDataArray.beforeCaching' |
Definition at line 27 of file GridDataService.php.
const SIGNAL_GenerateDataArray_PostProcesss = 'generateDataArray.postProcess' |
Definition at line 28 of file GridDataService.php.
const SIGNAL_GetDataArray_PostProcesss = 'getDataArray.postProcess' |
Definition at line 29 of file GridDataService.php.
const SIGNAL_SortDataArray_PostProcesss = 'sortDataArray.postProcess' |
Definition at line 30 of file GridDataService.php.