2 namespace TYPO3\CMS\Backend\RecordList;
20 use TYPO3\CMS\Recordlist\RecordList\DatabaseRecordList;
53 $code =
'<i>[' . $this->
getLanguageService()->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.no_title',
true) .
']</i>';
60 $ATag =
'<a href="#" data-close="0" title="' . $this->
getLanguageService()->getLL(
'addToList',
true) .
'">';
61 $ATag_alt =
'<a href="#" data-close="1" title="' . $this->
getLanguageService()->getLL(
'addToList',
true) .
'">';
63 $out =
'<span data-uid="' . htmlspecialchars($row[
'uid']) .
'" data-table="' . htmlspecialchars(
$table) .
'" data-title="' . htmlspecialchars($title) .
'" data-icon="' . htmlspecialchars($ficon) .
'">';
64 $out .= $ATag . $this->iconFactory->getIcon(
'actions-edit-add',
Icon::SIZE_SMALL)->render() . $ATag_e . $ATag_alt . $code . $ATag_e;
80 if ($this->relatingField && $this->relatingTable) {
82 if (is_array($tcaFieldConfig[
'filter'])) {
83 foreach ($tcaFieldConfig[
'filter'] as $filter) {
84 if (!$filter[
'userFunc']) {
87 $parameters = $filter[
'parameters'] ?: array();
88 $parameters[
'values'] = array(
$table .
'_' . $row[
'uid']);
89 $parameters[
'tcaFieldConfig'] = $tcaFieldConfig;
91 if (empty($valueArray)) {
109 if (isset(
$GLOBALS[
'TCA'][$tableName])) {
110 $this->relatingTable = $tableName;
111 if ($fieldName && isset(
$GLOBALS[
'TCA'][$tableName][
'columns'][$fieldName])) {
112 $this->relatingField = $fieldName;
125 $this->allFields =
true;
126 parent::generateList();