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
<?php | |
class foo { | |
/** | |
* keep trac if we have created a custom error. | |
* @var boolean | |
*/ | |
protected $hasCustomError = false; |
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 Your\Extension\Namespace\Hooks; | |
/** | |
* Clean up source | |
*/ | |
class CleanSource extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin | |
{ | |
/** |
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
$objectStorage = $this->fillOjectStorageFromQueryResult($this->myRepository->findAll())); | |
/** | |
* Fill objectStorage from QueryResult | |
* | |
* @param \TYPO3\CMS\Extbase\Persistence\QueryResultInterface $queryResult | |
* @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage | |
*/ | |
protected function fillOjectStorageFromQueryResult(\TYPO3\CMS\Extbase\Persistence\QueryResultInterface $queryResult=NULL) { |