initial commit
[namibia] / module / Utility / src / Utility / Fixture / RepeaterTemplate.php
1 <?php
2
3 namespace Utility\Fixture;
4
5 class RepeaterTemplate  extends \Fixture\Service\Fixture
6 {
7         static public function build()
8         {
9                 $tempatesDir = __DIR__ . '/../../../../../data/templates/';
10
11                 parent::addStack('\Utility\Entity\RepeaterTemplate',
12                                 array(
13                                         'Template.AuctionListRepeater' => array(
14                                                         'groupField'            => 'make_name',
15                                                         'groupRepeater'         => file_get_contents($tempatesDir . 'auction-list-repeater-group.html'),
16                                                         'rowRepeaterOdd'        => file_get_contents($tempatesDir . 'auction-list-repeater-row-odd.html'),
17                                                         'rowRepeaterEven'       => file_get_contents($tempatesDir . 'auction-list-repeater-row-even.html')
18                                         )
19                                 )
20                 );
21         }
22 }