| @@ 17-50 (lines=34) @@ | ||
| 14 | * @package eXpansion\Framework\Core\Model\Gui; |
|
| 15 | * @author oliver de Cramer <[email protected]> |
|
| 16 | */ |
|
| 17 | class WidgetFactoryContext extends ManialinkFactoryContext |
|
| 18 | { |
|
| 19 | /** @var Translations */ |
|
| 20 | protected $translationsHelper; |
|
| 21 | ||
| 22 | /** |
|
| 23 | * WidgetFactoryContext constructor. |
|
| 24 | * |
|
| 25 | * @param $className |
|
| 26 | * @param GuiHandler $guiHandler |
|
| 27 | * @param Factory $groupFactory |
|
| 28 | * @param ActionFactory $actionFactory |
|
| 29 | * @param Translations $translations |
|
| 30 | */ |
|
| 31 | public function __construct( |
|
| 32 | $className, |
|
| 33 | GuiHandler $guiHandler, |
|
| 34 | Factory $groupFactory, |
|
| 35 | ActionFactory $actionFactory, |
|
| 36 | Translations $translations) |
|
| 37 | { |
|
| 38 | parent::__construct($className, $guiHandler, $groupFactory, $actionFactory); |
|
| 39 | ||
| 40 | $this->translationsHelper = $translations; |
|
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @return Translations |
|
| 45 | */ |
|
| 46 | public function getTranslationsHelper() |
|
| 47 | { |
|
| 48 | return $this->translationsHelper; |
|
| 49 | } |
|
| 50 | } |
|
| @@ 17-53 (lines=37) @@ | ||
| 14 | * @package eXpansion\Framework\Core\Model\Gui; |
|
| 15 | * @author oliver de Cramer <[email protected]> |
|
| 16 | */ |
|
| 17 | class WindowFactoryContext extends WidgetFactoryContext |
|
| 18 | { |
|
| 19 | ||
| 20 | /** @var ManiaScriptFactory */ |
|
| 21 | protected $windowManiaScriptFactory; |
|
| 22 | ||
| 23 | /** |
|
| 24 | * WindowFactoryContext constructor. |
|
| 25 | * |
|
| 26 | * @param $className |
|
| 27 | * @param GuiHandler $guiHandler |
|
| 28 | * @param Factory $groupFactory |
|
| 29 | * @param ActionFactory $actionFactory |
|
| 30 | * @param Translations $translations |
|
| 31 | * @param ManiaScriptFactory $maniaScriptFactory |
|
| 32 | */ |
|
| 33 | public function __construct( |
|
| 34 | $className, |
|
| 35 | GuiHandler $guiHandler, |
|
| 36 | Factory $groupFactory, |
|
| 37 | ActionFactory $actionFactory, |
|
| 38 | Translations $translations, |
|
| 39 | ManiaScriptFactory $maniaScriptFactory |
|
| 40 | ) { |
|
| 41 | parent::__construct($className, $guiHandler, $groupFactory, $actionFactory, $translations); |
|
| 42 | ||
| 43 | $this->windowManiaScriptFactory = $maniaScriptFactory; |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * @return ManiaScriptFactory |
|
| 48 | */ |
|
| 49 | public function getWindowManiaScriptFactory() |
|
| 50 | { |
|
| 51 | return $this->windowManiaScriptFactory; |
|
| 52 | } |
|
| 53 | } |
|
| 54 | ||