\PHPExcel_HashTable

PHPExcel_HashTable

Summary

Methods
Properties
Constants
__construct()
addFromSource()
add()
remove()
clear()
count()
getIndexForHashCode()
getByIndex()
getByHashCode()
toArray()
__clone()
$_items
$_keyMap
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$_items

$_items : array

HashTable elements

Type

array

$_keyMap

$_keyMap : array

HashTable key map

Type

array

Methods

__construct()

__construct(array<mixed,\PHPExcel_IComparable>  $pSource = null) 

Create a new PHPExcel_HashTable

Parameters

array<mixed,\PHPExcel_IComparable> $pSource

Optional source array to create HashTable from

Throws

\PHPExcel_Exception

addFromSource()

addFromSource(array<mixed,\PHPExcel_IComparable>  $pSource = null) 

Add HashTable items from source

Parameters

array<mixed,\PHPExcel_IComparable> $pSource

Source array to create HashTable from

Throws

\PHPExcel_Exception

add()

add(\PHPExcel_IComparable  $pSource = null) 

Add HashTable item

Parameters

\PHPExcel_IComparable $pSource

Item to add

Throws

\PHPExcel_Exception

remove()

remove(\PHPExcel_IComparable  $pSource = null) 

Remove HashTable item

Parameters

\PHPExcel_IComparable $pSource

Item to remove

Throws

\PHPExcel_Exception

clear()

clear() 

Clear HashTable

count()

count() : integer

Count

Returns

integer

getIndexForHashCode()

getIndexForHashCode(string  $pHashCode = '') : integer

Get index for hash code

Parameters

string $pHashCode

Returns

integer —

Index

getByIndex()

getByIndex(integer  $pIndex) : \PHPExcel_IComparable

Get by index

Parameters

integer $pIndex

Returns

\PHPExcel_IComparable

getByHashCode()

getByHashCode(string  $pHashCode = '') : \PHPExcel_IComparable

Get by hashcode

Parameters

string $pHashCode

Returns

\PHPExcel_IComparable

toArray()

toArray() : array<mixed,\PHPExcel_IComparable>

HashTable to array

Returns

array<mixed,\PHPExcel_IComparable>

__clone()

__clone() 

Implement PHP __clone to create a deep clone, not just a shallow copy.