53 $code =
'<i>[' . htmlspecialchars($this->
getLanguageService()->sL(
'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.no_title')) .
']</i>';
60 $ATag =
'<a href="#" data-close="0" title="' . htmlspecialchars($this->
getLanguageService()->getLL(
'addToList')) .
'">';
61 $ATag_alt =
'<a href="#" data-close="1" title="' . htmlspecialchars($this->
getLanguageService()->getLL(
'addToList')) .
'">';
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-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'] ?: [];
88 $parameters[
'values'] = [
$table .
'_' . $row[
'uid']];
89 $parameters[
'tcaFieldConfig'] = $tcaFieldConfig;
90 $valueArray = GeneralUtility::callUserFunction($filter[
'userFunc'], $parameters, $this);
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;
124 $this->allFields =
true;
125 parent::generateList();