‪TYPO3CMS  10.4
Repository.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
20 
26 {
32  protected ‪$title;
33 
39  protected ‪$description;
40 
46  protected ‪$mirrorListUrl;
47 
53  protected ‪$mirrors;
54 
60  protected ‪$wsdlUrl;
61 
67  protected ‪$lastUpdate;
68 
74  protected ‪$extensionCount;
75 
82  public function ‪getTitle()
83  {
84  return ‪$this->title;
85  }
86 
93  public function ‪setTitle(‪$title)
94  {
95  if (!empty(‪$title) && is_string(‪$title)) {
96  $this->title = ‪$title;
97  }
98  }
99 
106  public function ‪getDescription()
107  {
108  return ‪$this->description;
109  }
110 
116  public function ‪setDescription(‪$description)
117  {
118  if (!empty(‪$description) && is_string(‪$description)) {
119  $this->description = ‪$description;
120  }
121  }
122 
129  public function ‪getMirrorListUrl()
130  {
132  }
133 
142  public function ‪setMirrorListUrl($url)
143  {
144  if (empty($url) || ‪GeneralUtility::isValidUrl($url)) {
145  $this->mirrorListUrl = $url;
146  }
147  }
148 
155  public function ‪getWsdlUrl()
156  {
157  return ‪$this->wsdlUrl;
158  }
159 
166  public function ‪setWsdlUrl($url)
167  {
168  if (!empty($url) && ‪GeneralUtility::isValidUrl($url)) {
169  $this->wsdlUrl = $url;
170  }
171  }
172 
178  public function ‪getLastUpdate()
179  {
180  return ‪$this->lastUpdate;
181  }
182 
188  public function ‪setLastUpdate(\DateTime $time)
189  {
190  $this->lastUpdate = $time;
191  }
192 
198  public function ‪getExtensionCount()
199  {
201  }
202 
208  public function ‪setExtensionCount($count)
209  {
210  $this->extensionCount = $count;
211  }
212 
223  public function ‪addMirrors(Mirrors ‪$mirrors)
224  {
225  $this->mirrors = ‪$mirrors;
226  }
227 
237  public function ‪hasMirrors()
238  {
239  $hasMirrors = false;
240  if (is_object($this->mirrors)) {
241  $hasMirrors = true;
242  }
243  return $hasMirrors;
244  }
245 
254  public function ‪getMirrors()
255  {
256  return $this->‪hasMirrors() ? $this->mirrors : null;
257  }
258 
266  public function ‪removeMirrors()
267  {
268  unset($this->mirrors);
269  }
270 }
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\removeMirrors
‪removeMirrors()
Definition: Repository.php:259
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$title
‪string $title
Definition: Repository.php:31
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\setExtensionCount
‪setExtensionCount($count)
Definition: Repository.php:201
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\hasMirrors
‪bool hasMirrors()
Definition: Repository.php:230
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\setWsdlUrl
‪setWsdlUrl($url)
Definition: Repository.php:159
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$mirrors
‪Mirrors $mirrors
Definition: Repository.php:49
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$extensionCount
‪string $extensionCount
Definition: Repository.php:67
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\setLastUpdate
‪setLastUpdate(\DateTime $time)
Definition: Repository.php:181
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:23
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getMirrorListUrl
‪string getMirrorListUrl()
Definition: Repository.php:122
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\setDescription
‪setDescription($description)
Definition: Repository.php:109
‪TYPO3\CMS\Extensionmanager\Domain\Model\Mirrors
Definition: Mirrors.php:25
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getWsdlUrl
‪string getWsdlUrl()
Definition: Repository.php:148
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$wsdlUrl
‪string $wsdlUrl
Definition: Repository.php:55
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository
Definition: Repository.php:26
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getExtensionCount
‪int getExtensionCount()
Definition: Repository.php:191
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getLastUpdate
‪DateTime getLastUpdate()
Definition: Repository.php:171
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\setMirrorListUrl
‪setMirrorListUrl($url)
Definition: Repository.php:135
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\addMirrors
‪addMirrors(Mirrors $mirrors)
Definition: Repository.php:216
‪TYPO3\CMS\Core\Utility\GeneralUtility\isValidUrl
‪static bool isValidUrl($url)
Definition: GeneralUtility.php:944
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$mirrorListUrl
‪string $mirrorListUrl
Definition: Repository.php:43
‪TYPO3\CMS\Extensionmanager\Domain\Model
Definition: Dependency.php:16
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getTitle
‪string getTitle()
Definition: Repository.php:75
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$description
‪string $description
Definition: Repository.php:37
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getDescription
‪string getDescription()
Definition: Repository.php:99
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:46
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\getMirrors
‪Mirrors getMirrors()
Definition: Repository.php:247
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\setTitle
‪setTitle($title)
Definition: Repository.php:86
‪TYPO3\CMS\Extensionmanager\Domain\Model\Repository\$lastUpdate
‪DateTime $lastUpdate
Definition: Repository.php:61