TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
Mirrors Class Reference
Inheritance diagram for Mirrors:
AbstractEntity AbstractDomainObject DomainObjectInterface ObjectMonitoringInterface

Public Member Functions

 setSelect ($mirrorId=null)
 
 getMirror ()
 
 getMirrorUrl ()
 
 getMirrors ()
 
 setMirrors (array $mirrors)
 
- Public Member Functions inherited from AbstractDomainObject
 getUid ()
 
 setPid ($pid)
 
 getPid ()
 
 _setProperty ($propertyName, $propertyValue)
 
 _getProperty ($propertyName)
 
 _getProperties ()
 
 _hasProperty ($propertyName)
 
 _isNew ()
 
 _memorizeCleanState ($propertyName=null)
 
 _memorizePropertyCleanState ($propertyName)
 
 _getCleanProperties ()
 
 _getCleanProperty ($propertyName)
 
 _isDirty ($propertyName=null)
 
 _isClone ()
 
 _setClone ($clone)
 
 __clone ()
 
 __toString ()
 
- Public Member Functions inherited from ObjectMonitoringInterface
 _memorizeCleanState ()
 
 _isDirty ()
 

Protected Attributes

 $mirrors = []
 
 $currentMirror
 
 $isRandomSelection = true
 
- Protected Attributes inherited from AbstractDomainObject
 $uid
 
 $_localizedUid
 
 $_languageUid
 
 $_versionedUid
 
 $pid
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractDomainObject
 isPropertyDirty ($previousValue, $currentValue)
 

Detailed Description

Repository mirrors object for extension manager.

Definition at line 20 of file Mirrors.php.

Member Function Documentation

getMirror ( )

Method returns one mirror for use.

Mirror has previously been selected or is chosen randomly.

public

Returns
array array of a mirror's properties or NULL in case of errors

Definition at line 73 of file Mirrors.php.

References Mirrors\$currentMirror.

Referenced by Mirrors\getMirrorUrl().

getMirrors ( )

Method returns all available mirrors.

public

Returns
array multidimensional array with mirrors and their properties
See also
$mirrors, setMirrors()

Definition at line 104 of file Mirrors.php.

References Mirrors\$mirrors.

getMirrorUrl ( )

Gets the mirror url from selected mirror

Returns
string

Definition at line 90 of file Mirrors.php.

References Mirrors\getMirror().

setMirrors ( array  $mirrors)

Method sets available mirrors.

Parameters
array$mirrorsmultidimensional array with mirrors and their properties
Returns
void
See also
$mirrors, getMirrors()

Definition at line 116 of file Mirrors.php.

References Mirrors\$mirrors.

setSelect (   $mirrorId = null)

Method selects one specific mirror to be used.

Parameters
int$mirrorIdnumber (>=1) of mirror or NULL for random selection
Returns
void
See also
$currentMirror

Definition at line 53 of file Mirrors.php.

Member Data Documentation

$currentMirror
protected

Definition at line 36 of file Mirrors.php.

Referenced by Mirrors\getMirror().

$isRandomSelection = true
protected

Definition at line 44 of file Mirrors.php.

$mirrors = []
protected

Definition at line 27 of file Mirrors.php.

Referenced by Mirrors\getMirrors(), and Mirrors\setMirrors().