vendor/elements/alpstein-bundle/src/Model/AlpsteinTour.php line 5

Open in your IDE?
  1. <?php
  2. namespace Elements\Bundle\AlpsteinBundle\Model;
  3. use \Pimcore\Model\DataObject;
  4. class AlpsteinTour extends DataObject\AlpsteinTour
  5. {
  6.     protected $config;
  7.     public function getAlpsteinConfig() {
  8.         if (empty($config)) {
  9.             $this->config \Pimcore::getContainer()->getParameter('elements_alpstein_config');
  10.         }
  11.         return $this->config;
  12.     }
  13.     public function getAlpsteinGPXDownload() {
  14.         $config $this->getAlpsteinConfig();
  15.         return "https://www.outdooractive.com/download.tour.gpx?i=" $this->getAlpsteinId() . "&project=" $this->getAlpsteinKey()[0]->getName() . "&key=" $this->getAlpsteinKey()[0]->getApiKey();
  16.     }
  17.     public function getAlpsteinKMLDownload() {
  18.         $config $this->getAlpsteinConfig();
  19.         return "https://www.outdooractive.com/kml_generate?playlist=1&i=" $this->getAlpsteinId() . "&project=" $this->getAlpsteinKey()[0]->getName() . "&key=" $this->getAlpsteinKey()[0]->getApiKey();
  20.     }
  21.     public function getAlpsteinLink($projectName '') {
  22.         if ($projectName == "") {
  23.             $projectName 'o' $this->getAlpsteinKey()[0]->getName();
  24.         }
  25.         $config $this->getAlpsteinConfig();
  26.         return 'https://regio.outdooractive.com/' $projectName '/r/' $this->getAlpsteinId();
  27.     }
  28. }