<?php
use Sulu\Component\Localization\Localization;
use Sulu\Component\Webspace\Manager\WebspaceCollection;
use Sulu\Component\Webspace\Portal;
use Sulu\Component\Webspace\PortalInformation;
use Sulu\Component\Webspace\Environment;
use Sulu\Component\Webspace\Security;
use Sulu\Component\Webspace\Segment;
use Sulu\Component\Webspace\Url;
use Sulu\Component\Webspace\CustomUrl;
use Sulu\Component\Webspace\Webspace;
use Sulu\Component\Webspace\Navigation;
use Sulu\Component\Webspace\NavigationContext;
/**
* websiteWebspaceCollectionCache
*
* DO NOT EDIT
* This file is autogenerated by the Sulu Webspace component
*/
class websiteWebspaceCollectionCache extends WebspaceCollection
{
public function __construct()
{
$webspaceRefs = array();
$portalRefs = array();
$localizationRefs = array();
$segmentRefs = array();
$portalInformationRefs = array();
// new webspace
$webspace = new Webspace();
$webspace->setKey('modernexpo');
$webspace->setName('Modern Expo');
$security = new Security();
$security->setSystem('website');
$security->setPermissionCheck(true);
$webspace->setSecurity($security);
// add localization to webspace
$localization0 = new Localization();
$localization0->setLanguage('en');
$localization0->setCountry('');
$localization0->setShadow('');
$localization0->setDefault(true);
$localization0->setXDefault('');
$localizationRefs['modernexpo_en'] = $localization0;
$webspace->addLocalization($localization0);
// add localization to webspace
$localization0 = new Localization();
$localization0->setLanguage('ua');
$localization0->setCountry('');
$localization0->setShadow('');
$localization0->setDefault(false);
$localization0->setXDefault('');
$localizationRefs['modernexpo_ua'] = $localization0;
$webspace->addLocalization($localization0);
// add localization to webspace
$localization0 = new Localization();
$localization0->setLanguage('pl');
$localization0->setCountry('');
$localization0->setShadow('');
$localization0->setDefault(false);
$localization0->setXDefault('');
$localizationRefs['modernexpo_pl'] = $localization0;
$webspace->addLocalization($localization0);
// add localization to webspace
$localization0 = new Localization();
$localization0->setLanguage('de');
$localization0->setCountry('');
$localization0->setShadow('');
$localization0->setDefault(false);
$localization0->setXDefault('');
$localizationRefs['modernexpo_de'] = $localization0;
$webspace->addLocalization($localization0);
// add localization to webspace
$localization0 = new Localization();
$localization0->setLanguage('fr');
$localization0->setCountry('');
$localization0->setShadow('');
$localization0->setDefault(false);
$localization0->setXDefault('');
$localizationRefs['modernexpo_fr'] = $localization0;
$webspace->addLocalization($localization0);
// add theme
$webspace->addTemplate('search', 'search/search');
$webspace->addTemplate('error', 'error/error');
$webspace->addDefaultTemplate('page', 'default');
$webspace->addDefaultTemplate('home', 'homepage');
// add navigation
$navigation = new Navigation();
$navigation->addContext(new NavigationContext('main', array(
'title' => array(
'en' => 'Main',
'pl' => 'Main',
'ua' => 'Головна',
'de' => 'Main',
'fr' => 'Main',
)
,
)
));
$navigation->addContext(new NavigationContext('f-products', array(
'title' => array(
'en' => 'Footer - products',
'pl' => 'Footer - products',
'ua' => 'Колонтитул - продукція',
'de' => 'Footer - products',
'fr' => 'Footer - products',
)
,
)
));
$navigation->addContext(new NavigationContext('f-solutions', array(
'title' => array(
'en' => 'Footer - solutions',
'pl' => 'Footer - solutions',
'ua' => 'Колонтитул - рішення',
'de' => 'Footer - solutions',
'fr' => 'Footer - solutions',
)
,
)
));
$navigation->addContext(new NavigationContext('f-about-us', array(
'title' => array(
'en' => 'Footer - about us',
'pl' => 'Footer - about us',
'ua' => 'Колонтитул - про нас',
'de' => 'Footer - about us',
'fr' => 'Footer - about us',
)
,
)
));
$navigation->addContext(new NavigationContext('f-contact', array(
'title' => array(
'en' => 'Footer - contact',
'pl' => 'Footer - contact',
'ua' => 'Колонтитул - контакт',
'de' => 'Footer - contact',
'fr' => 'Footer - contact',
)
,
)
));
$webspace->setNavigation($navigation);
$webspace->setResourceLocatorStrategy('tree_leaf_edit');
// new portal
$portal = new Portal();
$portal->setName('modernexpo.com');
$portal->setKey('modernexpo');
$portal->setWebspace($webspace);
// add localization
$localization = new Localization();
$localization->setLanguage('en');
$localization->setCountry('');
$localization->setDefault('1');
$localization->setXDefault('');
$portal->addLocalization($localization);
// add localization
$localization = new Localization();
$localization->setLanguage('ua');
$localization->setCountry('');
$localization->setDefault('');
$localization->setXDefault('');
$portal->addLocalization($localization);
// add localization
$localization = new Localization();
$localization->setLanguage('pl');
$localization->setCountry('');
$localization->setDefault('');
$localization->setXDefault('');
$portal->addLocalization($localization);
// add localization
$localization = new Localization();
$localization->setLanguage('de');
$localization->setCountry('');
$localization->setDefault('');
$localization->setXDefault('');
$portal->addLocalization($localization);
// add localization
$localization = new Localization();
$localization->setLanguage('fr');
$localization->setCountry('');
$localization->setDefault('');
$localization->setXDefault('');
$portal->addLocalization($localization);
// add environment
$environment = new Environment();
$environment->setType('prod');
// add environment url
$url = new Url();
$url->setUrl('{host}/{localization}');
$url->setLanguage('');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
$environment->addCustomUrl(new CustomUrl('*.*/*'));
$portal->addEnvironment($environment);
// add environment
$environment = new Environment();
$environment->setType('stage');
// add environment url
$url = new Url();
$url->setUrl('{host}/{localization}');
$url->setLanguage('');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
$environment->addCustomUrl(new CustomUrl('*.*/*'));
$portal->addEnvironment($environment);
// add environment
$environment = new Environment();
$environment->setType('test');
// add environment url
$url = new Url();
$url->setUrl('{host}/{localization}');
$url->setLanguage('');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
$environment->addCustomUrl(new CustomUrl('*.*/*'));
$portal->addEnvironment($environment);
// add environment
$environment = new Environment();
$environment->setType('dev');
// add environment url
$url = new Url();
$url->setUrl('{host}/{localization}');
$url->setLanguage('');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
$environment->addCustomUrl(new CustomUrl('*.*/*'));
$portal->addEnvironment($environment);
$portalRefs['modernexpo'] = $portal;
$webspace->addPortal($portal);
$webspaceRefs['modernexpo'] = $webspace;
$portalInformationRefs['prod']['{host}/en'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_en'],
'{host}/en',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['prod']['{host}/ua'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_ua'],
'{host}/ua',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['prod']['{host}/pl'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_pl'],
'{host}/pl',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['prod']['{host}/de'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_de'],
'{host}/de',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['prod']['{host}/fr'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_fr'],
'{host}/fr',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['prod']['{host}'] = new PortalInformation(
2,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
null,
'{host}',
null,
'{host}/{localization}',
false,
'{host}/{localization}',
4
);
$portalInformationRefs['prod']['*.*/*'] = new PortalInformation(
4,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
null,
'*.*/*',
null,
null,
false,
'*.*/*',
1
);
$portalInformationRefs['stage']['{host}/en'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_en'],
'{host}/en',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['stage']['{host}/ua'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_ua'],
'{host}/ua',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['stage']['{host}/pl'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_pl'],
'{host}/pl',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['stage']['{host}/de'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_de'],
'{host}/de',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['stage']['{host}/fr'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_fr'],
'{host}/fr',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['stage']['{host}'] = new PortalInformation(
2,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
null,
'{host}',
null,
'{host}/{localization}',
false,
'{host}/{localization}',
4
);
$portalInformationRefs['stage']['*.*/*'] = new PortalInformation(
4,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
null,
'*.*/*',
null,
null,
false,
'*.*/*',
1
);
$portalInformationRefs['test']['{host}/en'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_en'],
'{host}/en',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['test']['{host}/ua'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_ua'],
'{host}/ua',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['test']['{host}/pl'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_pl'],
'{host}/pl',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['test']['{host}/de'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_de'],
'{host}/de',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['test']['{host}/fr'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_fr'],
'{host}/fr',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['test']['{host}'] = new PortalInformation(
2,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
null,
'{host}',
null,
'{host}/{localization}',
false,
'{host}/{localization}',
4
);
$portalInformationRefs['test']['*.*/*'] = new PortalInformation(
4,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
null,
'*.*/*',
null,
null,
false,
'*.*/*',
1
);
$portalInformationRefs['dev']['{host}/en'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_en'],
'{host}/en',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['dev']['{host}/ua'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_ua'],
'{host}/ua',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['dev']['{host}/pl'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_pl'],
'{host}/pl',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['dev']['{host}/de'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_de'],
'{host}/de',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['dev']['{host}/fr'] = new PortalInformation(
1,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
$localizationRefs['modernexpo_fr'],
'{host}/fr',
null,
null,
true,
'{host}/{localization}',
5
);
$portalInformationRefs['dev']['{host}'] = new PortalInformation(
2,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
null,
'{host}',
null,
'{host}/{localization}',
false,
'{host}/{localization}',
4
);
$portalInformationRefs['dev']['*.*/*'] = new PortalInformation(
4,
$webspaceRefs['modernexpo'],
$portalRefs['modernexpo'],
null,
'*.*/*',
null,
null,
false,
'*.*/*',
1
);
$this->setWebspaces($webspaceRefs);
$this->setPortals($portalRefs);
$this->setPortalInformations($portalInformationRefs);
}
}