<?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('hormen');
$webspace->setName("Hormen");
// add localization to webspace
$localization0 = new Localization();
$localization0->setLanguage('cs');
$localization0->setCountry('');
$localization0->setShadow('');
$localization0->setDefault(true);
$localization0->setXDefault('');
$localizationRefs['hormen_cs'] = $localization0;
$webspace->addLocalization($localization0);
// add localization to webspace
$localization0 = new Localization();
$localization0->setLanguage('en');
$localization0->setCountry('');
$localization0->setShadow('');
$localization0->setDefault(false);
$localization0->setXDefault('');
$localizationRefs['hormen_en'] = $localization0;
$webspace->addLocalization($localization0);
// add localization to webspace
$localization0 = new Localization();
$localization0->setLanguage('de');
$localization0->setCountry('');
$localization0->setShadow('');
$localization0->setDefault(false);
$localization0->setXDefault('');
$localizationRefs['hormen_de'] = $localization0;
$webspace->addLocalization($localization0);
// add theme
$webspace->addTemplate('search', 'search/search');
$webspace->addTemplate('error-404', 'error/error404');
$webspace->addDefaultTemplate('page', 'default');
$webspace->addDefaultTemplate('home', 'homepage');
// add navigation
$navigation = new Navigation();
$navigation->addContext(new NavigationContext('main', array(
'title' => array(
'en' => 'Main Navigation',
'cs' => 'Navigace v hlavičce',
)
,
)
));
$navigation->addContext(new NavigationContext('footer', array(
'title' => array(
'en' => 'Footer Navigation',
'cs' => 'Navigace v patičce',
)
,
)
));
$navigation->addContext(new NavigationContext('footer_links', array(
'title' => array(
'en' => 'Footer links',
'cs' => 'Odkazy pod patičkou',
)
,
)
));
$webspace->setNavigation($navigation);
$webspace->setResourceLocatorStrategy('tree_leaf_edit');
// new portal
$portal = new Portal();
$portal->setName('Hormen');
$portal->setKey('hormen');
$portal->setWebspace($webspace);
// add localization
$localization = new Localization();
$localization->setLanguage('cs');
$localization->setCountry('');
$localization->setDefault('1');
$localization->setXDefault('');
$portal->addLocalization($localization);
// add localization
$localization = new Localization();
$localization->setLanguage('en');
$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 environment
$environment = new Environment();
$environment->setType('prod');
// add environment url
$url = new Url();
$url->setUrl('hormen.dev.brilo.work');
$url->setLanguage('cs');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
// add environment url
$url = new Url();
$url->setUrl('hormen.dev.brilo.work/en');
$url->setLanguage('en');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(false);
$environment->addUrl($url);
// add environment url
$url = new Url();
$url->setUrl('hormen.dev.brilo.work/de');
$url->setLanguage('de');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(false);
$environment->addUrl($url);
$portal->addEnvironment($environment);
// add environment
$environment = new Environment();
$environment->setType('dev');
// add environment url
$url = new Url();
$url->setUrl('hormen.dev.brilo.work');
$url->setLanguage('cs');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(true);
$environment->addUrl($url);
// add environment url
$url = new Url();
$url->setUrl('hormen.dev.brilo.work/en');
$url->setLanguage('en');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(false);
$environment->addUrl($url);
// add environment url
$url = new Url();
$url->setUrl('hormen.dev.brilo.work/de');
$url->setLanguage('de');
$url->setCountry('');
$url->setSegment('');
$url->setRedirect('');
$url->setMain(false);
$environment->addUrl($url);
$portal->addEnvironment($environment);
$portalRefs['hormen'] = $portal;
$webspace->addPortal($portal);
$webspaceRefs['hormen'] = $webspace;
$portalInformationRefs['prod']['hormen.dev.brilo.work/de'] = new PortalInformation(
1,
$webspaceRefs['hormen'],
$portalRefs['hormen'],
$localizationRefs['hormen_de'],
'hormen.dev.brilo.work/de',
null,
null,
false,
'hormen.dev.brilo.work/de',
10
);
$portalInformationRefs['prod']['hormen.dev.brilo.work/en'] = new PortalInformation(
1,
$webspaceRefs['hormen'],
$portalRefs['hormen'],
$localizationRefs['hormen_en'],
'hormen.dev.brilo.work/en',
null,
null,
false,
'hormen.dev.brilo.work/en',
10
);
$portalInformationRefs['prod']['hormen.dev.brilo.work'] = new PortalInformation(
1,
$webspaceRefs['hormen'],
$portalRefs['hormen'],
$localizationRefs['hormen_cs'],
'hormen.dev.brilo.work',
null,
null,
true,
'hormen.dev.brilo.work',
10
);
$portalInformationRefs['dev']['hormen.dev.brilo.work/de'] = new PortalInformation(
1,
$webspaceRefs['hormen'],
$portalRefs['hormen'],
$localizationRefs['hormen_de'],
'hormen.dev.brilo.work/de',
null,
null,
false,
'hormen.dev.brilo.work/de',
10
);
$portalInformationRefs['dev']['hormen.dev.brilo.work/en'] = new PortalInformation(
1,
$webspaceRefs['hormen'],
$portalRefs['hormen'],
$localizationRefs['hormen_en'],
'hormen.dev.brilo.work/en',
null,
null,
false,
'hormen.dev.brilo.work/en',
10
);
$portalInformationRefs['dev']['hormen.dev.brilo.work'] = new PortalInformation(
1,
$webspaceRefs['hormen'],
$portalRefs['hormen'],
$localizationRefs['hormen_cs'],
'hormen.dev.brilo.work',
null,
null,
true,
'hormen.dev.brilo.work',
10
);
$this->setWebspaces($webspaceRefs);
$this->setPortals($portalRefs);
$this->setPortalInformations($portalInformationRefs);
}
}