‪TYPO3CMS  9.5
AbstractMirrorXmlParser.php
Go to the documentation of this file.
1 <?php
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 
22 {
28  protected ‪$country;
29 
35  protected ‪$host;
36 
42  protected ‪$path;
43 
49  protected ‪$sponsorlink;
50 
56  protected ‪$sponsorlogo;
57 
63  protected ‪$sponsorname;
64 
70  protected ‪$title;
71 
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 
100  public function ‪getCountry()
101  {
102  return ‪$this->country;
103  }
104 
111  public function ‪getHost()
112  {
113  return ‪$this->host;
114  }
115 
122  public function ‪getPath()
123  {
124  return ‪$this->path;
125  }
126 
133  public function ‪getSponsorlink()
134  {
135  return ‪$this->sponsorlink;
136  }
137 
144  public function ‪getSponsorlogo()
145  {
146  return ‪$this->sponsorlogo;
147  }
148 
155  public function ‪getSponsorname()
156  {
157  return ‪$this->sponsorname;
158  }
159 
166  public function ‪getTitle()
167  {
168  return ‪$this->title;
169  }
170 
176  protected function ‪resetProperties()
177  {
178  $this->title = $this->host = $this->path = $this->country
179  = $this->sponsorname = $this->sponsorlink = $this->sponsorlogo = null;
180  }
181 }
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\$country
‪string $country
Definition: AbstractMirrorXmlParser.php:27
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\$title
‪string $title
Definition: AbstractMirrorXmlParser.php:63
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\getSponsorname
‪string getSponsorname()
Definition: AbstractMirrorXmlParser.php:148
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\getSponsorlink
‪string getSponsorlink()
Definition: AbstractMirrorXmlParser.php:126
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\$path
‪string $path
Definition: AbstractMirrorXmlParser.php:39
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\resetProperties
‪resetProperties()
Definition: AbstractMirrorXmlParser.php:169
‪TYPO3\CMS\Extensionmanager\Utility\Parser
Definition: AbstractExtensionXmlParser.php:2
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\getCountry
‪string getCountry()
Definition: AbstractMirrorXmlParser.php:93
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\$sponsorlogo
‪string $sponsorlogo
Definition: AbstractMirrorXmlParser.php:51
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\getSponsorlogo
‪string getSponsorlogo()
Definition: AbstractMirrorXmlParser.php:137
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractXmlParser
Definition: AbstractXmlParser.php:22
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\$host
‪string $host
Definition: AbstractMirrorXmlParser.php:33
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\getTitle
‪string getTitle()
Definition: AbstractMirrorXmlParser.php:159
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\$sponsorname
‪string $sponsorname
Definition: AbstractMirrorXmlParser.php:57
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\getHost
‪string getHost()
Definition: AbstractMirrorXmlParser.php:104
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser
Definition: AbstractMirrorXmlParser.php:22
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\getAll
‪array getAll()
Definition: AbstractMirrorXmlParser.php:74
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\$sponsorlink
‪string $sponsorlink
Definition: AbstractMirrorXmlParser.php:45
‪TYPO3\CMS\Extensionmanager\Utility\Parser\AbstractMirrorXmlParser\getPath
‪string getPath()
Definition: AbstractMirrorXmlParser.php:115