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\Context\Context; | |
use TYPO3\CMS\Core\Utility\GeneralUtility; | |
// ... | |
$context = GeneralUtility::makeInstance(Context::class); | |
/** @var TYPO3\CMS\Core\Site\Entity\Site */ |
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
# Load one of these files | |
source /usr/lib/git-core/git-sh-prompt | |
source /usr/share/git-core/contrib/completion/git-prompt.sh | |
source /usr/local/git/contrib/completion/git-prompt.sh | |
source /etc/bash_completion.d/git | |
# Set flags | |
GIT_PS1_SHOWDIRTYSTATE=true | |
GIT_PS1_SHOWUNTRACKEDFILES=true |
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
<?php | |
namespace AppZap\Tripshop\Persistence; | |
use TYPO3\CMS\Extbase\Persistence\Generic\Qom\Statement; | |
class QueryResult extends \TYPO3\CMS\Extbase\Persistence\Generic\QueryResult | |
{ | |
/** | |
* Overwrites the original implementation of Extbase | |
* |
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
<div xmlns="http://www.w3.org/1999/xhtml" lang="en" | |
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers" | |
f:schemaLocation="https://fluidtypo3.org/schemas/fluid-master.xsd" | |
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers" | |
flux:schemaLocation="https://fluidtypo3.org/schemas/flux-master.xsd" | |
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers" | |
v:schemaLocation="https://fluidtypo3.org/schemas/vhs-master.xsd"> | |
<f:layout name="Page" /> | |
<f:section name="Configuration"> |
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 MyVendor\MyExtension\Property\TypeConverters | |
use TYPO3\CMS\Extbase\Property\TypeConverter\PersistentObjectConverter | |
class MyPersistentObjectConverter extends PersistentObjectConverter { | |
/** | |
* @var string | |
*/ |
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
# Formel von Dr. Roland Brodbeck, Calsky | |
# http://lexikon.astronomie.info/zeitgleichung/neu.html | |
# Uebertragung auf Python 3 von Alexander Klupp 2014-01-14 | |
import math | |
pi2 = 2*math.pi | |
pi = math.pi | |
RAD = math.pi/180 |