TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractMirrorXmlParser.php
Go to the documentation of this file.
1 <?php
2 namespace TYPO3\CMS\Extensionmanager\Utility\Parser;
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 {
27  protected $country = null;
28 
34  protected $host = null;
35 
41  protected $path = null;
42 
48  protected $sponsorlink = null;
49 
55  protected $sponsorlogo = null;
56 
62  protected $sponsorname = null;
63 
69  protected $title = null;
70 
81  public function getAll()
82  {
83  $mirrorProperties = [];
84  $mirrorProperties['title'] = $this->title;
85  $mirrorProperties['host'] = $this->host;
86  $mirrorProperties['path'] = $this->path;
87  $mirrorProperties['country'] = $this->country;
88  $mirrorProperties['sponsorname'] = $this->sponsorname;
89  $mirrorProperties['sponsorlink'] = $this->sponsorlink;
90  $mirrorProperties['sponsorlogo'] = $this->sponsorlogo;
91  return $mirrorProperties;
92  }
93 
101  public function getCountry()
102  {
103  return $this->country;
104  }
105 
113  public function getHost()
114  {
115  return $this->host;
116  }
117 
125  public function getPath()
126  {
127  return $this->path;
128  }
129 
137  public function getSponsorlink()
138  {
139  return $this->sponsorlink;
140  }
141 
149  public function getSponsorlogo()
150  {
151  return $this->sponsorlogo;
152  }
153 
161  public function getSponsorname()
162  {
163  return $this->sponsorname;
164  }
165 
173  public function getTitle()
174  {
175  return $this->title;
176  }
177 
185  protected function resetProperties()
186  {
187  $this->title = $this->host = $this->path = $this->country
188  = $this->sponsorname = $this->sponsorlink = $this->sponsorlogo = null;
189  }
190 }