‪TYPO3CMS  9.5
Repository.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 ‪$title;
29 
35  protected ‪$description;
36 
42  protected ‪$mirrorListUrl;
43 
49  protected ‪$mirrors;
50 
56  protected ‪$wsdlUrl;
57 
63  protected ‪$lastUpdate;
64 
70  protected ‪$extensionCount;
71 
78  public function ‪getTitle()
79  {
80  return ‪$this->title;
81  }
82 
89  public function ‪setTitle(‪$title)
90  {
91  if (!empty(‪$title) && is_string(‪$title)) {
92  $this->title = ‪$title;
93  }
94  }
95 
102  public function ‪getDescription()
103  {
104  return ‪$this->description;
105  }
106 
112  public function ‪setDescription(‪$description)
113  {
114  if (!empty(‪$description) && is_string(‪$description)) {
115  $this->description = ‪$description;
116  }
117  }
118 
125  public function ‪getMirrorListUrl()
126  {
128  }
129 
138  public function ‪setMirrorListUrl($url)
139  {
140  if (empty($url) || !empty($url) && \‪TYPO3\CMS\Core\Utility\GeneralUtility::isValidUrl($url)) {
141  $this->mirrorListUrl = $url;
142  }
143  }
144 
151  public function ‪getWsdlUrl()
152  {
153  return ‪$this->wsdlUrl;
154  }
155 
162  public function ‪setWsdlUrl($url)
163  {
164  if (!empty($url) && \‪TYPO3\CMS\Core\Utility\GeneralUtility::isValidUrl($url)) {
165  $this->wsdlUrl = $url;
166  }
167  }
168 
174  public function ‪getLastUpdate()
175  {
176  return ‪$this->lastUpdate;
177  }
178 
184  public function ‪setLastUpdate(\DateTime $time)
185  {
186  $this->lastUpdate = $time;
187  }
188 
194  public function ‪getExtensionCount()
195  {
197  }
198 
204  public function ‪setExtensionCount($count)
205  {
206  $this->extensionCount = $count;
207  }
208 
217  public function ‪addMirrors(\‪TYPO3\CMS\Extensionmanager\Domain\Model\Mirrors ‪$mirrors)
218  {
219  $this->mirrors = ‪$mirrors;
220  }
221 
229  public function ‪hasMirrors()
230  {
231  $hasMirrors = false;
232  if (is_object($this->mirrors)) {
233  $hasMirrors = true;
234  }
235  return $hasMirrors;
236  }
237 
244  public function ‪getMirrors()
245  {
246  return $this->‪hasMirrors() ? $this->mirrors : null;
247  }
248 
254  public function ‪removeMirrors()
255  {
256  unset($this->mirrors);
257  }
258 }
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\removeMirrors
‪removeMirrors()
Definition: Repository.php:247
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$title
‪string $title
Definition: Repository.php:27
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$mirrors
‪TYPO3 CMS Extensionmanager Domain Model Mirrors $mirrors
Definition: Repository.php:45
‪TYPO3
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\setExtensionCount
‪setExtensionCount($count)
Definition: Repository.php:197
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\hasMirrors
‪bool hasMirrors()
Definition: Repository.php:222
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\setWsdlUrl
‪setWsdlUrl($url)
Definition: Repository.php:155
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$extensionCount
‪string $extensionCount
Definition: Repository.php:63
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\setLastUpdate
‪setLastUpdate(\DateTime $time)
Definition: Repository.php:177
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\addMirrors
‪addMirrors(\TYPO3\CMS\Extensionmanager\Domain\Model\Mirrors $mirrors)
Definition: Repository.php:210
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getMirrorListUrl
‪string getMirrorListUrl()
Definition: Repository.php:118
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\setDescription
‪setDescription($description)
Definition: Repository.php:105
‪TYPO3\CMS\Extensionmanager\Domain\Model\Mirrors
Definition: Mirrors.php:22
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getWsdlUrl
‪string getWsdlUrl()
Definition: Repository.php:144
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$wsdlUrl
‪string $wsdlUrl
Definition: Repository.php:51
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository
Definition: Repository.php:22
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getExtensionCount
‪int getExtensionCount()
Definition: Repository.php:187
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getLastUpdate
‪DateTime getLastUpdate()
Definition: Repository.php:167
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getMirrors
‪TYPO3 CMS Extensionmanager Domain Model Mirrors getMirrors()
Definition: Repository.php:237
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\setMirrorListUrl
‪setMirrorListUrl($url)
Definition: Repository.php:131
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$mirrorListUrl
‪string $mirrorListUrl
Definition: Repository.php:39
‪TYPO3\CMS\Extensionmanager\Domain\Model
Definition: Dependency.php:2
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getTitle
‪string getTitle()
Definition: Repository.php:71
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$description
‪string $description
Definition: Repository.php:33
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getDescription
‪string getDescription()
Definition: Repository.php:95
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\setTitle
‪setTitle($title)
Definition: Repository.php:82
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$lastUpdate
‪DateTime $lastUpdate
Definition: Repository.php:57