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 | |
use TYPO3\CMS\Core\Database\ConnectionPool; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
// insert into tt_content (header, crdate, pid) VALUES ("New content", 123456789, 123); | |
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tt_content'); | |
$queryBuilder | |
->insert('tt_content') | |
->values([ | |
'header' => 'New content', |
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 | |
/** | |
* @param FilterDto $filterDto | |
* @return string | |
*/ | |
protected function getSqlForRadialSearch(FilterDto $filterDto): string | |
{ | |
$latitude = $filterDto->getLatitudeFromZip(); | |
$longitude = $filterDto->getLongitudeFromZip(); |
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 In2code\Extkey\Hooks; | |
/** | |
* Class RealurlDecoding | |
*/ | |
class RealurlDecoding | |
{ | |
/** |
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 In2code\In2template\Migration\Utility; | |
/** | |
* Class StringUtility | |
*/ | |
class StringUtility | |
{ | |
/** |
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 In2code\Contacts\Controller; | |
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController; | |
/** | |
* Class ContactController | |
*/ | |
class ContactController extends ActionController | |
{ |
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 mapProperties(): AnyModel | |
{ | |
$properties = [ | |
'uid' => 123, | |
'pid' => 123, | |
'firstname' => 'Alex', | |
'lastname' => 'Kellner' | |
'email' => '[email protected]' | |
]; | |
$dataMapper = $this->objectManager->get(TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper::class); |
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
# Just copy all tables from plural to singular naming | |
create table tx_powermail_domain_model_form LIKE tx_powermail_domain_model_forms; | |
insert tx_powermail_domain_model_form select * from tx_powermail_domain_model_forms; | |
create table tx_powermail_domain_model_page LIKE tx_powermail_domain_model_pages; | |
insert tx_powermail_domain_model_page select * from tx_powermail_domain_model_pages; | |
create table tx_powermail_domain_model_field LIKE tx_powermail_domain_model_fields; | |
insert tx_powermail_domain_model_field select * from tx_powermail_domain_model_fields; |
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 In2code\Lux\ViewHelpers\Format; | |
use TYPO3\CMS\Extbase\Utility\LocalizationUtility; | |
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; | |
/** | |
* Class ReadableDateViewHelper | |
* |
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 Unitue\Project\Hooks; | |
use TYPO3\CMS\Backend\Controller\PageLayoutController; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
use TYPO3\CMS\Extbase\Mvc\Exception\InvalidExtensionNameException; | |
use TYPO3\CMS\Fluid\View\StandaloneView; | |
use Unitue\Project\Utility\DatabaseUtility; | |
use Unitue\Project\Utility\ObjectUtility; |
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 TYPO3\CMS\Core\Utility; | |
use GuzzleHttp\Exception\RequestException; | |
use TYPO3\CMS\Core\Core\ApplicationContext; | |
use TYPO3\CMS\Core\Core\ClassLoadingInformation; | |
use TYPO3\CMS\Core\Crypto\Random; | |
use TYPO3\CMS\Core\Database\ConnectionPool; | |
use TYPO3\CMS\Core\Http\RequestFactory; | |
use TYPO3\CMS\Core\Service\OpcodeCacheService; |
OlderNewer