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

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('pqna');
  32.         $webspace->setName("pqn-a.fr");
  33.         $security = new Security();
  34.         $security->setSystem('Website');
  35.         $security->setPermissionCheck(false);
  36.         $webspace->setSecurity($security);
  37.         // add localization to webspace
  38.         $localization0 = new Localization();
  39.         $localization0->setLanguage('fr');
  40.         $localization0->setCountry('');
  41.         $localization0->setShadow('');
  42.         $localization0->setDefault(true);
  43.         $localization0->setXDefault('');
  44.         $localizationRefs['pqna_fr'] = $localization0;
  45.         $webspace->addLocalization($localization0);
  46.         // add theme
  47.         $webspace->addTemplate('search''search/search');
  48.         $webspace->addTemplate('error''error/error');
  49.         $webspace->addDefaultTemplate('page''pqna');
  50.         $webspace->addDefaultTemplate('home''pqna');
  51.         // add navigation
  52.         $navigation = new Navigation();
  53.         $navigation->addContext(new NavigationContext('main',     array(
  54.                         'title' =>     array(
  55.                         'fr' => 'Navigation principale',
  56.                 )
  57. ,
  58.                 )
  59. ));
  60.         $navigation->addContext(new NavigationContext('footer',     array(
  61.                         'title' =>     array(
  62.                         'fr' => 'Navigation pied de page',
  63.                 )
  64. ,
  65.                 )
  66. ));
  67.         $navigation->addContext(new NavigationContext('bottomfooter',     array(
  68.                         'title' =>     array(
  69.                         'fr' => 'Navigation au plus bas de la page',
  70.                 )
  71. ,
  72.                 )
  73. ));
  74.         $navigation->addContext(new NavigationContext('aside',     array(
  75.                         'title' =>     array(
  76.                         'fr' => 'Navigation sur le côté (pour fiche thématique)',
  77.                 )
  78. ,
  79.                 )
  80. ));
  81.         $webspace->setNavigation($navigation);
  82.         $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  83.         // new portal
  84.         $portal = new Portal();
  85.         $portal->setName('pqn-a.fr');
  86.         $portal->setKey('pqna');
  87.         $portal->setWebspace($webspace);
  88.         // add localization
  89.         $localization = new Localization();
  90.         $localization->setLanguage('fr');
  91.         $localization->setCountry('');
  92.         $localization->setDefault('1');
  93.         $localization->setXDefault('');
  94.         $portal->addLocalization($localization);
  95.         // add environment
  96.         $environment = new Environment();
  97.         $environment->setType('prod');
  98.         // add environment url
  99.         $url = new Url();
  100.         $url->setUrl('{host}/{localization}');
  101.         $url->setLanguage('fr');
  102.         $url->setCountry('');
  103.         $url->setSegment('');
  104.         $url->setRedirect('');
  105.         $url->setMain(true);
  106.         $environment->addUrl($url);
  107.         $portal->addEnvironment($environment);
  108.         // add environment
  109.         $environment = new Environment();
  110.         $environment->setType('stage');
  111.         // add environment url
  112.         $url = new Url();
  113.         $url->setUrl('{host}/{localization}');
  114.         $url->setLanguage('fr');
  115.         $url->setCountry('');
  116.         $url->setSegment('');
  117.         $url->setRedirect('');
  118.         $url->setMain(true);
  119.         $environment->addUrl($url);
  120.         $portal->addEnvironment($environment);
  121.         // add environment
  122.         $environment = new Environment();
  123.         $environment->setType('test');
  124.         // add environment url
  125.         $url = new Url();
  126.         $url->setUrl('{host}/{localization}');
  127.         $url->setLanguage('fr');
  128.         $url->setCountry('');
  129.         $url->setSegment('');
  130.         $url->setRedirect('');
  131.         $url->setMain(true);
  132.         $environment->addUrl($url);
  133.         $portal->addEnvironment($environment);
  134.         // add environment
  135.         $environment = new Environment();
  136.         $environment->setType('dev');
  137.         // add environment url
  138.         $url = new Url();
  139.         $url->setUrl('{host}/{localization}');
  140.         $url->setLanguage('fr');
  141.         $url->setCountry('');
  142.         $url->setSegment('');
  143.         $url->setRedirect('');
  144.         $url->setMain(true);
  145.         $environment->addUrl($url);
  146.         $portal->addEnvironment($environment);
  147.         $portalRefs['pqna'] = $portal;
  148.         $webspace->addPortal($portal);
  149.         $webspaceRefs['pqna'] = $webspace;
  150.         $portalInformationRefs['prod']['{host}/fr'] = new PortalInformation(
  151.             1,
  152.             $webspaceRefs['pqna'],
  153.             $portalRefs['pqna'],
  154.             $localizationRefs['pqna_fr'],
  155.             '{host}/fr',
  156.             null,
  157.             null,
  158.             true,
  159.             '{host}/{localization}',
  160.             5
  161.         );
  162.         $portalInformationRefs['prod']['{host}'] = new PortalInformation(
  163.             2,
  164.             $webspaceRefs['pqna'],
  165.             $portalRefs['pqna'],
  166.             null,
  167.             '{host}',
  168.             null,
  169.             '{host}/{localization}',
  170.             false,
  171.             '{host}/{localization}',
  172.             4
  173.         );
  174.         $portalInformationRefs['stage']['{host}/fr'] = new PortalInformation(
  175.             1,
  176.             $webspaceRefs['pqna'],
  177.             $portalRefs['pqna'],
  178.             $localizationRefs['pqna_fr'],
  179.             '{host}/fr',
  180.             null,
  181.             null,
  182.             true,
  183.             '{host}/{localization}',
  184.             5
  185.         );
  186.         $portalInformationRefs['stage']['{host}'] = new PortalInformation(
  187.             2,
  188.             $webspaceRefs['pqna'],
  189.             $portalRefs['pqna'],
  190.             null,
  191.             '{host}',
  192.             null,
  193.             '{host}/{localization}',
  194.             false,
  195.             '{host}/{localization}',
  196.             4
  197.         );
  198.         $portalInformationRefs['test']['{host}/fr'] = new PortalInformation(
  199.             1,
  200.             $webspaceRefs['pqna'],
  201.             $portalRefs['pqna'],
  202.             $localizationRefs['pqna_fr'],
  203.             '{host}/fr',
  204.             null,
  205.             null,
  206.             true,
  207.             '{host}/{localization}',
  208.             5
  209.         );
  210.         $portalInformationRefs['test']['{host}'] = new PortalInformation(
  211.             2,
  212.             $webspaceRefs['pqna'],
  213.             $portalRefs['pqna'],
  214.             null,
  215.             '{host}',
  216.             null,
  217.             '{host}/{localization}',
  218.             false,
  219.             '{host}/{localization}',
  220.             4
  221.         );
  222.         $portalInformationRefs['dev']['{host}/fr'] = new PortalInformation(
  223.             1,
  224.             $webspaceRefs['pqna'],
  225.             $portalRefs['pqna'],
  226.             $localizationRefs['pqna_fr'],
  227.             '{host}/fr',
  228.             null,
  229.             null,
  230.             true,
  231.             '{host}/{localization}',
  232.             5
  233.         );
  234.         $portalInformationRefs['dev']['{host}'] = new PortalInformation(
  235.             2,
  236.             $webspaceRefs['pqna'],
  237.             $portalRefs['pqna'],
  238.             null,
  239.             '{host}',
  240.             null,
  241.             '{host}/{localization}',
  242.             false,
  243.             '{host}/{localization}',
  244.             4
  245.         );
  246.         $this->setWebspaces($webspaceRefs);
  247.         $this->setPortals($portalRefs);
  248.         $this->setPortalInformations($portalInformationRefs);
  249.     }
  250. }