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

  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('weber');
  32.         $webspace->setName("example.com");
  33.         // add localization to webspace
  34.         $localization0 = new Localization();
  35.         $localization0->setLanguage('si');
  36.         $localization0->setCountry('');
  37.         $localization0->setShadow('');
  38.         $localization0->setDefault(true);
  39.         $localization0->setXDefault('');
  40.         $localizationRefs['weber_si'] = $localization0;
  41.         $webspace->addLocalization($localization0);
  42.         // add localization to webspace
  43.         $localization0 = new Localization();
  44.         $localization0->setLanguage('ba');
  45.         $localization0->setCountry('');
  46.         $localization0->setShadow('');
  47.         $localization0->setDefault(false);
  48.         $localization0->setXDefault('');
  49.         $localizationRefs['weber_ba'] = $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['weber_de'] = $localization0;
  59.         $webspace->addLocalization($localization0);
  60.         // add localization to webspace
  61.         $localization0 = new Localization();
  62.         $localization0->setLanguage('en');
  63.         $localization0->setCountry('');
  64.         $localization0->setShadow('');
  65.         $localization0->setDefault(false);
  66.         $localization0->setXDefault('');
  67.         $localizationRefs['weber_en'] = $localization0;
  68.         $webspace->addLocalization($localization0);
  69.         // add theme
  70.         $webspace->addTemplate('search''search/search');
  71.         $webspace->addTemplate('error''error/error');
  72.         $webspace->addDefaultTemplate('page''default');
  73.         $webspace->addDefaultTemplate('home''homepage');
  74.         // add navigation
  75.         $navigation = new Navigation();
  76.         $navigation->addContext(new NavigationContext('main',     array(
  77.                         'title' =>     array(
  78.                         'si' => 'Main Navigation',
  79.                 )
  80. ,
  81.                 )
  82. ));
  83.         $webspace->setNavigation($navigation);
  84.         $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  85.         // new portal
  86.         $portal = new Portal();
  87.         $portal->setName('example.com');
  88.         $portal->setKey('example');
  89.         $portal->setWebspace($webspace);
  90.         // add localization
  91.         $localization = new Localization();
  92.         $localization->setLanguage('si');
  93.         $localization->setCountry('');
  94.         $localization->setDefault('1');
  95.         $localization->setXDefault('');
  96.         $portal->addLocalization($localization);
  97.         // add localization
  98.         $localization = new Localization();
  99.         $localization->setLanguage('ba');
  100.         $localization->setCountry('');
  101.         $localization->setDefault('');
  102.         $localization->setXDefault('');
  103.         $portal->addLocalization($localization);
  104.         // add localization
  105.         $localization = new Localization();
  106.         $localization->setLanguage('de');
  107.         $localization->setCountry('');
  108.         $localization->setDefault('');
  109.         $localization->setXDefault('');
  110.         $portal->addLocalization($localization);
  111.         // add localization
  112.         $localization = new Localization();
  113.         $localization->setLanguage('en');
  114.         $localization->setCountry('');
  115.         $localization->setDefault('');
  116.         $localization->setXDefault('');
  117.         $portal->addLocalization($localization);
  118.         // add environment
  119.         $environment = new Environment();
  120.         $environment->setType('prod');
  121.         // add environment url
  122.         $url = new Url();
  123.         $url->setUrl('{host}');
  124.         $url->setLanguage('si');
  125.         $url->setCountry('');
  126.         $url->setSegment('');
  127.         $url->setRedirect('');
  128.         $url->setMain(true);
  129.         $environment->addUrl($url);
  130.         // add environment url
  131.         $url = new Url();
  132.         $url->setUrl('{host}/ba');
  133.         $url->setLanguage('ba');
  134.         $url->setCountry('');
  135.         $url->setSegment('');
  136.         $url->setRedirect('');
  137.         $url->setMain(false);
  138.         $environment->addUrl($url);
  139.         // add environment url
  140.         $url = new Url();
  141.         $url->setUrl('{host}/de');
  142.         $url->setLanguage('de');
  143.         $url->setCountry('');
  144.         $url->setSegment('');
  145.         $url->setRedirect('');
  146.         $url->setMain(false);
  147.         $environment->addUrl($url);
  148.         // add environment url
  149.         $url = new Url();
  150.         $url->setUrl('{host}/en');
  151.         $url->setLanguage('en');
  152.         $url->setCountry('');
  153.         $url->setSegment('');
  154.         $url->setRedirect('');
  155.         $url->setMain(false);
  156.         $environment->addUrl($url);
  157.         $portal->addEnvironment($environment);
  158.         // add environment
  159.         $environment = new Environment();
  160.         $environment->setType('stage');
  161.         // add environment url
  162.         $url = new Url();
  163.         $url->setUrl('{host}');
  164.         $url->setLanguage('si');
  165.         $url->setCountry('');
  166.         $url->setSegment('');
  167.         $url->setRedirect('');
  168.         $url->setMain(true);
  169.         $environment->addUrl($url);
  170.         // add environment url
  171.         $url = new Url();
  172.         $url->setUrl('{host}/ba');
  173.         $url->setLanguage('ba');
  174.         $url->setCountry('');
  175.         $url->setSegment('');
  176.         $url->setRedirect('');
  177.         $url->setMain(false);
  178.         $environment->addUrl($url);
  179.         // add environment url
  180.         $url = new Url();
  181.         $url->setUrl('{host}/de');
  182.         $url->setLanguage('de');
  183.         $url->setCountry('');
  184.         $url->setSegment('');
  185.         $url->setRedirect('');
  186.         $url->setMain(false);
  187.         $environment->addUrl($url);
  188.         // add environment url
  189.         $url = new Url();
  190.         $url->setUrl('{host}/en');
  191.         $url->setLanguage('en');
  192.         $url->setCountry('');
  193.         $url->setSegment('');
  194.         $url->setRedirect('');
  195.         $url->setMain(false);
  196.         $environment->addUrl($url);
  197.         $portal->addEnvironment($environment);
  198.         // add environment
  199.         $environment = new Environment();
  200.         $environment->setType('test');
  201.         // add environment url
  202.         $url = new Url();
  203.         $url->setUrl('{host}');
  204.         $url->setLanguage('si');
  205.         $url->setCountry('');
  206.         $url->setSegment('');
  207.         $url->setRedirect('');
  208.         $url->setMain(true);
  209.         $environment->addUrl($url);
  210.         // add environment url
  211.         $url = new Url();
  212.         $url->setUrl('{host}/ba');
  213.         $url->setLanguage('ba');
  214.         $url->setCountry('');
  215.         $url->setSegment('');
  216.         $url->setRedirect('');
  217.         $url->setMain(false);
  218.         $environment->addUrl($url);
  219.         // add environment url
  220.         $url = new Url();
  221.         $url->setUrl('{host}/de');
  222.         $url->setLanguage('de');
  223.         $url->setCountry('');
  224.         $url->setSegment('');
  225.         $url->setRedirect('');
  226.         $url->setMain(false);
  227.         $environment->addUrl($url);
  228.         // add environment url
  229.         $url = new Url();
  230.         $url->setUrl('{host}/en');
  231.         $url->setLanguage('en');
  232.         $url->setCountry('');
  233.         $url->setSegment('');
  234.         $url->setRedirect('');
  235.         $url->setMain(false);
  236.         $environment->addUrl($url);
  237.         $portal->addEnvironment($environment);
  238.         // add environment
  239.         $environment = new Environment();
  240.         $environment->setType('dev');
  241.         // add environment url
  242.         $url = new Url();
  243.         $url->setUrl('{host}');
  244.         $url->setLanguage('si');
  245.         $url->setCountry('');
  246.         $url->setSegment('');
  247.         $url->setRedirect('');
  248.         $url->setMain(true);
  249.         $environment->addUrl($url);
  250.         // add environment url
  251.         $url = new Url();
  252.         $url->setUrl('{host}/ba');
  253.         $url->setLanguage('ba');
  254.         $url->setCountry('');
  255.         $url->setSegment('');
  256.         $url->setRedirect('');
  257.         $url->setMain(false);
  258.         $environment->addUrl($url);
  259.         // add environment url
  260.         $url = new Url();
  261.         $url->setUrl('{host}/de');
  262.         $url->setLanguage('de');
  263.         $url->setCountry('');
  264.         $url->setSegment('');
  265.         $url->setRedirect('');
  266.         $url->setMain(false);
  267.         $environment->addUrl($url);
  268.         // add environment url
  269.         $url = new Url();
  270.         $url->setUrl('{host}/en');
  271.         $url->setLanguage('en');
  272.         $url->setCountry('');
  273.         $url->setSegment('');
  274.         $url->setRedirect('');
  275.         $url->setMain(false);
  276.         $environment->addUrl($url);
  277.         $portal->addEnvironment($environment);
  278.         $portalRefs['example'] = $portal;
  279.         $webspace->addPortal($portal);
  280.         $webspaceRefs['weber'] = $webspace;
  281.         $portalInformationRefs['prod']['{host}/de'] = new PortalInformation(
  282.             1,
  283.             $webspaceRefs['weber'],
  284.             $portalRefs['example'],
  285.             $localizationRefs['weber_de'],
  286.             '{host}/de',
  287.             null,
  288.             null,
  289.             false,
  290.             '{host}/de',
  291.             5
  292.         );
  293.         $portalInformationRefs['prod']['{host}/ba'] = new PortalInformation(
  294.             1,
  295.             $webspaceRefs['weber'],
  296.             $portalRefs['example'],
  297.             $localizationRefs['weber_ba'],
  298.             '{host}/ba',
  299.             null,
  300.             null,
  301.             false,
  302.             '{host}/ba',
  303.             5
  304.         );
  305.         $portalInformationRefs['prod']['{host}/en'] = new PortalInformation(
  306.             1,
  307.             $webspaceRefs['weber'],
  308.             $portalRefs['example'],
  309.             $localizationRefs['weber_en'],
  310.             '{host}/en',
  311.             null,
  312.             null,
  313.             false,
  314.             '{host}/en',
  315.             5
  316.         );
  317.         $portalInformationRefs['prod']['{host}'] = new PortalInformation(
  318.             1,
  319.             $webspaceRefs['weber'],
  320.             $portalRefs['example'],
  321.             $localizationRefs['weber_si'],
  322.             '{host}',
  323.             null,
  324.             null,
  325.             true,
  326.             '{host}',
  327.             5
  328.         );
  329.         $portalInformationRefs['stage']['{host}/de'] = new PortalInformation(
  330.             1,
  331.             $webspaceRefs['weber'],
  332.             $portalRefs['example'],
  333.             $localizationRefs['weber_de'],
  334.             '{host}/de',
  335.             null,
  336.             null,
  337.             false,
  338.             '{host}/de',
  339.             5
  340.         );
  341.         $portalInformationRefs['stage']['{host}/ba'] = new PortalInformation(
  342.             1,
  343.             $webspaceRefs['weber'],
  344.             $portalRefs['example'],
  345.             $localizationRefs['weber_ba'],
  346.             '{host}/ba',
  347.             null,
  348.             null,
  349.             false,
  350.             '{host}/ba',
  351.             5
  352.         );
  353.         $portalInformationRefs['stage']['{host}/en'] = new PortalInformation(
  354.             1,
  355.             $webspaceRefs['weber'],
  356.             $portalRefs['example'],
  357.             $localizationRefs['weber_en'],
  358.             '{host}/en',
  359.             null,
  360.             null,
  361.             false,
  362.             '{host}/en',
  363.             5
  364.         );
  365.         $portalInformationRefs['stage']['{host}'] = new PortalInformation(
  366.             1,
  367.             $webspaceRefs['weber'],
  368.             $portalRefs['example'],
  369.             $localizationRefs['weber_si'],
  370.             '{host}',
  371.             null,
  372.             null,
  373.             true,
  374.             '{host}',
  375.             5
  376.         );
  377.         $portalInformationRefs['test']['{host}/de'] = new PortalInformation(
  378.             1,
  379.             $webspaceRefs['weber'],
  380.             $portalRefs['example'],
  381.             $localizationRefs['weber_de'],
  382.             '{host}/de',
  383.             null,
  384.             null,
  385.             false,
  386.             '{host}/de',
  387.             5
  388.         );
  389.         $portalInformationRefs['test']['{host}/ba'] = new PortalInformation(
  390.             1,
  391.             $webspaceRefs['weber'],
  392.             $portalRefs['example'],
  393.             $localizationRefs['weber_ba'],
  394.             '{host}/ba',
  395.             null,
  396.             null,
  397.             false,
  398.             '{host}/ba',
  399.             5
  400.         );
  401.         $portalInformationRefs['test']['{host}/en'] = new PortalInformation(
  402.             1,
  403.             $webspaceRefs['weber'],
  404.             $portalRefs['example'],
  405.             $localizationRefs['weber_en'],
  406.             '{host}/en',
  407.             null,
  408.             null,
  409.             false,
  410.             '{host}/en',
  411.             5
  412.         );
  413.         $portalInformationRefs['test']['{host}'] = new PortalInformation(
  414.             1,
  415.             $webspaceRefs['weber'],
  416.             $portalRefs['example'],
  417.             $localizationRefs['weber_si'],
  418.             '{host}',
  419.             null,
  420.             null,
  421.             true,
  422.             '{host}',
  423.             5
  424.         );
  425.         $portalInformationRefs['dev']['{host}/de'] = new PortalInformation(
  426.             1,
  427.             $webspaceRefs['weber'],
  428.             $portalRefs['example'],
  429.             $localizationRefs['weber_de'],
  430.             '{host}/de',
  431.             null,
  432.             null,
  433.             false,
  434.             '{host}/de',
  435.             5
  436.         );
  437.         $portalInformationRefs['dev']['{host}/ba'] = new PortalInformation(
  438.             1,
  439.             $webspaceRefs['weber'],
  440.             $portalRefs['example'],
  441.             $localizationRefs['weber_ba'],
  442.             '{host}/ba',
  443.             null,
  444.             null,
  445.             false,
  446.             '{host}/ba',
  447.             5
  448.         );
  449.         $portalInformationRefs['dev']['{host}/en'] = new PortalInformation(
  450.             1,
  451.             $webspaceRefs['weber'],
  452.             $portalRefs['example'],
  453.             $localizationRefs['weber_en'],
  454.             '{host}/en',
  455.             null,
  456.             null,
  457.             false,
  458.             '{host}/en',
  459.             5
  460.         );
  461.         $portalInformationRefs['dev']['{host}'] = new PortalInformation(
  462.             1,
  463.             $webspaceRefs['weber'],
  464.             $portalRefs['example'],
  465.             $localizationRefs['weber_si'],
  466.             '{host}',
  467.             null,
  468.             null,
  469.             true,
  470.             '{host}',
  471.             5
  472.         );
  473.         $this->setWebspaces($webspaceRefs);
  474.         $this->setPortals($portalRefs);
  475.         $this->setPortalInformations($portalInformationRefs);
  476.     }
  477. }