<?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('hub-representationmedia');
$webspace->setName("hub.representationmedia.co.uk");
// add localization to webspace
$localization0 = new Localization();
$localization0->setLanguage('en');
$localization0->setCountry('');
$localization0->setShadow('');
$localization0->setDefault(true);
$localization0->setXDefault('');
$localizationRefs['hub-representationmedia_en'] = $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 Navigation',
'de' => 'Hauptnavigation',
)
,
)
));
$webspace->setNavigation($navigation);
$webspace->setResourceLocatorStrategy('tree_leaf_edit');
// new portal
$portal = new Portal();
$portal->setName('hub.representationmedia.co.uk');
$portal->setKey('hub-representationmedia');
$portal->setWebspace($webspace);
// add localization
$localization = new Localization();
$localization->setLanguage('en');
$localization->setCountry('');
$localization->setDefault('1');
$localization->setXDefault('');
$portal->addLocalization($localization);
// add environment
$environment = new Environment();
$environment->setType('prod');
// add environment url
$url = new Url();
$url->setUrl('{host}');
$url->setLanguage('en');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
$portal->addEnvironment($environment);
// add environment
$environment = new Environment();
$environment->setType('stage');
// add environment url
$url = new Url();
$url->setUrl('{host}');
$url->setLanguage('en');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
$portal->addEnvironment($environment);
// add environment
$environment = new Environment();
$environment->setType('test');
// add environment url
$url = new Url();
$url->setUrl('{host}');
$url->setLanguage('en');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
$portal->addEnvironment($environment);
// add environment
$environment = new Environment();
$environment->setType('dev');
// add environment url
$url = new Url();
$url->setUrl('{host}');
$url->setLanguage('en');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
$portal->addEnvironment($environment);
$portalRefs['hub-representationmedia'] = $portal;
$webspace->addPortal($portal);
$webspaceRefs['hub-representationmedia'] = $webspace;
// new webspace
$webspace = new Webspace();
$webspace->setKey('life-insurance-representationmedia');
$webspace->setName("life-insurance.representationmedia.co.uk");
// add localization to webspace
$localization0 = new Localization();
$localization0->setLanguage('en');
$localization0->setCountry('');
$localization0->setShadow('');
$localization0->setDefault(true);
$localization0->setXDefault('');
$localizationRefs['life-insurance-representationmedia_en'] = $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 Navigation',
'de' => 'Hauptnavigation',
)
,
)
));
$webspace->setNavigation($navigation);
$webspace->setResourceLocatorStrategy('tree_leaf_edit');
// new portal
$portal = new Portal();
$portal->setName('life-insurance.representationmedia.co.uk');
$portal->setKey('life-insurance-representationmedia');
$portal->setWebspace($webspace);
// add localization
$localization = new Localization();
$localization->setLanguage('en');
$localization->setCountry('');
$localization->setDefault('1');
$localization->setXDefault('');
$portal->addLocalization($localization);
// add environment
$environment = new Environment();
$environment->setType('prod');
// add environment url
$url = new Url();
$url->setUrl('life-insurance.representationmedia.co.uk');
$url->setLanguage('en');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
$portal->addEnvironment($environment);
// add environment
$environment = new Environment();
$environment->setType('stage');
// add environment url
$url = new Url();
$url->setUrl('life-insurance.representationmedia.co.uk');
$url->setLanguage('en');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
$portal->addEnvironment($environment);
// add environment
$environment = new Environment();
$environment->setType('test');
// add environment url
$url = new Url();
$url->setUrl('life-insurance.representationmedia.co.uk');
$url->setLanguage('en');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
$portal->addEnvironment($environment);
// add environment
$environment = new Environment();
$environment->setType('dev');
// add environment url
$url = new Url();
$url->setUrl('life-insurance.representationmedia.co.uk');
$url->setLanguage('en');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
$portal->addEnvironment($environment);
$portalRefs['life-insurance-representationmedia'] = $portal;
$webspace->addPortal($portal);
$webspaceRefs['life-insurance-representationmedia'] = $webspace;
$portalInformationRefs['prod']['life-insurance.representationmedia.co.uk'] = new PortalInformation(
1,
$webspaceRefs['life-insurance-representationmedia'],
$portalRefs['life-insurance-representationmedia'],
$localizationRefs['life-insurance-representationmedia_en'],
'life-insurance.representationmedia.co.uk',
null,
null,
true,
'life-insurance.representationmedia.co.uk',
10
);
$portalInformationRefs['prod']['{host}'] = new PortalInformation(
1,
$webspaceRefs['hub-representationmedia'],
$portalRefs['hub-representationmedia'],
$localizationRefs['hub-representationmedia_en'],
'{host}',
null,
null,
true,
'{host}',
5
);
$portalInformationRefs['stage']['life-insurance.representationmedia.co.uk'] = new PortalInformation(
1,
$webspaceRefs['life-insurance-representationmedia'],
$portalRefs['life-insurance-representationmedia'],
$localizationRefs['life-insurance-representationmedia_en'],
'life-insurance.representationmedia.co.uk',
null,
null,
true,
'life-insurance.representationmedia.co.uk',
10
);
$portalInformationRefs['stage']['{host}'] = new PortalInformation(
1,
$webspaceRefs['hub-representationmedia'],
$portalRefs['hub-representationmedia'],
$localizationRefs['hub-representationmedia_en'],
'{host}',
null,
null,
true,
'{host}',
5
);
$portalInformationRefs['test']['life-insurance.representationmedia.co.uk'] = new PortalInformation(
1,
$webspaceRefs['life-insurance-representationmedia'],
$portalRefs['life-insurance-representationmedia'],
$localizationRefs['life-insurance-representationmedia_en'],
'life-insurance.representationmedia.co.uk',
null,
null,
true,
'life-insurance.representationmedia.co.uk',
10
);
$portalInformationRefs['test']['{host}'] = new PortalInformation(
1,
$webspaceRefs['hub-representationmedia'],
$portalRefs['hub-representationmedia'],
$localizationRefs['hub-representationmedia_en'],
'{host}',
null,
null,
true,
'{host}',
5
);
$portalInformationRefs['dev']['life-insurance.representationmedia.co.uk'] = new PortalInformation(
1,
$webspaceRefs['life-insurance-representationmedia'],
$portalRefs['life-insurance-representationmedia'],
$localizationRefs['life-insurance-representationmedia_en'],
'life-insurance.representationmedia.co.uk',
null,
null,
true,
'life-insurance.representationmedia.co.uk',
10
);
$portalInformationRefs['dev']['{host}'] = new PortalInformation(
1,
$webspaceRefs['hub-representationmedia'],
$portalRefs['hub-representationmedia'],
$localizationRefs['hub-representationmedia_en'],
'{host}',
null,
null,
true,
'{host}',
5
);
$this->setWebspaces($webspaceRefs);
$this->setPortals($portalRefs);
$this->setPortalInformations($portalInformationRefs);
}
}