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 Model\Events; | |
use Doctrine\ORM\Event\PreFlushEventArgs; | |
use Kdyby\Events\Subscriber; | |
use Nette; | |
class ConvertBlankToNullSubscriber extends Nette\Object implements Subscriber | |
{ |
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 Eshop; | |
use Brabijan\Images\ImageProvider; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @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 | |
use Grido\Components\Filters\Condition; | |
use Kdyby; | |
use Kdyby\Doctrine\QueryBuilder; | |
use Kdyby\Doctrine\QueryObject; | |
use Model\Grid\FilterableQueryObject; | |
use Model\Grid\SortableQueryObject; | |
class ExampleQuery extends QueryObject implements SortableQueryObject, FilterableQueryObject |
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 | |
class DummyPresenter extends \Nette\Application\UI\Presenter | |
{ | |
protected function startup() | |
{ | |
parent::startup(); | |
$this->terminate(); | |
} |
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 Model\Repositories; | |
use Nette; | |
abstract class BaseRepository extends Nette\Object | |
{ |
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 | |
class AssetsManager extends Nette\Object | |
{ | |
/** @var string */ | |
private $jsPath; | |
/** @var string */ | |
private $cssPath; |
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 | |
/** | |
* @param Nette\Application\Application $app | |
* @param Nette\Application\PresenterRequest $request | |
* @return void | |
*/ | |
public static function setErrorPresenter($app, $request) { | |
$errorPresenter = 'Error'; | |
$modules = explode(":",$request->getPresenterName()); | |
unset($modules[count($modules)-1]); |