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('cora-www');
  32.         $webspace->setName("cora.pl");
  33.         // add localization to webspace
  34.         $localization0 = new Localization('pl''');
  35.         $localization0->setShadow('');
  36.         $localization0->setDefault(true);
  37.         $localization0->setXDefault('');
  38.         $localizationRefs['cora-www_pl'] = $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.                         'pl' => 'Nawigacja główna',
  50.                                 'en' => 'Main Navigation',
  51.                 )
  52. ,
  53.                 )
  54. ));
  55.         $navigation->addContext(new NavigationContext('footer_nav_left',     array(
  56.                         'title' =>     array(
  57.                         'pl' => 'Footer left nav',
  58.                                 'en' => 'Footer left Navigation',
  59.                 )
  60. ,
  61.                 )
  62. ));
  63.         $navigation->addContext(new NavigationContext('footer_nav_center',     array(
  64.                         'title' =>     array(
  65.                         'pl' => 'Footer center nav',
  66.                                 'en' => 'Footer center Navigation',
  67.                 )
  68. ,
  69.                 )
  70. ));
  71.         $navigation->addContext(new NavigationContext('footer_nav_right',     array(
  72.                         'title' =>     array(
  73.                         'pl' => 'Footer nav right',
  74.                                 'en' => 'Footer right  Navigation',
  75.                 )
  76. ,
  77.                 )
  78. ));
  79.         $webspace->setNavigation($navigation);
  80.         $webspace->setResourceLocatorStrategy('tree_leaf_edit');
  81.         // new portal
  82.         $portal = new Portal();
  83.         $portal->setName('cora.pl');
  84.         $portal->setKey('cora');
  85.         $portal->setWebspace($webspace);
  86.         // add localization
  87.         $localization = new Localization('pl''');
  88.         $localization->setDefault('1');
  89.         $localization->setXDefault('');
  90.         $portal->addLocalization($localization);
  91.         // add environment
  92.         $environment = new Environment();
  93.         $environment->setType('prod');
  94.         // add environment url
  95.         $url = new Url();
  96.         $url->setUrl('{host}');
  97.         $url->setLanguage('pl');
  98.         $url->setCountry('');
  99.         $url->setSegment('');
  100.         $url->setRedirect('');
  101.         $url->setMain(true);
  102.         $environment->addUrl($url);
  103.         $portal->addEnvironment($environment);
  104.         // add environment
  105.         $environment = new Environment();
  106.         $environment->setType('stage');
  107.         // add environment url
  108.         $url = new Url();
  109.         $url->setUrl('{host}');
  110.         $url->setLanguage('pl');
  111.         $url->setCountry('');
  112.         $url->setSegment('');
  113.         $url->setRedirect('');
  114.         $url->setMain(true);
  115.         $environment->addUrl($url);
  116.         $portal->addEnvironment($environment);
  117.         // add environment
  118.         $environment = new Environment();
  119.         $environment->setType('test');
  120.         // add environment url
  121.         $url = new Url();
  122.         $url->setUrl('{host}');
  123.         $url->setLanguage('pl');
  124.         $url->setCountry('');
  125.         $url->setSegment('');
  126.         $url->setRedirect('');
  127.         $url->setMain(true);
  128.         $environment->addUrl($url);
  129.         $portal->addEnvironment($environment);
  130.         // add environment
  131.         $environment = new Environment();
  132.         $environment->setType('dev');
  133.         // add environment url
  134.         $url = new Url();
  135.         $url->setUrl('{host}');
  136.         $url->setLanguage('pl');
  137.         $url->setCountry('');
  138.         $url->setSegment('');
  139.         $url->setRedirect('');
  140.         $url->setMain(true);
  141.         $environment->addUrl($url);
  142.         $portal->addEnvironment($environment);
  143.         $portalRefs['cora'] = $portal;
  144.         $webspace->addPortal($portal);
  145.         $webspaceRefs['cora-www'] = $webspace;
  146.         $portalInformationRefs['prod']['{host}'] = new PortalInformation(
  147.             1,
  148.             $webspaceRefs['cora-www'],
  149.             $portalRefs['cora'],
  150.             $localizationRefs['cora-www_pl'],
  151.             '{host}',
  152.             null,
  153.             null,
  154.             true,
  155.             '{host}',
  156.             5
  157.         );
  158.         $portalInformationRefs['stage']['{host}'] = new PortalInformation(
  159.             1,
  160.             $webspaceRefs['cora-www'],
  161.             $portalRefs['cora'],
  162.             $localizationRefs['cora-www_pl'],
  163.             '{host}',
  164.             null,
  165.             null,
  166.             true,
  167.             '{host}',
  168.             5
  169.         );
  170.         $portalInformationRefs['test']['{host}'] = new PortalInformation(
  171.             1,
  172.             $webspaceRefs['cora-www'],
  173.             $portalRefs['cora'],
  174.             $localizationRefs['cora-www_pl'],
  175.             '{host}',
  176.             null,
  177.             null,
  178.             true,
  179.             '{host}',
  180.             5
  181.         );
  182.         $portalInformationRefs['dev']['{host}'] = new PortalInformation(
  183.             1,
  184.             $webspaceRefs['cora-www'],
  185.             $portalRefs['cora'],
  186.             $localizationRefs['cora-www_pl'],
  187.             '{host}',
  188.             null,
  189.             null,
  190.             true,
  191.             '{host}',
  192.             5
  193.         );
  194.         $this->setWebspaces($webspaceRefs);
  195.         $this->setPortals($portalRefs);
  196.         $this->setPortalInformations($portalInformationRefs);
  197.     }
  198. }