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

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('bernard_nicod_commercial');
  32.         $webspace->setName("Bernard Nicod Commercial");
  33.         // add localization to webspace
  34.         $localization0 = new Localization();
  35.         $localization0->setLanguage('fr');
  36.         $localization0->setCountry('');
  37.         $localization0->setShadow('');
  38.         $localization0->setDefault(true);
  39.         $localization0->setXDefault('');
  40.         $localizationRefs['bernard_nicod_commercial_fr'] = $localization0;
  41.         $webspace->addLocalization($localization0);
  42.         // add theme
  43.         $webspace->addTemplate('search''search/search');
  44.         $webspace->addTemplate('error''error/error');
  45.         $webspace->addTemplate('error-404''error/error404');
  46.         $webspace->addDefaultTemplate('page''default');
  47.         $webspace->addDefaultTemplate('home''homepage');
  48.         // add navigation
  49.         $navigation = new Navigation();
  50.         $navigation->addContext(new NavigationContext('main',     array(
  51.                         'title' =>     array(
  52.                         'fr' => 'Main Navigation',
  53.                 )
  54. ,
  55.                 )
  56. ));
  57.         $navigation->addContext(new NavigationContext('burgerOne',     array(
  58.                         'title' =>     array(
  59.                         'fr' => 'Burger Navigation 1',
  60.                 )
  61. ,
  62.                 )
  63. ));
  64.         $navigation->addContext(new NavigationContext('burgerTow',     array(
  65.                         'title' =>     array(
  66.                         'fr' => 'Burger Navigation 2',
  67.                 )
  68. ,
  69.                 )
  70. ));
  71.         $navigation->addContext(new NavigationContext('burgerThree',     array(
  72.                         'title' =>     array(
  73.                         'fr' => 'Burger Navigation 3',
  74.                 )
  75. ,
  76.                 )
  77. ));
  78.         $navigation->addContext(new NavigationContext('FooterOne',     array(
  79.                         'title' =>     array(
  80.                         'fr' => 'Footer Navigation 1',
  81.                 )
  82. ,
  83.                 )
  84. ));
  85.         $navigation->addContext(new NavigationContext('FooterTow',     array(
  86.                         'title' =>     array(
  87.                         'fr' => 'Footer Navigation 2',
  88.                 )
  89. ,
  90.                 )
  91. ));
  92.         $navigation->addContext(new NavigationContext('FooterThree',     array(
  93.                         'title' =>     array(
  94.                         'fr' => 'Footer Navigation 3',
  95.                 )
  96. ,
  97.                 )
  98. ));
  99.         $navigation->addContext(new NavigationContext('FooterBottom',     array(
  100.                         'title' =>     array(
  101.                         'fr' => 'Footer Navigation Bottom',
  102.                 )
  103. ,
  104.                 )
  105. ));
  106.         $webspace->setNavigation($navigation);
  107.         $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  108.         // new portal
  109.         $portal = new Portal();
  110.         $portal->setName('bernard_nicod_commercial');
  111.         $portal->setKey('bernard_nicod_commercial');
  112.         $portal->setWebspace($webspace);
  113.         // add localization
  114.         $localization = new Localization();
  115.         $localization->setLanguage('fr');
  116.         $localization->setCountry('');
  117.         $localization->setDefault('1');
  118.         $localization->setXDefault('');
  119.         $portal->addLocalization($localization);
  120.         // add environment
  121.         $environment = new Environment();
  122.         $environment->setType('prod');
  123.         // add environment url
  124.         $url = new Url();
  125.         $url->setUrl('{host}');
  126.         $url->setLanguage('fr');
  127.         $url->setCountry('');
  128.         $url->setSegment('');
  129.         $url->setRedirect('');
  130.         $url->setMain(true);
  131.         $environment->addUrl($url);
  132.         $portal->addEnvironment($environment);
  133.         // add environment
  134.         $environment = new Environment();
  135.         $environment->setType('stage');
  136.         // add environment url
  137.         $url = new Url();
  138.         $url->setUrl('{host}');
  139.         $url->setLanguage('fr');
  140.         $url->setCountry('');
  141.         $url->setSegment('');
  142.         $url->setRedirect('');
  143.         $url->setMain(true);
  144.         $environment->addUrl($url);
  145.         $portal->addEnvironment($environment);
  146.         // add environment
  147.         $environment = new Environment();
  148.         $environment->setType('test');
  149.         // add environment url
  150.         $url = new Url();
  151.         $url->setUrl('{host}');
  152.         $url->setLanguage('fr');
  153.         $url->setCountry('');
  154.         $url->setSegment('');
  155.         $url->setRedirect('');
  156.         $url->setMain(true);
  157.         $environment->addUrl($url);
  158.         $portal->addEnvironment($environment);
  159.         // add environment
  160.         $environment = new Environment();
  161.         $environment->setType('dev');
  162.         // add environment url
  163.         $url = new Url();
  164.         $url->setUrl('{host}');
  165.         $url->setLanguage('fr');
  166.         $url->setCountry('');
  167.         $url->setSegment('');
  168.         $url->setRedirect('');
  169.         $url->setMain(true);
  170.         $environment->addUrl($url);
  171.         $portal->addEnvironment($environment);
  172.         $portalRefs['bernard_nicod_commercial'] = $portal;
  173.         $webspace->addPortal($portal);
  174.         $webspaceRefs['bernard_nicod_commercial'] = $webspace;
  175.         $portalInformationRefs['prod']['{host}'] = new PortalInformation(
  176.             1,
  177.             $webspaceRefs['bernard_nicod_commercial'],
  178.             $portalRefs['bernard_nicod_commercial'],
  179.             $localizationRefs['bernard_nicod_commercial_fr'],
  180.             '{host}',
  181.             null,
  182.             null,
  183.             true,
  184.             '{host}',
  185.             5
  186.         );
  187.         $portalInformationRefs['stage']['{host}'] = new PortalInformation(
  188.             1,
  189.             $webspaceRefs['bernard_nicod_commercial'],
  190.             $portalRefs['bernard_nicod_commercial'],
  191.             $localizationRefs['bernard_nicod_commercial_fr'],
  192.             '{host}',
  193.             null,
  194.             null,
  195.             true,
  196.             '{host}',
  197.             5
  198.         );
  199.         $portalInformationRefs['test']['{host}'] = new PortalInformation(
  200.             1,
  201.             $webspaceRefs['bernard_nicod_commercial'],
  202.             $portalRefs['bernard_nicod_commercial'],
  203.             $localizationRefs['bernard_nicod_commercial_fr'],
  204.             '{host}',
  205.             null,
  206.             null,
  207.             true,
  208.             '{host}',
  209.             5
  210.         );
  211.         $portalInformationRefs['dev']['{host}'] = new PortalInformation(
  212.             1,
  213.             $webspaceRefs['bernard_nicod_commercial'],
  214.             $portalRefs['bernard_nicod_commercial'],
  215.             $localizationRefs['bernard_nicod_commercial_fr'],
  216.             '{host}',
  217.             null,
  218.             null,
  219.             true,
  220.             '{host}',
  221.             5
  222.         );
  223.         $this->setWebspaces($webspaceRefs);
  224.         $this->setPortals($portalRefs);
  225.         $this->setPortalInformations($portalInformationRefs);
  226.     }
  227. }