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

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('coworking-lyon');
  32.         $webspace->setName("Coworking Lyon");
  33.         // add localization to webspace
  34.         $localization0 = new Localization('fr''');
  35.         $localization0->setShadow('');
  36.         $localization0->setDefault(true);
  37.         $localization0->setXDefault('');
  38.         $localizationRefs['coworking-lyon_fr'] = $localization0;
  39.         $webspace->addLocalization($localization0);
  40.         // add theme
  41.         $webspace->addTemplate('search''search/search');
  42.         $webspace->addTemplate('error''error/error');
  43.         $webspace->addDefaultTemplate('page''default');
  44.         $webspace->addDefaultTemplate('home''homepage');
  45.         // add navigation
  46.         $navigation = new Navigation();
  47.         $navigation->addContext(new NavigationContext('main',     array(
  48.                         'title' =>     array(
  49.                         'en' => 'Main Menu',
  50.                                 'fr' => 'Menu Principal',
  51.                 )
  52. ,
  53.                 )
  54. ));
  55.         $navigation->addContext(new NavigationContext('bottom',     array(
  56.                         'title' =>     array(
  57.                         'en' => 'Bottom Menu',
  58.                                 'fr' => 'Menu Bas',
  59.                 )
  60. ,
  61.                 )
  62. ));
  63.         $navigation->addContext(new NavigationContext('article',     array(
  64.                         'title' =>     array(
  65.                         'en' => 'Articles',
  66.                                 'fr' => 'Articles',
  67.                 )
  68. ,
  69.                 )
  70. ));
  71.         $webspace->setNavigation($navigation);
  72.         $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  73.         // new portal
  74.         $portal = new Portal();
  75.         $portal->setName('Coworking Lyon');
  76.         $portal->setKey('coworking-lyon');
  77.         $portal->setWebspace($webspace);
  78.         // add localization
  79.         $localization = new Localization('fr''');
  80.         $localization->setDefault('1');
  81.         $localization->setXDefault('');
  82.         $portal->addLocalization($localization);
  83.         // add environment
  84.         $environment = new Environment();
  85.         $environment->setType('prod');
  86.         // add environment url
  87.         $url = new Url();
  88.         $url->setUrl('{host}');
  89.         $url->setLanguage('fr');
  90.         $url->setCountry('');
  91.         $url->setSegment('');
  92.         $url->setRedirect('');
  93.         $url->setMain(true);
  94.         $environment->addUrl($url);
  95.         $portal->addEnvironment($environment);
  96.         // add environment
  97.         $environment = new Environment();
  98.         $environment->setType('stage');
  99.         // add environment url
  100.         $url = new Url();
  101.         $url->setUrl('{host}');
  102.         $url->setLanguage('fr');
  103.         $url->setCountry('');
  104.         $url->setSegment('');
  105.         $url->setRedirect('');
  106.         $url->setMain(true);
  107.         $environment->addUrl($url);
  108.         $portal->addEnvironment($environment);
  109.         // add environment
  110.         $environment = new Environment();
  111.         $environment->setType('test');
  112.         // add environment url
  113.         $url = new Url();
  114.         $url->setUrl('{host}');
  115.         $url->setLanguage('fr');
  116.         $url->setCountry('');
  117.         $url->setSegment('');
  118.         $url->setRedirect('');
  119.         $url->setMain(true);
  120.         $environment->addUrl($url);
  121.         $portal->addEnvironment($environment);
  122.         // add environment
  123.         $environment = new Environment();
  124.         $environment->setType('dev');
  125.         // add environment url
  126.         $url = new Url();
  127.         $url->setUrl('{host}');
  128.         $url->setLanguage('fr');
  129.         $url->setCountry('');
  130.         $url->setSegment('');
  131.         $url->setRedirect('');
  132.         $url->setMain(true);
  133.         $environment->addUrl($url);
  134.         $portal->addEnvironment($environment);
  135.         $portalRefs['coworking-lyon'] = $portal;
  136.         $webspace->addPortal($portal);
  137.         $webspaceRefs['coworking-lyon'] = $webspace;
  138.         $portalInformationRefs['prod']['{host}'] = new PortalInformation(
  139.             1,
  140.             $webspaceRefs['coworking-lyon'],
  141.             $portalRefs['coworking-lyon'],
  142.             $localizationRefs['coworking-lyon_fr'],
  143.             '{host}',
  144.             null,
  145.             null,
  146.             true,
  147.             '{host}',
  148.             5
  149.         );
  150.         $portalInformationRefs['stage']['{host}'] = new PortalInformation(
  151.             1,
  152.             $webspaceRefs['coworking-lyon'],
  153.             $portalRefs['coworking-lyon'],
  154.             $localizationRefs['coworking-lyon_fr'],
  155.             '{host}',
  156.             null,
  157.             null,
  158.             true,
  159.             '{host}',
  160.             5
  161.         );
  162.         $portalInformationRefs['test']['{host}'] = new PortalInformation(
  163.             1,
  164.             $webspaceRefs['coworking-lyon'],
  165.             $portalRefs['coworking-lyon'],
  166.             $localizationRefs['coworking-lyon_fr'],
  167.             '{host}',
  168.             null,
  169.             null,
  170.             true,
  171.             '{host}',
  172.             5
  173.         );
  174.         $portalInformationRefs['dev']['{host}'] = new PortalInformation(
  175.             1,
  176.             $webspaceRefs['coworking-lyon'],
  177.             $portalRefs['coworking-lyon'],
  178.             $localizationRefs['coworking-lyon_fr'],
  179.             '{host}',
  180.             null,
  181.             null,
  182.             true,
  183.             '{host}',
  184.             5
  185.         );
  186.         $this->setWebspaces($webspaceRefs);
  187.         $this->setPortals($portalRefs);
  188.         $this->setPortalInformations($portalInformationRefs);
  189.     }
  190. }