Skip to content

Instantly share code, notes, and snippets.

View khuppenbauer's full-sized avatar

Kerstin Huppenbauer khuppenbauer

  • setu GmbH
  • Schwäbisch Gmünd, near Stuttgart, Germany
View GitHub Profile
<?php
namespace TYPO3\Flow\Aop\Builder;
/* *
* This script belongs to the TYPO3 Flow framework. *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
@khuppenbauer
khuppenbauer / TYPO3\Flow\Persistence\Doctrine\Query.php
Last active August 29, 2015 14:05
Set HINT_REFRESH in Doctrine Query to ensure Doctrine takes the updated object
<?php
namespace TYPO3\Flow\Persistence\Doctrine;
/* *
* This script belongs to the TYPO3 Flow framework. *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
@khuppenbauer
khuppenbauer / RenderViewHelper.php
Last active August 29, 2015 14:01
Render a partial from another Package in TYPO3 Flow / Fluid
<?php
namespace Your\Package\ViewHelpers;
/* *
* This script belongs to the TYPO3 Flow package "TYPO3.Fluid". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
@khuppenbauer
khuppenbauer / Gist.html
Last active August 29, 2015 13:57
Integrate a Gist into your TYPO3 Neos Site
<script src="{settings.gist.uri}/{id}.js{f:if(condition:file, then: '?file={file};')}"></script>
@khuppenbauer
khuppenbauer / Root.ts
Last active December 8, 2015 08:08
FlowQueryOperation "slide" for TYPO3 Neos to get the property of parent Nodes
backgroundImage = ${q(node).slide('backgroundImage').property('backgroundImage')}
@khuppenbauer
khuppenbauer / Flowpack.Behat.FlowContext.php
Last active August 29, 2015 13:55
Don't drop the schema for every resetTestFixtures in Flowpack Behat
<?php
namespace Flowpack\Behat\Tests\Behat;
/* *
* This script belongs to the TYPO3 Flow package "Flowpack.Behat". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
@khuppenbauer
khuppenbauer / DoctrineFunctionalTest.php
Last active January 3, 2016 07:09
add group by to TYPO3Flow Persistence
<?php
namespace TYPO3\Flow\Tests\Functional\Persistence\Doctrine;
/* *
* This script belongs to the TYPO3 Flow framework. *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
@khuppenbauer
khuppenbauer / commandlinetools.xml
Created May 6, 2013 21:58
TYPO3Flow xml commands description for PhpStorm
<?xml version="1.0" encoding="UTF-8"?>
<framework xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="schemas/frameworkDescriptionVersion1.1.3.xsd" name="TYPO3Flow" invoke="./flow" alias="flow" enabled="true" version="2">
<command>
<name>flow:cache:flush</name>
<help>Flush all caches</help>
<params>[--force]</params>
</command>
<command>
<name>cache:warmup</name>
<help>Warm up caches</help>
@khuppenbauer
khuppenbauer / Repository.php
Last active December 16, 2015 19:59
Remove an object from Repository with foreign keys disabled
<?php
namespace Your\Package\Domain\Repository;
/* *
* This script belongs to the Flow package "Your.Package". *
* *
* */
use TYPO3\Flow\Annotations as Flow;
use TYPO3\Flow\Persistence\Doctrine\Repository;
@khuppenbauer
khuppenbauer / TranslateViewHelper.php
Last active December 12, 2015 02:58
Translation fallback for elements in TYPO3 Flow
<?php
namespace Your\Package\ViewHelpers;
/* *
* This script belongs to the TYPO3 Flow package "Fluid". *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *