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

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('modernexpo');
  32.         $webspace->setName('Modern Expo');
  33.         $security = new Security();
  34.         $security->setSystem('website');
  35.         $security->setPermissionCheck(true);
  36.         $webspace->setSecurity($security);
  37.         // add localization to webspace
  38.         $localization0 = new Localization();
  39.         $localization0->setLanguage('en');
  40.         $localization0->setCountry('');
  41.         $localization0->setShadow('');
  42.         $localization0->setDefault(true);
  43.         $localization0->setXDefault('');
  44.         $localizationRefs['modernexpo_en'] = $localization0;
  45.         $webspace->addLocalization($localization0);
  46.         // add localization to webspace
  47.         $localization0 = new Localization();
  48.         $localization0->setLanguage('ua');
  49.         $localization0->setCountry('');
  50.         $localization0->setShadow('');
  51.         $localization0->setDefault(false);
  52.         $localization0->setXDefault('');
  53.         $localizationRefs['modernexpo_ua'] = $localization0;
  54.         $webspace->addLocalization($localization0);
  55.         // add localization to webspace
  56.         $localization0 = new Localization();
  57.         $localization0->setLanguage('pl');
  58.         $localization0->setCountry('');
  59.         $localization0->setShadow('');
  60.         $localization0->setDefault(false);
  61.         $localization0->setXDefault('');
  62.         $localizationRefs['modernexpo_pl'] = $localization0;
  63.         $webspace->addLocalization($localization0);
  64.         // add localization to webspace
  65.         $localization0 = new Localization();
  66.         $localization0->setLanguage('de');
  67.         $localization0->setCountry('');
  68.         $localization0->setShadow('');
  69.         $localization0->setDefault(false);
  70.         $localization0->setXDefault('');
  71.         $localizationRefs['modernexpo_de'] = $localization0;
  72.         $webspace->addLocalization($localization0);
  73.         // add localization to webspace
  74.         $localization0 = new Localization();
  75.         $localization0->setLanguage('fr');
  76.         $localization0->setCountry('');
  77.         $localization0->setShadow('');
  78.         $localization0->setDefault(false);
  79.         $localization0->setXDefault('');
  80.         $localizationRefs['modernexpo_fr'] = $localization0;
  81.         $webspace->addLocalization($localization0);
  82.         // add theme
  83.         $webspace->addTemplate('search''search/search');
  84.         $webspace->addTemplate('error''error/error');
  85.         $webspace->addDefaultTemplate('page''default');
  86.         $webspace->addDefaultTemplate('home''homepage');
  87.         // add navigation
  88.         $navigation = new Navigation();
  89.         $navigation->addContext(new NavigationContext('main',     array(
  90.                         'title' =>     array(
  91.                         'en' => 'Main',
  92.                                 'pl' => 'Main',
  93.                                 'ua' => 'Головна',
  94.                                 'de' => 'Main',
  95.                                 'fr' => 'Main',
  96.                 )
  97. ,
  98.                 )
  99. ));
  100.         $navigation->addContext(new NavigationContext('f-products',     array(
  101.                         'title' =>     array(
  102.                         'en' => 'Footer - products',
  103.                                 'pl' => 'Footer - products',
  104.                                 'ua' => 'Колонтитул - продукція',
  105.                                 'de' => 'Footer - products',
  106.                                 'fr' => 'Footer - products',
  107.                 )
  108. ,
  109.                 )
  110. ));
  111.         $navigation->addContext(new NavigationContext('f-solutions',     array(
  112.                         'title' =>     array(
  113.                         'en' => 'Footer - solutions',
  114.                                 'pl' => 'Footer - solutions',
  115.                                 'ua' => 'Колонтитул - рішення',
  116.                                 'de' => 'Footer - solutions',
  117.                                 'fr' => 'Footer - solutions',
  118.                 )
  119. ,
  120.                 )
  121. ));
  122.         $navigation->addContext(new NavigationContext('f-about-us',     array(
  123.                         'title' =>     array(
  124.                         'en' => 'Footer - about us',
  125.                                 'pl' => 'Footer - about us',
  126.                                 'ua' => 'Колонтитул - про нас',
  127.                                 'de' => 'Footer - about us',
  128.                                 'fr' => 'Footer - about us',
  129.                 )
  130. ,
  131.                 )
  132. ));
  133.         $navigation->addContext(new NavigationContext('f-contact',     array(
  134.                         'title' =>     array(
  135.                         'en' => 'Footer - contact',
  136.                                 'pl' => 'Footer - contact',
  137.                                 'ua' => 'Колонтитул - контакт',
  138.                                 'de' => 'Footer - contact',
  139.                                 'fr' => 'Footer - contact',
  140.                 )
  141. ,
  142.                 )
  143. ));
  144.         $webspace->setNavigation($navigation);
  145.         $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  146.         // new portal
  147.         $portal = new Portal();
  148.         $portal->setName('modernexpo.com');
  149.         $portal->setKey('modernexpo');
  150.         $portal->setWebspace($webspace);
  151.         // add localization
  152.         $localization = new Localization();
  153.         $localization->setLanguage('en');
  154.         $localization->setCountry('');
  155.         $localization->setDefault('1');
  156.         $localization->setXDefault('');
  157.         $portal->addLocalization($localization);
  158.         // add localization
  159.         $localization = new Localization();
  160.         $localization->setLanguage('ua');
  161.         $localization->setCountry('');
  162.         $localization->setDefault('');
  163.         $localization->setXDefault('');
  164.         $portal->addLocalization($localization);
  165.         // add localization
  166.         $localization = new Localization();
  167.         $localization->setLanguage('pl');
  168.         $localization->setCountry('');
  169.         $localization->setDefault('');
  170.         $localization->setXDefault('');
  171.         $portal->addLocalization($localization);
  172.         // add localization
  173.         $localization = new Localization();
  174.         $localization->setLanguage('de');
  175.         $localization->setCountry('');
  176.         $localization->setDefault('');
  177.         $localization->setXDefault('');
  178.         $portal->addLocalization($localization);
  179.         // add localization
  180.         $localization = new Localization();
  181.         $localization->setLanguage('fr');
  182.         $localization->setCountry('');
  183.         $localization->setDefault('');
  184.         $localization->setXDefault('');
  185.         $portal->addLocalization($localization);
  186.         // add environment
  187.         $environment = new Environment();
  188.         $environment->setType('prod');
  189.         // add environment url
  190.         $url = new Url();
  191.         $url->setUrl('{host}/{localization}');
  192.         $url->setLanguage('');
  193.         $url->setCountry('');
  194.         $url->setSegment('');
  195.         $url->setRedirect('');
  196.         $url->setMain(true);
  197.         $environment->addUrl($url);
  198.         $environment->addCustomUrl(new CustomUrl('*.*/*'));
  199.         $portal->addEnvironment($environment);
  200.         // add environment
  201.         $environment = new Environment();
  202.         $environment->setType('stage');
  203.         // add environment url
  204.         $url = new Url();
  205.         $url->setUrl('{host}/{localization}');
  206.         $url->setLanguage('');
  207.         $url->setCountry('');
  208.         $url->setSegment('');
  209.         $url->setRedirect('');
  210.         $url->setMain(true);
  211.         $environment->addUrl($url);
  212.         $environment->addCustomUrl(new CustomUrl('*.*/*'));
  213.         $portal->addEnvironment($environment);
  214.         // add environment
  215.         $environment = new Environment();
  216.         $environment->setType('test');
  217.         // add environment url
  218.         $url = new Url();
  219.         $url->setUrl('{host}/{localization}');
  220.         $url->setLanguage('');
  221.         $url->setCountry('');
  222.         $url->setSegment('');
  223.         $url->setRedirect('');
  224.         $url->setMain(true);
  225.         $environment->addUrl($url);
  226.         $environment->addCustomUrl(new CustomUrl('*.*/*'));
  227.         $portal->addEnvironment($environment);
  228.         // add environment
  229.         $environment = new Environment();
  230.         $environment->setType('dev');
  231.         // add environment url
  232.         $url = new Url();
  233.         $url->setUrl('{host}/{localization}');
  234.         $url->setLanguage('');
  235.         $url->setCountry('');
  236.         $url->setSegment('');
  237.         $url->setRedirect('');
  238.         $url->setMain(true);
  239.         $environment->addUrl($url);
  240.         $environment->addCustomUrl(new CustomUrl('*.*/*'));
  241.         $portal->addEnvironment($environment);
  242.         $portalRefs['modernexpo'] = $portal;
  243.         $webspace->addPortal($portal);
  244.         $webspaceRefs['modernexpo'] = $webspace;
  245.         $portalInformationRefs['prod']['{host}/en'] = new PortalInformation(
  246.             1,
  247.             $webspaceRefs['modernexpo'],
  248.             $portalRefs['modernexpo'],
  249.             $localizationRefs['modernexpo_en'],
  250.             '{host}/en',
  251.             null,
  252.             null,
  253.             true,
  254.             '{host}/{localization}',
  255.             5
  256.         );
  257.         $portalInformationRefs['prod']['{host}/ua'] = new PortalInformation(
  258.             1,
  259.             $webspaceRefs['modernexpo'],
  260.             $portalRefs['modernexpo'],
  261.             $localizationRefs['modernexpo_ua'],
  262.             '{host}/ua',
  263.             null,
  264.             null,
  265.             true,
  266.             '{host}/{localization}',
  267.             5
  268.         );
  269.         $portalInformationRefs['prod']['{host}/pl'] = new PortalInformation(
  270.             1,
  271.             $webspaceRefs['modernexpo'],
  272.             $portalRefs['modernexpo'],
  273.             $localizationRefs['modernexpo_pl'],
  274.             '{host}/pl',
  275.             null,
  276.             null,
  277.             true,
  278.             '{host}/{localization}',
  279.             5
  280.         );
  281.         $portalInformationRefs['prod']['{host}/de'] = new PortalInformation(
  282.             1,
  283.             $webspaceRefs['modernexpo'],
  284.             $portalRefs['modernexpo'],
  285.             $localizationRefs['modernexpo_de'],
  286.             '{host}/de',
  287.             null,
  288.             null,
  289.             true,
  290.             '{host}/{localization}',
  291.             5
  292.         );
  293.         $portalInformationRefs['prod']['{host}/fr'] = new PortalInformation(
  294.             1,
  295.             $webspaceRefs['modernexpo'],
  296.             $portalRefs['modernexpo'],
  297.             $localizationRefs['modernexpo_fr'],
  298.             '{host}/fr',
  299.             null,
  300.             null,
  301.             true,
  302.             '{host}/{localization}',
  303.             5
  304.         );
  305.         $portalInformationRefs['prod']['{host}'] = new PortalInformation(
  306.             2,
  307.             $webspaceRefs['modernexpo'],
  308.             $portalRefs['modernexpo'],
  309.             null,
  310.             '{host}',
  311.             null,
  312.             '{host}/{localization}',
  313.             false,
  314.             '{host}/{localization}',
  315.             4
  316.         );
  317.         $portalInformationRefs['prod']['*.*/*'] = new PortalInformation(
  318.             4,
  319.             $webspaceRefs['modernexpo'],
  320.             $portalRefs['modernexpo'],
  321.             null,
  322.             '*.*/*',
  323.             null,
  324.             null,
  325.             false,
  326.             '*.*/*',
  327.             1
  328.         );
  329.         $portalInformationRefs['stage']['{host}/en'] = new PortalInformation(
  330.             1,
  331.             $webspaceRefs['modernexpo'],
  332.             $portalRefs['modernexpo'],
  333.             $localizationRefs['modernexpo_en'],
  334.             '{host}/en',
  335.             null,
  336.             null,
  337.             true,
  338.             '{host}/{localization}',
  339.             5
  340.         );
  341.         $portalInformationRefs['stage']['{host}/ua'] = new PortalInformation(
  342.             1,
  343.             $webspaceRefs['modernexpo'],
  344.             $portalRefs['modernexpo'],
  345.             $localizationRefs['modernexpo_ua'],
  346.             '{host}/ua',
  347.             null,
  348.             null,
  349.             true,
  350.             '{host}/{localization}',
  351.             5
  352.         );
  353.         $portalInformationRefs['stage']['{host}/pl'] = new PortalInformation(
  354.             1,
  355.             $webspaceRefs['modernexpo'],
  356.             $portalRefs['modernexpo'],
  357.             $localizationRefs['modernexpo_pl'],
  358.             '{host}/pl',
  359.             null,
  360.             null,
  361.             true,
  362.             '{host}/{localization}',
  363.             5
  364.         );
  365.         $portalInformationRefs['stage']['{host}/de'] = new PortalInformation(
  366.             1,
  367.             $webspaceRefs['modernexpo'],
  368.             $portalRefs['modernexpo'],
  369.             $localizationRefs['modernexpo_de'],
  370.             '{host}/de',
  371.             null,
  372.             null,
  373.             true,
  374.             '{host}/{localization}',
  375.             5
  376.         );
  377.         $portalInformationRefs['stage']['{host}/fr'] = new PortalInformation(
  378.             1,
  379.             $webspaceRefs['modernexpo'],
  380.             $portalRefs['modernexpo'],
  381.             $localizationRefs['modernexpo_fr'],
  382.             '{host}/fr',
  383.             null,
  384.             null,
  385.             true,
  386.             '{host}/{localization}',
  387.             5
  388.         );
  389.         $portalInformationRefs['stage']['{host}'] = new PortalInformation(
  390.             2,
  391.             $webspaceRefs['modernexpo'],
  392.             $portalRefs['modernexpo'],
  393.             null,
  394.             '{host}',
  395.             null,
  396.             '{host}/{localization}',
  397.             false,
  398.             '{host}/{localization}',
  399.             4
  400.         );
  401.         $portalInformationRefs['stage']['*.*/*'] = new PortalInformation(
  402.             4,
  403.             $webspaceRefs['modernexpo'],
  404.             $portalRefs['modernexpo'],
  405.             null,
  406.             '*.*/*',
  407.             null,
  408.             null,
  409.             false,
  410.             '*.*/*',
  411.             1
  412.         );
  413.         $portalInformationRefs['test']['{host}/en'] = new PortalInformation(
  414.             1,
  415.             $webspaceRefs['modernexpo'],
  416.             $portalRefs['modernexpo'],
  417.             $localizationRefs['modernexpo_en'],
  418.             '{host}/en',
  419.             null,
  420.             null,
  421.             true,
  422.             '{host}/{localization}',
  423.             5
  424.         );
  425.         $portalInformationRefs['test']['{host}/ua'] = new PortalInformation(
  426.             1,
  427.             $webspaceRefs['modernexpo'],
  428.             $portalRefs['modernexpo'],
  429.             $localizationRefs['modernexpo_ua'],
  430.             '{host}/ua',
  431.             null,
  432.             null,
  433.             true,
  434.             '{host}/{localization}',
  435.             5
  436.         );
  437.         $portalInformationRefs['test']['{host}/pl'] = new PortalInformation(
  438.             1,
  439.             $webspaceRefs['modernexpo'],
  440.             $portalRefs['modernexpo'],
  441.             $localizationRefs['modernexpo_pl'],
  442.             '{host}/pl',
  443.             null,
  444.             null,
  445.             true,
  446.             '{host}/{localization}',
  447.             5
  448.         );
  449.         $portalInformationRefs['test']['{host}/de'] = new PortalInformation(
  450.             1,
  451.             $webspaceRefs['modernexpo'],
  452.             $portalRefs['modernexpo'],
  453.             $localizationRefs['modernexpo_de'],
  454.             '{host}/de',
  455.             null,
  456.             null,
  457.             true,
  458.             '{host}/{localization}',
  459.             5
  460.         );
  461.         $portalInformationRefs['test']['{host}/fr'] = new PortalInformation(
  462.             1,
  463.             $webspaceRefs['modernexpo'],
  464.             $portalRefs['modernexpo'],
  465.             $localizationRefs['modernexpo_fr'],
  466.             '{host}/fr',
  467.             null,
  468.             null,
  469.             true,
  470.             '{host}/{localization}',
  471.             5
  472.         );
  473.         $portalInformationRefs['test']['{host}'] = new PortalInformation(
  474.             2,
  475.             $webspaceRefs['modernexpo'],
  476.             $portalRefs['modernexpo'],
  477.             null,
  478.             '{host}',
  479.             null,
  480.             '{host}/{localization}',
  481.             false,
  482.             '{host}/{localization}',
  483.             4
  484.         );
  485.         $portalInformationRefs['test']['*.*/*'] = new PortalInformation(
  486.             4,
  487.             $webspaceRefs['modernexpo'],
  488.             $portalRefs['modernexpo'],
  489.             null,
  490.             '*.*/*',
  491.             null,
  492.             null,
  493.             false,
  494.             '*.*/*',
  495.             1
  496.         );
  497.         $portalInformationRefs['dev']['{host}/en'] = new PortalInformation(
  498.             1,
  499.             $webspaceRefs['modernexpo'],
  500.             $portalRefs['modernexpo'],
  501.             $localizationRefs['modernexpo_en'],
  502.             '{host}/en',
  503.             null,
  504.             null,
  505.             true,
  506.             '{host}/{localization}',
  507.             5
  508.         );
  509.         $portalInformationRefs['dev']['{host}/ua'] = new PortalInformation(
  510.             1,
  511.             $webspaceRefs['modernexpo'],
  512.             $portalRefs['modernexpo'],
  513.             $localizationRefs['modernexpo_ua'],
  514.             '{host}/ua',
  515.             null,
  516.             null,
  517.             true,
  518.             '{host}/{localization}',
  519.             5
  520.         );
  521.         $portalInformationRefs['dev']['{host}/pl'] = new PortalInformation(
  522.             1,
  523.             $webspaceRefs['modernexpo'],
  524.             $portalRefs['modernexpo'],
  525.             $localizationRefs['modernexpo_pl'],
  526.             '{host}/pl',
  527.             null,
  528.             null,
  529.             true,
  530.             '{host}/{localization}',
  531.             5
  532.         );
  533.         $portalInformationRefs['dev']['{host}/de'] = new PortalInformation(
  534.             1,
  535.             $webspaceRefs['modernexpo'],
  536.             $portalRefs['modernexpo'],
  537.             $localizationRefs['modernexpo_de'],
  538.             '{host}/de',
  539.             null,
  540.             null,
  541.             true,
  542.             '{host}/{localization}',
  543.             5
  544.         );
  545.         $portalInformationRefs['dev']['{host}/fr'] = new PortalInformation(
  546.             1,
  547.             $webspaceRefs['modernexpo'],
  548.             $portalRefs['modernexpo'],
  549.             $localizationRefs['modernexpo_fr'],
  550.             '{host}/fr',
  551.             null,
  552.             null,
  553.             true,
  554.             '{host}/{localization}',
  555.             5
  556.         );
  557.         $portalInformationRefs['dev']['{host}'] = new PortalInformation(
  558.             2,
  559.             $webspaceRefs['modernexpo'],
  560.             $portalRefs['modernexpo'],
  561.             null,
  562.             '{host}',
  563.             null,
  564.             '{host}/{localization}',
  565.             false,
  566.             '{host}/{localization}',
  567.             4
  568.         );
  569.         $portalInformationRefs['dev']['*.*/*'] = new PortalInformation(
  570.             4,
  571.             $webspaceRefs['modernexpo'],
  572.             $portalRefs['modernexpo'],
  573.             null,
  574.             '*.*/*',
  575.             null,
  576.             null,
  577.             false,
  578.             '*.*/*',
  579.             1
  580.         );
  581.         $this->setWebspaces($webspaceRefs);
  582.         $this->setPortals($portalRefs);
  583.         $this->setPortalInformations($portalInformationRefs);
  584.     }
  585. }