Compare commits
3 Commits
14e1490a22
...
9108dab451
Author | SHA1 | Date | |
---|---|---|---|
9108dab451 | |||
5cf947a1da | |||
6388fd7bb0 |
@ -171,6 +171,12 @@ class ApiUtility
|
|||||||
) {
|
) {
|
||||||
$rowResult[$attributeName] = [];
|
$rowResult[$attributeName] = [];
|
||||||
foreach ($methodResult as $object) {
|
foreach ($methodResult as $object) {
|
||||||
|
if (!method_exists(
|
||||||
|
$methodResult,
|
||||||
|
'getOriginalResource'
|
||||||
|
)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$rowResult[$attributeName]
|
$rowResult[$attributeName]
|
||||||
= $this->filereferenceToApi(
|
= $this->filereferenceToApi(
|
||||||
$methodResult->getOriginalResource()
|
$methodResult->getOriginalResource()
|
||||||
|
@ -218,12 +218,15 @@ class MailUtility
|
|||||||
$mail = GeneralUtility::makeInstance(MailMessage::class);
|
$mail = GeneralUtility::makeInstance(MailMessage::class);
|
||||||
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
if (version_compare(TYPO3_branch, '10.0', '>=')) {
|
||||||
$mail->subject($subject);
|
$mail->subject($subject);
|
||||||
$mail->from($sender);
|
if ($sender) {
|
||||||
}else {
|
$mail->from($sender);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
$mail->setSubject($subject);
|
$mail->setSubject($subject);
|
||||||
$mail->setFrom($sender);
|
if ($sender) {
|
||||||
|
$mail->setFrom($sender);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$bodydataText = [];
|
$bodydataText = [];
|
||||||
$bodydataHtml = [];
|
$bodydataHtml = [];
|
||||||
foreach ($data as $row) {
|
foreach ($data as $row) {
|
||||||
|
43
Classes/Utility/SessionUtility.php
Normal file
43
Classes/Utility/SessionUtility.php
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
<?php
|
||||||
|
namespace Cjel\TemplatesAide\Utility;
|
||||||
|
|
||||||
|
/***
|
||||||
|
*
|
||||||
|
* This file is part of the "Templates Aide" Extension for TYPO3 CMS.
|
||||||
|
*
|
||||||
|
* For the full copyright and license information, please read the
|
||||||
|
* LICENSE.txt file that was distributed with this source code.
|
||||||
|
*
|
||||||
|
* filey as part of the extension by 2024 Philipp Dieter <philipp.dieter@attic-media.net>
|
||||||
|
*
|
||||||
|
***/
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
class SessionUtility
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static function setSessionValue(
|
||||||
|
$type, $key, $value
|
||||||
|
) {
|
||||||
|
$request = $GLOBALS['TYPO3_REQUEST'];
|
||||||
|
$frontendUser = $request->getAttribute('frontend.user');
|
||||||
|
$frontendUser->setKey($type, $key, $value);
|
||||||
|
$frontendUser->storeSessionData();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public static function getSessionValue(
|
||||||
|
$type, $key
|
||||||
|
) {
|
||||||
|
$request = $GLOBALS['TYPO3_REQUEST'];
|
||||||
|
$frontendUser = $request->getAttribute('frontend.user');
|
||||||
|
return $frontendUser->getKey($type, $key);
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user