Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe SplFixedArray
+ Graphe d'héritage de SplFixedArray:

Fonctions membres publiques

 __construct ($size=0)
 
 count ()
 
 toArray ()
 
 getSize ()
 
 setSize ($size)
 
 offsetExists ($index)
 
 offsetGet ($index)
 
 offsetSet ($index, $newval)
 
 offsetUnset ($index)
 
 rewind ()
 
 current ()
 
 key ()
 
 next ()
 
 valid ()
 
 __wakeup ()
 

Fonctions membres publiques statiques

static fromArray (array $array, $save_indexes=true)
 

Attributs privés

 $internalArray = array()
 
 $size = 0
 

Description détaillée

The SplFixedArray class provides the main functionalities of array. The main differences between a SplFixedArray and a normal PHP array is that the SplFixedArray is of fixed length and allows only integers within the range as indexes. The advantage is that it allows a faster array implementation.

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $size = 0)

SplFixedArray constructor.

Paramètres
int$size

Références $size, et size.

Documentation des fonctions membres

◆ __wakeup()

__wakeup ( )

Do nothing.

◆ count()

count ( )
Renvoie
int

Référencé par fromArray().

◆ current()

current ( )

Return current array entry mixed The current element value. 5.3.0

-suppress MixedReturnStatement

◆ fromArray()

static fromArray ( array  $array,
  $save_indexes = true 
)
static
Paramètres
array$array
bool$save_indexes
Renvoie
SplFixedArray -suppress MixedAssignment

Références $i, $key, $self, $value, et count().

Référencé par ParagonIE_Sodium_Core_BLAKE2b\stringToContext(), ParagonIE_Sodium_Core32_BLAKE2b\stringToSplFixedArray(), et ParagonIE_Sodium_Core_BLAKE2b\stringToSplFixedArray().

◆ getSize()

getSize ( )

◆ key()

key ( )

Return current array index

Renvoie
int The current array index.

◆ next()

next ( )
Renvoie
void

Référencé par valid().

◆ offsetExists()

offsetExists (   $index)
Paramètres
string | int$index
Renvoie
bool

◆ offsetGet()

offsetGet (   $index)
Paramètres
string | int$index
Renvoie
mixed

-suppress MixedReturnStatement

◆ offsetSet()

offsetSet (   $index,
  $newval 
)
Paramètres
string | int$index
mixed$newval-suppress MixedAssignment

◆ offsetUnset()

offsetUnset (   $index)
Paramètres
string | int$index

◆ rewind()

rewind ( )

Rewind iterator back to the start void 5.3.0

◆ setSize()

setSize (   $size)
Paramètres
int$size
Renvoie
bool

Références $size, et size.

◆ toArray()

toArray ( )
Renvoie
array

Références $internalArray.

◆ valid()

valid ( )

Check whether the array contains more elements bool true if the array contains any more elements, false otherwise.

Références next().

Documentation des champs

◆ $internalArray

$internalArray = array()
private

Référencé par toArray().

◆ $size

$size = 0
private

Référencé par __construct(), getSize(), et setSize().


La documentation de cette classe a été générée à partir du fichier suivant :