1234567891011121314151617181920212223242526 |
- <?php
- class OfferRetriever
- {
- public static function getInstance()
- {
- return new OfferRetriever(Persistence::getInstance());
- }
- private $persistence;
- public function __construct(Persistence $persistence)
- {
- $this->persistence = $persistence;
- }
- public function getPageData($offerId, $page)
- {
- $result = $this->persistence->getOfferPathPage($offerId, $page);
- if($result == null)
- {
- $result = array("filename" => "templateDoesNotExist.html");
- }
- return $result;
- }
- }
|