This commit is contained in:
2026-02-17 14:56:23 +01:00
commit 68f7a95fdf
695 changed files with 154611 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
namespace DynCom\mysyde\common\classes;
use DynCom\mysyde\common\interfaces\CriteriaHelperInterface;
use DynCom\mysyde\common\interfaces\GenericDBQueryWrapperInterface;
use DynCom\mysyde\common\interfaces\Repository;
use DynCom\mysyde\common\traits\genericRepositoryTrait;
/**
* Class PageRepository
* @package DynCom\mysyde\common\classes
*/
class PageRepository implements Repository
{
use genericRepositoryTrait;
/**
* @param GenericDBQueryWrapperInterface $db
* @param PageConfig $config
* @param CriteriaHelperInterface $criteriaValidationService
* @param PageCollection $collection
* @param $cacheAll
*/
public function __construct(GenericDBQueryWrapperInterface $db, PageConfig $config, CriteriaHelperInterface $criteriaValidationService, PageCollection $collection, $cacheAll=false)
{
$this->db = $db;
$this->config = $config;
$this->criteriaValidationService = $criteriaValidationService;
$this->collection = $collection;
$this->collectionEntryClassName = $this->collection->getEntryClassName();
$this->cacheAll = $cacheAll;
}
/**
* @return Page
*/
public function getNullObject()
{
return new Page($this->config);
}
}