TYPO3
7.6
|
Public Member Functions | |
__construct ($table, $config) | |
queryTable (&$params, $recursionCounter=0) | |
Protected Member Functions | |
prepareSelectStatement () | |
getAllSubpagesOfPage ($uid, $depth=99) | |
prepareOrderByStatement () | |
manipulateRecord (&$row) | |
checkRecordAccess ($row, $uid) | |
makeWorkspaceOverlay (&$row) | |
getIcon ($row) | |
getRecordPath (&$row, $uid) | |
getLabel ($row) | |
renderRecord ($row, $entry) | |
getLanguageService () | |
Protected Attributes | |
$table = '' | |
$mmForeignTable = '' | |
$selectClause = '' | |
$orderByStatement = '' | |
$addWhere = '' | |
$config = array() | |
$allowedPages = array() | |
$maxItems = 10 | |
$params = array() | |
$iconFactory | |
Default implementation of a handler class for an ajax record selector.
Normally other implementations should be inherited from this one. queryTable() should not be overwritten under normal circumstances.
Definition at line 29 of file SuggestWizardDefaultReceiver.php.
__construct | ( | $table, | |
$config | |||
) |
The constructor of this class
string | $table | The table to query |
array | $config | The configuration (TCA overlayed with TSconfig) to use for this selector |
Definition at line 105 of file SuggestWizardDefaultReceiver.php.
References SuggestWizardDefaultReceiver\$allowedPages, SuggestWizardDefaultReceiver\$config, $GLOBALS, SuggestWizardDefaultReceiver\$table, SuggestWizardDefaultReceiver\getAllSubpagesOfPage(), GeneralUtility\makeInstance(), and GeneralUtility\trimExplode().
|
protected |
Selects whether the logged in Backend User is allowed to read a specific record
array | $row | |
int | $uid |
Definition at line 309 of file SuggestWizardDefaultReceiver.php.
References $GLOBALS, SuggestWizardDefaultReceiver\$table, elseif, and BackendUtility\readPageAccess().
Referenced by SuggestWizardDefaultReceiver\queryTable().
|
protected |
Selects all subpages of one page, optionally only up to a certain level
int | $uid | The uid of the page |
int | $depth | The depth to select up to. Defaults to 99 |
Definition at line 260 of file SuggestWizardDefaultReceiver.php.
References $GLOBALS.
Referenced by SuggestWizardDefaultReceiver\__construct().
|
protected |
Return the icon for a record - just a wrapper for two functions from
array | $row | The record to get the icon for |
Definition at line 348 of file SuggestWizardDefaultReceiver.php.
References GeneralUtility\logDeprecatedFunction(), and Icon\SIZE_SMALL.
|
protected |
Returns a label for a given record; usually only a wrapper for ::getRecordTitle
array | $row | The record to get the label for |
Definition at line 384 of file SuggestWizardDefaultReceiver.php.
References BackendUtility\getRecordTitle().
Referenced by SuggestWizardDefaultReceiver\queryTable().
|
protected |
Definition at line 416 of file SuggestWizardDefaultReceiver.php.
References $GLOBALS.
Referenced by SuggestWizardDefaultReceiver\queryTable().
|
protected |
Returns the path for a record. Is the whole path for all records except pages - for these the last part is cut off, because it contains the pagetitle itself, which would be double information
The path is returned uncut, cutting has to be done by calling function.
array | $row | The row |
array | $record | The record |
Definition at line 364 of file SuggestWizardDefaultReceiver.php.
References BackendUtility\getRecordPath().
Referenced by SuggestWizardDefaultReceiver\queryTable().
|
protected |
Overlay the given record with its workspace-version, if any
array | The record to get the workspace version for |
Definition at line 333 of file SuggestWizardDefaultReceiver.php.
References $GLOBALS, and BackendUtility\workspaceOL().
Referenced by SuggestWizardDefaultReceiver\queryTable().
|
protected |
Manipulate a record before using it to render the selector; may be used to replace a MM-relation etc.
array | $row |
Definition at line 298 of file SuggestWizardDefaultReceiver.php.
Referenced by SuggestWizardDefaultReceiver\queryTable().
|
protected |
Prepares the clause by which the result elements are sorted. See description of ORDER BY in SQL standard for reference.
Definition at line 286 of file SuggestWizardDefaultReceiver.php.
References $GLOBALS, and SuggestWizardDefaultReceiver\$table.
Referenced by SuggestWizardDefaultReceiver\queryTable().
|
protected |
Prepare the statement for selecting the records which will be returned to the selector. May also return some other records (e.g. from a mm-table) which will be used later on to select the real records
Definition at line 215 of file SuggestWizardDefaultReceiver.php.
References SuggestWizardDefaultReceiver\$addWhere, $GLOBALS, SuggestWizardDefaultReceiver\$table, and GeneralUtility\trimExplode().
Referenced by SuggestWizardDefaultReceiver\queryTable().
queryTable | ( | & | $params, |
$recursionCounter = 0 |
|||
) |
Queries a table for records and completely processes them
Returns a two-dimensional array of almost finished records; the only need to be put into a -structure
If you subclass this class, you will most likely only want to overwrite the functions called from here, but not this function itself
array | $params | |
int | $recursionCounter | The parent object |
Definition at line 149 of file SuggestWizardDefaultReceiver.php.
References $GLOBALS, SuggestWizardDefaultReceiver\$params, SuggestWizardDefaultReceiver\checkRecordAccess(), SuggestWizardDefaultReceiver\getLabel(), SuggestWizardDefaultReceiver\getLanguageService(), SuggestWizardDefaultReceiver\getRecordPath(), SuggestWizardDefaultReceiver\makeWorkspaceOverlay(), SuggestWizardDefaultReceiver\manipulateRecord(), SuggestWizardDefaultReceiver\prepareOrderByStatement(), SuggestWizardDefaultReceiver\prepareSelectStatement(), SuggestWizardDefaultReceiver\renderRecord(), and Icon\SIZE_SMALL.
|
protected |
Calls a user function for rendering the page.
This user function should manipulate $entry, especially $entry['text'].
array | $row | The row |
array | $entry | The entry to render |
Definition at line 398 of file SuggestWizardDefaultReceiver.php.
References SuggestWizardDefaultReceiver\$params, and GeneralUtility\callUserFunction().
Referenced by SuggestWizardDefaultReceiver\queryTable().
|
protected |
Definition at line 66 of file SuggestWizardDefaultReceiver.php.
Referenced by SuggestWizardDefaultReceiver\prepareSelectStatement().
|
protected |
Definition at line 80 of file SuggestWizardDefaultReceiver.php.
Referenced by SuggestWizardDefaultReceiver\__construct().
|
protected |
Definition at line 73 of file SuggestWizardDefaultReceiver.php.
Referenced by SuggestWizardDefaultReceiver\__construct().
|
protected |
Definition at line 97 of file SuggestWizardDefaultReceiver.php.
|
protected |
Definition at line 87 of file SuggestWizardDefaultReceiver.php.
|
protected |
Definition at line 44 of file SuggestWizardDefaultReceiver.php.
|
protected |
Definition at line 59 of file SuggestWizardDefaultReceiver.php.
|
protected |
Definition at line 92 of file SuggestWizardDefaultReceiver.php.
Referenced by SuggestWizardDefaultReceiver\queryTable(), and SuggestWizardDefaultReceiver\renderRecord().
|
protected |
Definition at line 52 of file SuggestWizardDefaultReceiver.php.
|
protected |