Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
PhpOffice\PhpSpreadsheet\HashTable Class Reference

Public Member Functions

 __clone ()
 Implement PHP __clone to create a deep clone, not just a shallow copy.
 
 add (IComparable $source)
 Add HashTable item.
 
 clear ()
 Clear HashTable.
 
 count ()
 Count.
 
 getByHashCode (string $hashCode)
 Get by hashcode.
 
 getByIndex (int $index)
 Get by index.
 
 getIndexForHashCode (string $hashCode)
 Get index for hash code.
 
 remove (IComparable $source)
 Remove HashTable item.
 
 toArray ()
 HashTable to array.
 

Protected Member Functions

array< string, array $items=[];protected array< int, array $keyMap=[];public __construct(?array $source=[]) { if($source !==null) { $this->addFromSource($source);} } public addFromSource(?array $source=null):void { if($source===null) { return;} foreach($source as $item) { $this-> add ($item)
 HashTable elements.
 

Member Function Documentation

◆ add() [1/2]

array< string, array $items=[];protected array< int, array $keyMap=[];public __construct(?array $source=[]) { if( $source !==null) { $this->addFromSource( $source);} } public addFromSource(?array $source=null):void { if( $source===null) { return;} foreach( $source as $item) { $this-> PhpOffice\PhpSpreadsheet\HashTable::add ( $item)
protected

HashTable elements.

T>

◆ add() [2/2]

PhpOffice\PhpSpreadsheet\HashTable::add ( IComparable $source)

Add HashTable item.

Parameters
T$sourceItem to add

◆ getByHashCode()

PhpOffice\PhpSpreadsheet\HashTable::getByHashCode ( string $hashCode)

Get by hashcode.

Return values
null|T

◆ getByIndex()

PhpOffice\PhpSpreadsheet\HashTable::getByIndex ( int $index)

Get by index.

Return values
null|T

◆ remove()

PhpOffice\PhpSpreadsheet\HashTable::remove ( IComparable $source)

Remove HashTable item.

Parameters
T$sourceItem to remove

◆ toArray()

PhpOffice\PhpSpreadsheet\HashTable::toArray ( )

HashTable to array.

Return values
T[]

The documentation for this class was generated from the following file: