This file contains hidden or 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 | |
| function getNameFromNumber($num) { | |
| $numeric = $num % 26; | |
| $letter = chr(65 + $numeric); | |
| $num2 = intval($num / 26); | |
| if ($num2 > 0) { | |
| return $this->getNameFromNumber($num2 - 1) . $letter; | |
| } else { | |
| return $letter; |
This file contains hidden or 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
| // Add language parameter on shortcuts when the field tx_shortcut_language is not null | |
| 3.IFSUB.additionalParams = &L={field:tx_shortcut_language} | |
| 3.IFSUB.additionalParams.insertData = 1 | |
| 3.IFSUB.additionalParams.if { | |
| value = 4 | |
| equals.field = doktype | |
| } | |
| 3.IFSUB.additionalParams.if.isTrue = 1 | |
| 3.IFSUB.additionalParams.if.isTrue.if { | |
| value = -1 |
This file contains hidden or 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
| OLD: export PHP_IDE_CONFIG="serverName=example.dev"; /Applications/MAMP/bin/php/php7.0.12/bin/php -dxdebug.remote_autostart=1 -dxdebug.remote_host=127.0.0.1 /Volumes/Daten/Work/Example/htdocs/typo3/cli_dispatch.phpsh extbase example:cache:cleare exampleenviorment exampleenviorment | |
| NEW: export PHP_IDE_CONFIG="serverName=example.dev"; /Applications/MAMP/bin/php/php7.0.12/bin/php -dxdebug.remote_autostart=1 -dxdebug.remote_host=127.0.0.1 /Volumes/Daten/Work/Example/htdocs/typo3/cli_dispatch.phpsh extbase exampleenviorment example:cache:cleare |
This file contains hidden or 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 AppBundle\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * Class Example | |
| * @package AppBundle\Entity | |
| * @ORM\Entity |
This file contains hidden or 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 AppBundle\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * Class BaseEntity | |
| * @package AppBundle\Entity | |
| * @ORM\MappedSuperclass |
This file contains hidden or 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 AppBundle\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * Class Example | |
| * @package AppBundle\Entity | |
| * @ORM\Entity | |
| * @ORM\Table(name="example") |
This file contains hidden or 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 AppBundle\Entity; | |
| use Doctrine\ORM\Mapping as ORM; | |
| /** | |
| * Class Example | |
| * @package AppBundle\Entity | |
| * @ORM\Entity | |
| * @ORM\Table(name="example") |
This file contains hidden or 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
| ## Lang = de, falls de default-Sprache | |
| page { | |
| config { | |
| htmlTag_stdWrap { | |
| cObject = TEXT | |
| cObject.value ( | |
| <!--[if lt IE 7]> <html lang="de" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html lang="de" class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html lang="de" class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html lang="de" class="no-js"> <!--<![endif]--> |
This file contains hidden or 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 | |
| // Note: This will return all results with if true | |
| $neededObject = array_filter( | |
| $arrayOfObjects, | |
| function ($element) use (&$searchedValue) { | |
| /**@var element $element*/ | |
| return $element->id == $searchedValue; | |
| } | |
| ); |
This file contains hidden or 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
| convert dragon.gif -resize 64x64^ -gravity center -extent 64x64 fill_crop_dragon.gif |