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
plugin.tx_myext_myplugin { | |
persistence { | |
storagePid = {$plugin.tx_myext_myplugin.persistence.storagePid} | |
} | |
} |
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
plugin.tx_myext_myplugin { | |
persistence { | |
# cat=plugin.tx_myext_myplugin//a; type=string; label=Default storage PID | |
storagePid = | |
} | |
} |
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
class DateTime#1 (3) { | |
public $date => | |
string(26) "0001-01-01 19:12:17.000000" | |
public $timezone_type => | |
int(3) | |
public $timezone => | |
string(13) "Europe/Berlin" | |
} |
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
class DateTime#1 (3) { | |
public $date => | |
string(26) "0016-01-01 18:56:23.000000" | |
public $timezone_type => | |
int(3) | |
public $timezone => | |
string(13) "Europe/Berlin" | |
} |
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
class DateTime#1 (3) { | |
public $date => | |
string(26) "2016-01-01 18:56:23.000000" | |
public $timezone_type => | |
int(3) | |
public $timezone => | |
string(13) "Europe/Berlin" | |
} |
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 initializeCreateAction() | |
{ | |
$this->arguments->getArgument('mymodel') | |
->getPropertyMappingConfiguration() | |
->forProperty('mydate') | |
->setTypeConverterOption( | |
'TYPO3\\CMS\\Extbase\\Property\\TypeConverter\\DateTimeConverter', | |
DateTimeConverter::CONFIGURATION_DATE_FORMAT, | |
'd.m.Y' | |
); |
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
config.tx_extbase{ | |
persistence { | |
classes { | |
TYPO3\CMS\Extbase\Domain\Model\FrontendUser { | |
subclasses { | |
0 = Vendor\Extension\Domain\Model\FrontendUser | |
} | |
} | |
Vendor\Extension\Domain\Model\FrontendUser { | |
mapping { |
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 | |
defined('TYPO3_MODE') or die(); | |
$fields = array ( | |
'deleted' => array( | |
'exclude' => 1, | |
'label' => 'Deleted', | |
'config' => array( | |
'type' => 'check', | |
), |
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 Vender\Extension\Domain\Model; | |
class FrontendUser extends \TYPO3\CMS\Extbase\Domain\Model\FrontendUser | |
{ | |
/** | |
* @var bool | |
*/ |