\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(\PHPExcel_IComparable[]  $pSource = null) : mixed

Create a new PHPExcel_HashTable

Parameters

\PHPExcel_IComparable[] $pSource

Optional source array to create HashTable from

Throws

\PHPExcel_Exception

Returns

mixed —

addFromSource()

addFromSource(\PHPExcel_IComparable[]  $pSource = null) : mixed

Add HashTable items from source

Parameters

\PHPExcel_IComparable[] $pSource

Source array to create HashTable from

Throws

\PHPExcel_Exception

Returns

mixed —

add()

add(\PHPExcel_IComparable  $pSource = null) : mixed

Add HashTable item

Parameters

\PHPExcel_IComparable $pSource

Item to add

Throws

\PHPExcel_Exception

Returns

mixed —

remove()

remove(\PHPExcel_IComparable  $pSource = null) : mixed

Remove HashTable item

Parameters

\PHPExcel_IComparable $pSource

Item to remove

Throws

\PHPExcel_Exception

Returns

mixed —

clear()

clear() : mixed

Clear HashTable

Returns

mixed —

count()

count() : int

Count

Returns

int —

getIndexForHashCode()

getIndexForHashCode(string  $pHashCode = '') : int

Get index for hash code

Parameters

string $pHashCode

Returns

int —

Index

getByIndex()

getByIndex(int  $pIndex) : \PHPExcel_IComparable

Get by index

Parameters

int $pIndex

Returns

\PHPExcel_IComparable —

getByHashCode()

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

Get by hashcode

Parameters

string $pHashCode

Returns

\PHPExcel_IComparable —

toArray()

toArray() : \PHPExcel_IComparable[]

HashTable to array

Returns

\PHPExcel_IComparable[] —

__clone()

__clone() : mixed

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

Returns

mixed —