コード例 #1
0
 /**
  * @static
  * @param Tx_Yag_Domain_Configuration_ConfigurationBuilder $configurationBuilder
  * @param null $themeSettings array
  * @param null $themeName string
  * @return Tx_Yag_Domain_Configuration_Theme_ThemeConfiguration
  */
 public static function getInstance(Tx_Yag_Domain_Configuration_ConfigurationBuilder $configurationBuilder, $themeSettings = NULL, $themeName = NULL)
 {
     if (!$themeSettings) {
         $themeSettings = $configurationBuilder->getSettingsForConfigObject('theme');
         $themeName = $configurationBuilder->getTheme();
     }
     return new Tx_Yag_Domain_Configuration_Theme_ThemeConfiguration($configurationBuilder, $themeSettings, $themeName);
 }
コード例 #2
0
 /**
  * @param Tx_Yag_Domain_Configuration_ConfigurationBuilder $configurationBuilder
  * @param $resolutionConfiguration
  * @return Tx_Yag_Domain_Configuration_Image_ResolutionConfigCollection
  */
 public static function getInstance(Tx_Yag_Domain_Configuration_ConfigurationBuilder $configurationBuilder, $resolutionSettings)
 {
     $resolutionConfigCollection = new Tx_Yag_Domain_Configuration_Image_ResolutionConfigCollection();
     foreach ($resolutionSettings as $resolutionName => $resolutionSetting) {
         $resolutionSetting['name'] = $configurationBuilder->getTheme() . '.' . $resolutionName;
         $resolutionConfig = new Tx_Yag_Domain_Configuration_Image_ResolutionConfig($configurationBuilder, $resolutionSetting);
         $resolutionConfigCollection->addResolutionConfig($resolutionConfig, $resolutionName);
     }
     return $resolutionConfigCollection;
 }