This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Derhansen\SfEventMgtMultireg\ViewHelpers\Registration; | |
use DERHANSEN\SfEventMgt\Domain\Model\Registration; | |
use DERHANSEN\SfEventMgt\Domain\Repository\RegistrationRepository; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
/* | |
* This file is part of the Extension "plain_faq" for TYPO3 CMS. | |
* | |
* For the full copyright and license information, please read the | |
* LICENSE.txt file that was distributed with this source code. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Current intExplode function in v13 | |
function intExplodeOld($delimiter, $string, $removeEmptyValues = false) | |
{ | |
$result = explode($delimiter, $string); | |
foreach ($result as $key => &$value) { | |
if ($removeEmptyValues && trim($value) === '') { | |
unset($result[$key]); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Derhansen\Typo3Dev\Utility; | |
use TYPO3\CMS\Core\Imaging\ImageManipulation\Area; | |
use TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection; | |
use TYPO3\CMS\Core\Imaging\ImageManipulation\InvalidConfigurationException; | |
use TYPO3\CMS\Core\Resource\File; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Redis::connection()->del('queues:myqueue'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The use statements for the fileheader | |
use MyVendor\MyExtension\Domain\Model\Mymodel; | |
use TYPO3\CMS\Core\Database\ConnectionPool; | |
use TYPO3\CMS\Core\Database\Query\QueryBuilder; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper; | |
/** | |
* Returns all matching records for the given list of uids and applies the uidList sorting for the result | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$numJobs = DB::table('jobs')->where('queue', 'myqueue')->count(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
phpinfo(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$numJobs = Redis::connection()->llen('queues:myqueue'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function downloadAction() | |
{ | |
$storage = $this->resourceFactory->getDefaultStorage(); | |
$file = $storage->getFile('test.jpg'); | |
$response = $storage->streamFile($file, true, 'test-filename.jpg'); | |
$this->sendResponse($response); | |
exit(); | |
} | |
protected function sendResponse($response) |
NewerOlder