var/cache/website/dev/sulu/websiteWebspaceCollectionCache.php line 23

Open in your IDE?
  1. <?php
  2. use Sulu\Component\Localization\Localization;
  3. use Sulu\Component\Webspace\Manager\WebspaceCollection;
  4. use Sulu\Component\Webspace\Portal;
  5. use Sulu\Component\Webspace\PortalInformation;
  6. use Sulu\Component\Webspace\Environment;
  7. use Sulu\Component\Webspace\Security;
  8. use Sulu\Component\Webspace\Segment;
  9. use Sulu\Component\Webspace\Url;
  10. use Sulu\Component\Webspace\CustomUrl;
  11. use Sulu\Component\Webspace\Webspace;
  12. use Sulu\Component\Webspace\Navigation;
  13. use Sulu\Component\Webspace\NavigationContext;
  14. /**
  15.  * websiteWebspaceCollectionCache
  16.  *
  17.  * DO NOT EDIT
  18.  * This file is autogenerated by the Sulu Webspace component
  19.  */
  20. class websiteWebspaceCollectionCache extends WebspaceCollection
  21. {
  22.     public function __construct()
  23.     {
  24.         $webspaceRefs = array();
  25.         $portalRefs = array();
  26.         $localizationRefs = array();
  27.         $segmentRefs = array();
  28.         $portalInformationRefs = array();
  29.         // new webspace
  30.         $webspace = new Webspace();
  31.         $webspace->setKey('hormen');
  32.         $webspace->setName("Hormen");
  33.         // add localization to webspace
  34.         $localization0 = new Localization();
  35.         $localization0->setLanguage('cs');
  36.         $localization0->setCountry('');
  37.         $localization0->setShadow('');
  38.         $localization0->setDefault(true);
  39.         $localization0->setXDefault('');
  40.         $localizationRefs['hormen_cs'] = $localization0;
  41.         $webspace->addLocalization($localization0);
  42.         // add localization to webspace
  43.         $localization0 = new Localization();
  44.         $localization0->setLanguage('en');
  45.         $localization0->setCountry('');
  46.         $localization0->setShadow('');
  47.         $localization0->setDefault(false);
  48.         $localization0->setXDefault('');
  49.         $localizationRefs['hormen_en'] = $localization0;
  50.         $webspace->addLocalization($localization0);
  51.         // add localization to webspace
  52.         $localization0 = new Localization();
  53.         $localization0->setLanguage('de');
  54.         $localization0->setCountry('');
  55.         $localization0->setShadow('');
  56.         $localization0->setDefault(false);
  57.         $localization0->setXDefault('');
  58.         $localizationRefs['hormen_de'] = $localization0;
  59.         $webspace->addLocalization($localization0);
  60.         // add theme
  61.         $webspace->addTemplate('search''search/search');
  62.         $webspace->addTemplate('error-404''error/error404');
  63.         $webspace->addDefaultTemplate('page''default');
  64.         $webspace->addDefaultTemplate('home''homepage');
  65.         // add navigation
  66.         $navigation = new Navigation();
  67.         $navigation->addContext(new NavigationContext('main',     array(
  68.                         'title' =>     array(
  69.                         'en' => 'Main Navigation',
  70.                                 'cs' => 'Navigace v hlavičce',
  71.                 )
  72. ,
  73.                 )
  74. ));
  75.         $navigation->addContext(new NavigationContext('footer',     array(
  76.                         'title' =>     array(
  77.                         'en' => 'Footer Navigation',
  78.                                 'cs' => 'Navigace v patičce',
  79.                 )
  80. ,
  81.                 )
  82. ));
  83.         $navigation->addContext(new NavigationContext('footer_links',     array(
  84.                         'title' =>     array(
  85.                         'en' => 'Footer links',
  86.                                 'cs' => 'Odkazy pod patičkou',
  87.                 )
  88. ,
  89.                 )
  90. ));
  91.         $webspace->setNavigation($navigation);
  92.         $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  93.         // new portal
  94.         $portal = new Portal();
  95.         $portal->setName('Hormen');
  96.         $portal->setKey('hormen');
  97.         $portal->setWebspace($webspace);
  98.         // add localization
  99.         $localization = new Localization();
  100.         $localization->setLanguage('cs');
  101.         $localization->setCountry('');
  102.         $localization->setDefault('1');
  103.         $localization->setXDefault('');
  104.         $portal->addLocalization($localization);
  105.         // add localization
  106.         $localization = new Localization();
  107.         $localization->setLanguage('en');
  108.         $localization->setCountry('');
  109.         $localization->setDefault('');
  110.         $localization->setXDefault('');
  111.         $portal->addLocalization($localization);
  112.         // add localization
  113.         $localization = new Localization();
  114.         $localization->setLanguage('de');
  115.         $localization->setCountry('');
  116.         $localization->setDefault('');
  117.         $localization->setXDefault('');
  118.         $portal->addLocalization($localization);
  119.         // add environment
  120.         $environment = new Environment();
  121.         $environment->setType('prod');
  122.         // add environment url
  123.         $url = new Url();
  124.         $url->setUrl('hormen.dev.brilo.work');
  125.         $url->setLanguage('cs');
  126.         $url->setCountry('');
  127.         $url->setSegment('');
  128.         $url->setRedirect('');
  129.         $url->setMain(true);
  130.         $environment->addUrl($url);
  131.         // add environment url
  132.         $url = new Url();
  133.         $url->setUrl('hormen.dev.brilo.work/en');
  134.         $url->setLanguage('en');
  135.         $url->setCountry('');
  136.         $url->setSegment('');
  137.         $url->setRedirect('');
  138.         $url->setMain(false);
  139.         $environment->addUrl($url);
  140.         // add environment url
  141.         $url = new Url();
  142.         $url->setUrl('hormen.dev.brilo.work/de');
  143.         $url->setLanguage('de');
  144.         $url->setCountry('');
  145.         $url->setSegment('');
  146.         $url->setRedirect('');
  147.         $url->setMain(false);
  148.         $environment->addUrl($url);
  149.         $portal->addEnvironment($environment);
  150.         // add environment
  151.         $environment = new Environment();
  152.         $environment->setType('dev');
  153.         // add environment url
  154.         $url = new Url();
  155.         $url->setUrl('hormen.dev.brilo.work');
  156.         $url->setLanguage('cs');
  157.         $url->setCountry('');
  158.         $url->setSegment('');
  159.         $url->setRedirect('');
  160.         $url->setMain(true);
  161.         $environment->addUrl($url);
  162.         // add environment url
  163.         $url = new Url();
  164.         $url->setUrl('hormen.dev.brilo.work/en');
  165.         $url->setLanguage('en');
  166.         $url->setCountry('');
  167.         $url->setSegment('');
  168.         $url->setRedirect('');
  169.         $url->setMain(false);
  170.         $environment->addUrl($url);
  171.         // add environment url
  172.         $url = new Url();
  173.         $url->setUrl('hormen.dev.brilo.work/de');
  174.         $url->setLanguage('de');
  175.         $url->setCountry('');
  176.         $url->setSegment('');
  177.         $url->setRedirect('');
  178.         $url->setMain(false);
  179.         $environment->addUrl($url);
  180.         $portal->addEnvironment($environment);
  181.         $portalRefs['hormen'] = $portal;
  182.         $webspace->addPortal($portal);
  183.         $webspaceRefs['hormen'] = $webspace;
  184.         $portalInformationRefs['prod']['hormen.dev.brilo.work/de'] = new PortalInformation(
  185.             1,
  186.             $webspaceRefs['hormen'],
  187.             $portalRefs['hormen'],
  188.             $localizationRefs['hormen_de'],
  189.             'hormen.dev.brilo.work/de',
  190.             null,
  191.             null,
  192.             false,
  193.             'hormen.dev.brilo.work/de',
  194.             10
  195.         );
  196.         $portalInformationRefs['prod']['hormen.dev.brilo.work/en'] = new PortalInformation(
  197.             1,
  198.             $webspaceRefs['hormen'],
  199.             $portalRefs['hormen'],
  200.             $localizationRefs['hormen_en'],
  201.             'hormen.dev.brilo.work/en',
  202.             null,
  203.             null,
  204.             false,
  205.             'hormen.dev.brilo.work/en',
  206.             10
  207.         );
  208.         $portalInformationRefs['prod']['hormen.dev.brilo.work'] = new PortalInformation(
  209.             1,
  210.             $webspaceRefs['hormen'],
  211.             $portalRefs['hormen'],
  212.             $localizationRefs['hormen_cs'],
  213.             'hormen.dev.brilo.work',
  214.             null,
  215.             null,
  216.             true,
  217.             'hormen.dev.brilo.work',
  218.             10
  219.         );
  220.         $portalInformationRefs['dev']['hormen.dev.brilo.work/de'] = new PortalInformation(
  221.             1,
  222.             $webspaceRefs['hormen'],
  223.             $portalRefs['hormen'],
  224.             $localizationRefs['hormen_de'],
  225.             'hormen.dev.brilo.work/de',
  226.             null,
  227.             null,
  228.             false,
  229.             'hormen.dev.brilo.work/de',
  230.             10
  231.         );
  232.         $portalInformationRefs['dev']['hormen.dev.brilo.work/en'] = new PortalInformation(
  233.             1,
  234.             $webspaceRefs['hormen'],
  235.             $portalRefs['hormen'],
  236.             $localizationRefs['hormen_en'],
  237.             'hormen.dev.brilo.work/en',
  238.             null,
  239.             null,
  240.             false,
  241.             'hormen.dev.brilo.work/en',
  242.             10
  243.         );
  244.         $portalInformationRefs['dev']['hormen.dev.brilo.work'] = new PortalInformation(
  245.             1,
  246.             $webspaceRefs['hormen'],
  247.             $portalRefs['hormen'],
  248.             $localizationRefs['hormen_cs'],
  249.             'hormen.dev.brilo.work',
  250.             null,
  251.             null,
  252.             true,
  253.             'hormen.dev.brilo.work',
  254.             10
  255.         );
  256.         $this->setWebspaces($webspaceRefs);
  257.         $this->setPortals($portalRefs);
  258.         $this->setPortalInformations($portalInformationRefs);
  259.     }
  260. }