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

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.         $navigation->addContext(new NavigationContext('fiche-thematique-ressources',     array(
  82.                         'title' =>     array(
  83.                         'fr' => '[Fiche thématique] Les ressources',
  84.                 )
  85. ,
  86.                 )
  87. ));
  88.         $navigation->addContext(new NavigationContext('fiche-thematique-actualites',     array(
  89.                         'title' =>     array(
  90.                         'fr' => '[Fiche thématique] Les actualités',
  91.                 )
  92. ,
  93.                 )
  94. ));
  95.         $navigation->addContext(new NavigationContext('fiche-thematique-acteurs',     array(
  96.                         'title' =>     array(
  97.                         'fr' => '[Fiche thématique] Les acteurs',
  98.                 )
  99. ,
  100.                 )
  101. ));
  102.         $webspace->setNavigation($navigation);
  103.         $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  104.         // new portal
  105.         $portal = new Portal();
  106.         $portal->setName('pqn-a.fr');
  107.         $portal->setKey('pqna');
  108.         $portal->setWebspace($webspace);
  109.         // add localization
  110.         $localization = new Localization();
  111.         $localization->setLanguage('fr');
  112.         $localization->setCountry('');
  113.         $localization->setDefault('1');
  114.         $localization->setXDefault('');
  115.         $portal->addLocalization($localization);
  116.         // add environment
  117.         $environment = new Environment();
  118.         $environment->setType('prod');
  119.         // add environment url
  120.         $url = new Url();
  121.         $url->setUrl('{host}/{localization}');
  122.         $url->setLanguage('fr');
  123.         $url->setCountry('');
  124.         $url->setSegment('');
  125.         $url->setRedirect('');
  126.         $url->setMain(true);
  127.         $environment->addUrl($url);
  128.         $portal->addEnvironment($environment);
  129.         // add environment
  130.         $environment = new Environment();
  131.         $environment->setType('stage');
  132.         // add environment url
  133.         $url = new Url();
  134.         $url->setUrl('{host}/{localization}');
  135.         $url->setLanguage('fr');
  136.         $url->setCountry('');
  137.         $url->setSegment('');
  138.         $url->setRedirect('');
  139.         $url->setMain(true);
  140.         $environment->addUrl($url);
  141.         $portal->addEnvironment($environment);
  142.         // add environment
  143.         $environment = new Environment();
  144.         $environment->setType('test');
  145.         // add environment url
  146.         $url = new Url();
  147.         $url->setUrl('{host}/{localization}');
  148.         $url->setLanguage('fr');
  149.         $url->setCountry('');
  150.         $url->setSegment('');
  151.         $url->setRedirect('');
  152.         $url->setMain(true);
  153.         $environment->addUrl($url);
  154.         $portal->addEnvironment($environment);
  155.         // add environment
  156.         $environment = new Environment();
  157.         $environment->setType('dev');
  158.         // add environment url
  159.         $url = new Url();
  160.         $url->setUrl('{host}/{localization}');
  161.         $url->setLanguage('fr');
  162.         $url->setCountry('');
  163.         $url->setSegment('');
  164.         $url->setRedirect('');
  165.         $url->setMain(true);
  166.         $environment->addUrl($url);
  167.         $portal->addEnvironment($environment);
  168.         $portalRefs['pqna'] = $portal;
  169.         $webspace->addPortal($portal);
  170.         $webspaceRefs['pqna'] = $webspace;
  171.         $portalInformationRefs['prod']['{host}/fr'] = new PortalInformation(
  172.             1,
  173.             $webspaceRefs['pqna'],
  174.             $portalRefs['pqna'],
  175.             $localizationRefs['pqna_fr'],
  176.             '{host}/fr',
  177.             null,
  178.             null,
  179.             true,
  180.             '{host}/{localization}',
  181.             5
  182.         );
  183.         $portalInformationRefs['prod']['{host}'] = new PortalInformation(
  184.             2,
  185.             $webspaceRefs['pqna'],
  186.             $portalRefs['pqna'],
  187.             null,
  188.             '{host}',
  189.             null,
  190.             '{host}/{localization}',
  191.             false,
  192.             '{host}/{localization}',
  193.             4
  194.         );
  195.         $portalInformationRefs['stage']['{host}/fr'] = new PortalInformation(
  196.             1,
  197.             $webspaceRefs['pqna'],
  198.             $portalRefs['pqna'],
  199.             $localizationRefs['pqna_fr'],
  200.             '{host}/fr',
  201.             null,
  202.             null,
  203.             true,
  204.             '{host}/{localization}',
  205.             5
  206.         );
  207.         $portalInformationRefs['stage']['{host}'] = new PortalInformation(
  208.             2,
  209.             $webspaceRefs['pqna'],
  210.             $portalRefs['pqna'],
  211.             null,
  212.             '{host}',
  213.             null,
  214.             '{host}/{localization}',
  215.             false,
  216.             '{host}/{localization}',
  217.             4
  218.         );
  219.         $portalInformationRefs['test']['{host}/fr'] = new PortalInformation(
  220.             1,
  221.             $webspaceRefs['pqna'],
  222.             $portalRefs['pqna'],
  223.             $localizationRefs['pqna_fr'],
  224.             '{host}/fr',
  225.             null,
  226.             null,
  227.             true,
  228.             '{host}/{localization}',
  229.             5
  230.         );
  231.         $portalInformationRefs['test']['{host}'] = new PortalInformation(
  232.             2,
  233.             $webspaceRefs['pqna'],
  234.             $portalRefs['pqna'],
  235.             null,
  236.             '{host}',
  237.             null,
  238.             '{host}/{localization}',
  239.             false,
  240.             '{host}/{localization}',
  241.             4
  242.         );
  243.         $portalInformationRefs['dev']['{host}/fr'] = new PortalInformation(
  244.             1,
  245.             $webspaceRefs['pqna'],
  246.             $portalRefs['pqna'],
  247.             $localizationRefs['pqna_fr'],
  248.             '{host}/fr',
  249.             null,
  250.             null,
  251.             true,
  252.             '{host}/{localization}',
  253.             5
  254.         );
  255.         $portalInformationRefs['dev']['{host}'] = new PortalInformation(
  256.             2,
  257.             $webspaceRefs['pqna'],
  258.             $portalRefs['pqna'],
  259.             null,
  260.             '{host}',
  261.             null,
  262.             '{host}/{localization}',
  263.             false,
  264.             '{host}/{localization}',
  265.             4
  266.         );
  267.         $this->setWebspaces($webspaceRefs);
  268.         $this->setPortals($portalRefs);
  269.         $this->setPortalInformations($portalInformationRefs);
  270.     }
  271. }