TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
Mirrors Class Reference
Inheritance diagram for Mirrors:
AbstractEntity AbstractDomainObject DomainObjectInterface ObjectMonitoringInterface

Public Member Functions

 setSelect ($mirrorId=null)
 
 getMirror ()
 
 getMirrorUrl ()
 
 getMirrors ()
 
 setMirrors (array $mirrors)
 

Protected Attributes

 $mirrors = array()
 
 $currentMirror
 
 $isRandomSelection = true
 

Additional Inherited Members

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

Detailed Description

Repository mirrors object for extension manager.

Since
2010-02-11

Definition at line 21 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 74 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 105 of file Mirrors.php.

References Mirrors\$mirrors.

getMirrorUrl ( )

Gets the mirror url from selected mirror

Returns
string

Definition at line 91 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 117 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 54 of file Mirrors.php.

Member Data Documentation

$currentMirror
protected

Definition at line 37 of file Mirrors.php.

Referenced by Mirrors\getMirror().

$isRandomSelection = true
protected

Definition at line 45 of file Mirrors.php.

$mirrors = array()
protected

Definition at line 28 of file Mirrors.php.

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